Gibbs Tanton - tgibbs writes:
>Ok, here is the rule based makefile... 

Thanks

Looks good (and works for me.)

I suggest the following patch on top of Gibbs' patch, to seperate form
and function of CC and CFLAGS.  (Also, the "standard" (fwiw) is
CFLAGS, not C_FLAGS)

-R


--- Makefile.in.1       Sun Sep 16 16:42:32 2001
+++ Makefile.in Sun Sep 16 16:43:30 2001
@@ -7,17 +7,17 @@
 #DO NOT ADD C COMPILER FLAGS HERE
 #Add them in Configure.pl--look for the
 #comment 'ADD C COMPILER FLAGS HERE'
-C_FLAGS = ${ccflags} ${cc_debug}
+CFLAGS = ${ccflags} ${cc_debug}
 
 C_LIBS = ${libs}
 
-CC = ${cc} $(C_FLAGS)
+CC = ${cc}
 LD = ${ld}
 PERL = ${perl}
 TEST_PROG = test_prog${exe}
 
 .c.o:
-       $(CC) -o $@ -c $<
+       $(CC) $(CFLAGS) -o $@ -c $<
 
 all : $(TEST_PROG)


Reply via email to