diff options
author | Hans de Goede <hdegoede@redhat.com> | 2010-10-30 09:25:08 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2010-10-30 15:23:14 +0200 |
commit | 96d197f6b720ac5d4569b71861f8dfa8df134b95 (patch) | |
tree | 284bbf9e6443212ff4e15e60731ce41cb6c2fff4 | |
parent | ff766cfb9da485aa6dab37259bf06d51840022ca (diff) |
Allow overriding CFLAGS
Without loosing pkgconfig generated cflags for spice-protocol and libdbus
(this patch makes packaging vdagent easier).
-rw-r--r-- | Makefile | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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 |