changeset 42:ecc8b472a271 draft

Tweak makefile
author Roy Marples <roy@marples.name>
date Thu, 21 Dec 2006 18:28:45 +0000
parents b3ed04340ded
children e4ccd05de34b
files Makefile
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Dec 21 18:23:15 2006 +0000
+++ b/Makefile	Thu Dec 21 18:28:45 2006 +0000
@@ -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 @@
 #  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 @@
 	echo '#define VERSION "$(VERSION)"' > version.h
 
 $(dhcpcd_OBJS): 
-	$(CC) -D_BSD_SOURCE $(CFLAGS) -c $*.c
+	$(CC) $(CDEFS) $(CFLAGS) -c $*.c
 
 all: $(TARGET)