From: Christoph J. Thompson Date: Thu, 1 Mar 2012 06:45:17 +0000 (+0000) Subject: iproute2 - Split up cflags X-Git-Tag: v3.4.0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8610020b802a63cbf463b7d31f03a86f4acaa04;p=thirdparty%2Fiproute2.git iproute2 - Split up cflags Allows setting optimisation flags at compile time without patching the Makefile. modified: Makefile Signed-off-by: Christoph J. Thompson --- diff --git a/Makefile b/Makefile index a2810e59c..7e7459b0a 100644 --- a/Makefile +++ b/Makefile @@ -29,8 +29,10 @@ ADDLIB+=ipx_ntop.o ipx_pton.o CC = gcc HOSTCC = gcc -CCOPTS = -D_GNU_SOURCE -O2 -Wstrict-prototypes -Wall -CFLAGS = $(CCOPTS) -I../include $(DEFINES) +DEFINES += -D_GNU_SOURCE +CCOPTS = -O2 +WFLAGS = -Wall -Wstrict-prototypes +CFLAGS = $(WFLAGS) $(CCOPTS) -I../include $(DEFINES) YACCFLAGS = -d -t -v SUBDIRS=lib ip tc misc netem genl