From: basetwo AT tiac DOT net (basetwo) Newsgroups: comp.os.msdos.djgpp Subject: Problem with a Makefile Date: Fri, 18 Apr 1997 02:11:48 GMT Organization: The Internet Access Company, Inc. Lines: 60 Message-ID: <5j6ldt$co9@news-central.tiac.net> Reply-To: basetwo AT tiac DOT net NNTP-Posting-Host: basetwo.tiac.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have a makefile that works in Linux, but doesn't work in DJGPP, at least in the following sense. Every time I run it, it rebuilds all the libraries and all the programs even if they are completely up to date. Here is a stripped down version of it. Thanks for your help. Nishan Krikorian ------------------------------------------------------------ file mmm.bat: make -f aaa.mk acalsinj ............................................................. file aaa.mk: LIB1 = \ lib1.a(calalpha.o) \ lib1.a(cd_ltotm.o) \ lib1.a(cd_tmtol.o) \ lib1.a(crtfile.o) \ lib1.a(cvmval.o) \ lib1.a(dispmsg.o) \ lib1.a(ggetline.o) \ lib1.a(move.o) \ lib1.a(openfile.o) \ lib1.a(rd_ccl.o) \ lib1.a(rd_csl.o) \ lib1.a(rd_optns.o) \ lib1.a(rd_sctl.o) \ lib1.a(readfile.o) \ lib1.a(rmoveblk.o) \ lib1.a(strini.o) \ lib1.a(strcap.o) \ lib1.a(writfile.o) LIB2 = \ lib2.a(new_time.o) \ lib2.a(stricmp.o) \ lib2.a(strnset.o) LIB3 = \ lib3.a(cal2.o) CC = gcc acalsinj: acal.o acal2.o acalsinj.o $(LIB1) $(LIB2) $(LIB3) ${CC} -o acalsinj acalsinj.o acal.o acal2.o lib1.a lib2.a lib3.a -f -lm HFILES = edata.h emaxlist.h epas_r.h epas_r_s.h general.h rs6k.h \ seglist.h atype.h bcodes.h ccodes.h acalsinj.o acal.o acal2.o: $(HFILES) $(LIB1): general.h length.h rs6k.h $(LIB3): general.h