From: tessman AT cibc DOT ca Subject: 'make' problem Date: Wed, 10 Dec 1997 09:12:05 -0600 Message-ID: <881766280.1455751169@dejanews.com> Newsgroups: comp.os.msdos.djgpp Organization: Deja News Usenet Posting Service Lines: 45 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I'm having fresh trouble running make on a new machine where I've set up djgpp. (It has worked on this project for the past year or so, so I must've done something wrong somewhere, I suspect.) Basically, I have sources in two directories, the parent of the makefile and 'c:\hc', which contains portable code that can be used with any ANSI compiler. The C sources are hc.c and hcdjgpp.c. My makefile looks like this: TARGET=hc.exe SOURCE_DIR=c:\hc COMPILE=c:\gcc\bin\gcc LINK=c:\gcc\bin\gcc CFLAGS=-Ic:\gcc\include -I$(SOURCE_DIR) -c OBJS=hc.o hcdjgpp.o hc.exe: $(OBJS) $(LINK) -o $(TARGET) $(OBJS) # From portable source directory: $(SOURCE_DIR)\hc.o: hc.c $(COMPILE) $(CFLAGS) hc.c # Non-portable, djgpp-specific: hcdjgpp.o: hcdjgpp.c $(COMPILE) $(CFLAGS) hcdjgpp.c Problem is, it doesn't make using gnu make and djgpp. It _will_ make using dmake or a simple public-domain make, but gnu make quits with something along the lines of "make: *** [hc.obj] Error -1". The thing is, when I type in the command line that make echoes to the screen (i.e., gcc -I... -I... -c c:\hc\hc.c), it works fine. Can someone a little better acquainted with either makefile-ese or djgpp setup suggest what I might be doing wrong? Thanks. --Kent (Replies here or to tessman AT remove-to-reply DOT interlog DOT ca please.) -------------------==== Posted via Deja News ====----------------------- http://www.dejanews.com/ Search, Read, Post to Usenet