diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-19 20:53:35 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-21 14:03:54 -0400 |
commit | c034d2d366aed74662fcde471bd20b39a55aca0e (patch) | |
tree | d3ba932c347bc72bff0fe1b1ac4b3855fde4cef5 /gdbus.mk | |
parent | cbe32133dadf0945357e2bec67aa7a86ae9f0295 (diff) | |
download | talos-skeleton-c034d2d366aed74662fcde471bd20b39a55aca0e.tar.gz talos-skeleton-c034d2d366aed74662fcde471bd20b39a55aca0e.zip |
Enable user-overriable CFLAGS
Put required CFLAGS (ie pkg-config --cflags) in ALL_CFLAGS and append
user specified CFLAGS to that.
Use CFLAGS during link.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'gdbus.mk')
-rw-r--r-- | gdbus.mk | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,5 +1,5 @@ PACKAGE_DEPS=gio-unix-2.0 glib-2.0 -CFLAGS+=-iquote ../gdbus -iquote ../libopenbmc_intf +ALL_CFLAGS+=-iquote ../gdbus -iquote ../libopenbmc_intf LIBOBMC=$(TOP)/libopenbmc_intf/libopenbmc_intf.so.1 EXTRA_OBJS+=$(LIBOBMC) @@ -8,4 +8,4 @@ $(LIBOBMC): $(MAKE) -C $(TOP)/libopenbmc_intf %.o: %_obj.c - $(CC) -c $(CFLAGS) -fPIC -o $@ $< + $(CC) -c $(ALL_CFLAGS) -o $@ $< |