]> git.sesse.net Git - betaftpd/commitdiff
Now actually _uses_ CPPFLAGS instead of abusing CFLAGS for preprocessing flags and...
authorsgunderson <sgunderson>
Mon, 18 Feb 2002 02:42:24 +0000 (02:42 +0000)
committersgunderson <sgunderson>
Mon, 18 Feb 2002 02:42:24 +0000 (02:42 +0000)
Makefile.in

index 336d254b7eb7894c05fa212a334ce069c4411c67..cdc7f5db34faad5cbf1d1630ef256a52ac7d5c77 100644 (file)
@@ -9,7 +9,7 @@ VPATH = @srcdir@
 prefix = @prefix@
 
 CFLAGS      = @CFLAGS@
-REAL_CFLAGS = $(CFLAGS) @DEFS@ -I@srcdir@ -I. -DVERSION=\"$(VERSION)\"
+CPPFLAGS    = @DEFS@ -I@srcdir@ -I. -DVERSION=\"$(VERSION)\"
 LIBS        = @LIBS@
 OBJS        = disp.o ftpd.o cmds.o nonroot.o ascii.o dcache.o
 ASSMS       = ${OBJS:.o=.s}
@@ -17,9 +17,9 @@ CPPS        = ${OBJS:.o=.i}
 
 # Since we use VPATH, override .c.o rule
 .c.o:  $*.c config.h
-       $(CC) $(REAL_CFLAGS) $(CPPFLAGS) -c @srcdir@/$*.c
+       $(CC) $(CFLAGS) $(CPPFLAGS) -c @srcdir@/$*.c
 .c.s:  $*.c config.h
-       $(CC) $(REAL_CFLAGS) $(CPPFLAGS) -S @srcdir@/$*.c
+       $(CC) $(CFLAGS) $(CPPFLAGS) -S @srcdir@/$*.c
 
 # deps
 cmds.o:                @srcdir@/cmds.c @srcdir@/ftpd.h @srcdir@/cmds.h @srcdir@/nonroot.h @srcdir@/dcache.h config.h
@@ -30,7 +30,7 @@ ascii.o:      @srcdir@/ascii.c @srcdir@/ascii.h config.h
 dcache.o:      @srcdir@/dcache.c @srcdir@/dcache.h config.h
 
 betaftpd: $(OBJS)
-       $(CC) $(REAL_CFLAGS) -o betaftpd $(OBJS) $(LIBS)
+       $(CC) $(CFLAGS) -o betaftpd $(OBJS) $(LIBS)
 assembly-files: $(ASSMS)
 betaftpd-from-assembly-files: $(ASSMS)
        $(CC) $(LIBS) -o betaftpd -Wl,--sort-common $(ASSMS)