From: Roy Marples Date: Thu, 21 Dec 2006 18:28:45 +0000 (+0000) Subject: Tweak makefile X-Git-Tag: v3.2.3~332 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=886314877323f8fb6e85a3f7e335caecd3369586;p=thirdparty%2Fdhcpcd.git Tweak makefile --- diff --git a/Makefile b/Makefile index d3ce0691..70072ee4 100644 --- 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)