From 8252ecf3075b82243bfc78eaaad4b99c75b874e6 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 17 Sep 2013 00:18:15 -0400 Subject: [PATCH] Makefile: fix CPPFLAGS handling This code doesn't respect CPPFLAGS at all. Fix that and move the existing -D flags to the right variable. Signed-off-by: Mike Frysinger --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index b381378..5bac851 100644 --- a/Makefile +++ b/Makefile @@ -23,18 +23,18 @@ OBJS=common.o sslh-main.o probe.o ifneq ($(strip $(USELIBWRAP)),) LIBS:=$(LIBS) -lwrap - CFLAGS:=$(CFLAGS) -DLIBWRAP + CPPFLAGS+=-DLIBWRAP endif ifneq ($(strip $(USELIBCONFIG)),) LIBS:=$(LIBS) -lconfig - CFLAGS:=$(CFLAGS) -DLIBCONFIG + CPPFLAGS+=-DLIBCONFIG endif all: sslh $(MAN) echosrv .c.o: *.h - $(CC) $(CFLAGS) -c $< + $(CC) $(CFLAGS) $(CPPFLAGS) -c $< version.h: ./genver.sh >version.h