Xref: news2.mv.net comp.os.msdos.djgpp:6059 From: breezy AT dali DOT math DOT swt DOT edu (Bresie) Newsgroups: comp.os.msdos.djgpp Subject: Problem Compiling via Make Date: 16 Jul 1996 22:04:53 GMT Organization: Computer Science Department, Southwest Texas State University Lines: 47 Message-ID: <4sh3m5$gj1@pirates.cs.swt.edu> NNTP-Posting-Host: dali.math.swt.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I hope that I have just not overlooked it in the FAQs or the regular Info, but I have just started using djgpp and have made a few programs, which I decided would eventually need a makefile to make things easier. When I did the, I found that my CFLAGS were not being included (or so I assume) when compiled (they are not displayed; I do not know if they are not displayed to begin with but anyway...) Ultimately, the output of the compilation looks something along the lines of: gcc -c init.c without anything else being displayed. Am I missing something? My makefile looks like this: # constants ALL = main.o init.o inputq.o LIB_FLAGS = -L/C/djgpp/LIB -lxlib CFLAGS = $(LIB_FLAGS -O2) RM = del CC = gcc $(CFLAGS) # main program main.exe: $(ALL) $(CC) $(ALL) -o main.exe main.o: main.c main.h consts.h init.h defines.h xlib.h inputq.h $(CC) -c main.c init.o: init.c consts.h $(CC) -c init.c inputq.o: inputq.c inputq.h $(CC) -c inputq.c clean: $(RM) *.o --------------------------------------------------------------------- Eric Bresie breezy AT dali DOT math DOT swt DOT edu