ftp.delorie.com/archives/browse.cgi | search |
Xref: | news2.mv.net comp.os.msdos.djgpp:1639 |
From: | Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: Makefile help |
Date: | Mon, 04 Mar 1996 16:14:34 +0100 |
Organization: | TU Chemnitz-Zwickau |
Lines: | 50 |
Message-ID: | <313B08DA.6206@Mathematik.tu-chemnitz.de> |
References: | <3136CC08 DOT 2781 AT alphdyn DOT demon DOT co DOT uk> |
NNTP-Posting-Host: | tantalus-e.hrz.tu-chemnitz.de |
Mime-Version: | 1.0 |
To: | Steve Higgins <steve AT alphdyn DOT demon DOT co DOT uk> |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Steve Higgins wrote: > << START MAKEFILE .. .. .. > 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 > .. .. .. > # 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? I think there is only a typing-error. The line must be: -include $(SRCS:.c=.d) If you want to stop the warning message try the following: ifneq ($(SRCS:.c=.d),) -include $(SRCS:.c=.d) endif > > 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? > OBJS=$(SRCS:.c=.o) Robert -- ***************************************************************** * Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau * * Post: Am Berg 3, D-09573 Dittmannsdorf * * e-Mail: Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE * * WWW: http://www.tu-chemnitz.de/~rho * *****************************************************************
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |