summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2010-10-30 09:25:08 +0200
committerHans de Goede <hdegoede@redhat.com>2010-10-30 15:23:14 +0200
commit96d197f6b720ac5d4569b71861f8dfa8df134b95 (patch)
tree284bbf9e6443212ff4e15e60731ce41cb6c2fff4
parentff766cfb9da485aa6dab37259bf06d51840022ca (diff)
Allow overriding CFLAGS
Without loosing pkgconfig generated cflags for spice-protocol and libdbus (this patch makes packaging vdagent easier).
-rw-r--r--Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 810dd54..3b50776 100644
--- a/Makefile
+++ b/Makefile
@@ -3,11 +3,10 @@ DESTDIR ?=
sbindir ?= /sbin
udevdir ?= /lib/udev/rules.d
-CFLAGS ?= -O2
-CFLAGS += -g -Wall
-CFLAGS += $(shell pkg-config --cflags spice-protocol)
-CFLAGS += $(shell pkg-config --cflags dbus-1)
-CFLAGS += -D_GNU_SOURCE
+CFLAGS ?= -O2 -g -Wall
+CPPFLAGS = $(shell pkg-config --cflags spice-protocol)
+CPPFLAGS += $(shell pkg-config --cflags dbus-1)
+CPPFLAGS += -D_GNU_SOURCE
TARGETS := spice-vdagentd spice-vdagent