Xref: news2.mv.net comp.os.msdos.djgpp:1585 From: Steve Higgins Newsgroups: comp.os.msdos.djgpp Subject: Makefile help Date: Fri, 01 Mar 1996 10:06:00 +0000 Lines: 45 Message-ID: <3136CC08.2781@alphdyn.demon.co.uk> NNTP-Posting-Host: alphdyn.demon.co.uk MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hi all, I don't seem to have got my make file quite right, but I cannot see where I'm going wrong. Here is a copy of it. << START MAKEFILE CFLAGS= -MMD -g LDFLAGS= -g SRCS= main.c vga.c keyboard.c debug.c timer.c font8x5.c OBJS= main.o vga.o keyboard.o debug.o timer.o font8x5.o test: $(OBJS) $(CC) $(LDFLAGS) $(OBKS) -o test -lpc backup:: copy *.c a: copy *.h a: copy makefile a: # Include Dependencies -include $(SRC:.c=.d) << END MAKEFILE when I run the makefile I almost invariably get the following error make.exe: Failed to remake `makefile'. The rest of the make runs as normal. 1) How can I stop this error from happening? 2) Do I really need to include both the SRCS and the OBJS lines or can I write it in such a way as to imply one of them? Could you EMAIL me as well as post on the news group. as my news group reader is causing me problems. -- Steve Higgins