include ../Makefile.arch LIBNAME=libconfig.a UNIXSRC=\ unix/cfgpriv_unix.c SRC=\ source/config.c \ source/cfgpriv.c \ source/fileio.c \ $(UNIXSRC) SRCDIR=./source OBJ= $(patsubst %.o,${OBJINST}/%.o,$(notdir $(SRC:.c=.o))) all: $(LIBDIR) $(LIBDIR)/$(LIBNAME) $(LIBDIR)/$(LIBNAME): $(OBJ) $(AR) $@ $(OBJ) ${OBJINST}/%.o :${SRC} @echo ${SRC} @if [ ! -d $(OBJINST) ] ; then $(MKDIR) $(OBJINST) ; fi $(CC) $(CFLAGS) -c -o $@ $< $(LIBDIR): @$(MKDIR) $(LIBDIR) clean: -$(RM) $(OBJ) $(LIBDIR)/$(LIBNAME) -$(RMDIR) $(ARCH) # make -f Makefile.mak source/config.c source/cfgpriv.c source/fileio.c unix/cfgpriv_unix.c cc -DMPA4096=1 -DHAVE_INTTYPES_H -DHAVE_SYSTYPES_H -D'tell(x)=lseek(x,0,SEEK_CUR)' -fPIC -Dushort_t='unsigned short' -Duint_t='unsigned int' -Dulong_t='unsigned long' -DLINUX -DIS_LITTLE_ENDIAN -DHAS_STRSIGNAL -DNOIDENT -Wall -Werror -I../../include -I../include -I. -I./headers -DBITS32=1 -c -o linux-i386/config.o source/config.c source/config.c source/cfgpriv.c source/fileio.c unix/cfgpriv_unix.c cc -DMPA4096=1 -DHAVE_INTTYPES_H -DHAVE_SYSTYPES_H -D'tell(x)=lseek(x,0,SEEK_CUR)' -fPIC -Dushort_t='unsigned short' -Duint_t='unsigned int' -Dulong_t='unsigned long' -DLINUX -DIS_LITTLE_ENDIAN -DHAS_STRSIGNAL -DNOIDENT -Wall -Werror -I../../include -I../include -I. -I./headers -DBITS32=1 -c -o linux-i386/cfgpriv.o source/config.c source/config.c source/cfgpriv.c source/fileio.c unix/cfgpriv_unix.c cc -DMPA4096=1 -DHAVE_INTTYPES_H -DHAVE_SYSTYPES_H -D'tell(x)=lseek(x,0,SEEK_CUR)' -fPIC -Dushort_t='unsigned short' -Duint_t='unsigned int' -Dulong_t='unsigned long' -DLINUX -DIS_LITTLE_ENDIAN -DHAS_STRSIGNAL -DNOIDENT -Wall -Werror -I../../include -I../include -I. -I./headers -DBITS32=1 -c -o linux-i386/fileio.o source/config.c source/config.c source/cfgpriv.c source/fileio.c unix/cfgpriv_unix.c cc -DMPA4096=1 -DHAVE_INTTYPES_H -DHAVE_SYSTYPES_H -D'tell(x)=lseek(x,0,SEEK_CUR)' -fPIC -Dushort_t='unsigned short' -Duint_t='unsigned int' -Dulong_t='unsigned long' -DLINUX -DIS_LITTLE_ENDIAN -DHAS_STRSIGNAL -DNOIDENT -Wall -Werror -I../../include -I../include -I. -I./headers -DBITS32=1 -c -o linux-i386/cfgpriv_unix.o source/config.c ar -r /windows/ptkc_64/331/rc5/prod/lib/linux-i386/libconfig.a linux-i386/config.o linux-i386/cfgpriv.o linux-i386/fileio.o linux-i386/cfgpriv_unix.o ar: creating /windows/ptkc_64/331/rc5/prod/lib/linux-i386/libconfig.a Look at the source and object file names in the gcc command execution