]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Tweak makefile
authorRoy Marples <roy@marples.name>
Thu, 21 Dec 2006 18:28:45 +0000 (18:28 +0000)
committerRoy Marples <roy@marples.name>
Thu, 21 Dec 2006 18:28:45 +0000 (18:28 +0000)
Makefile

index d3ce069180fe76eb2775970bf7caba99d2ad5fd5..70072ee48307370bd05ffac3df0902a950ca017a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,9 +2,6 @@
 
 VERSION = 3.0.8_pre1
 
-# We define _BSD_SOURCE as GNU supports BSD too - which is nice :)
-CDEFS = -D_BSD_SOURCE
-
 CFLAGS ?= -O2 -pipe
 
 # Loads of nice flags to ensure our code is good
@@ -24,6 +21,9 @@ CFLAGS += -Wsequence-point -Wextra -Wdeclaration-after-statement
 #  have buggy headers from time to time, so you may need to comment this out
 #CFLAGS += -Werror
 
+# We define _BSD_SOURCE as GNU supports BSD too - which is nice :)
+CDEFS = -D_BSD_SOURCE
+
 INSTALL ?= install
 DESTDIR =
 SBINDIR = $(DESTDIR)/sbin
@@ -48,7 +48,7 @@ version.h:
        echo '#define VERSION "$(VERSION)"' > version.h
 
 $(dhcpcd_OBJS): 
-       $(CC) -D_BSD_SOURCE $(CFLAGS) -c $*.c
+       $(CC) $(CDEFS) $(CFLAGS) -c $*.c
 
 all: $(TARGET)