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 /libopenbmc_intf/Makefile | |
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 'libopenbmc_intf/Makefile')
-rw-r--r-- | libopenbmc_intf/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libopenbmc_intf/Makefile b/libopenbmc_intf/Makefile index 9cd7be6..8853318 100644 --- a/libopenbmc_intf/Makefile +++ b/libopenbmc_intf/Makefile @@ -2,11 +2,11 @@ PACKAGE_DEPS=gio-unix-2.0 glib-2.0 INSTALLDEPS=install-lib CLEANDEPS=clean-lib DEFAULT_ALL=$(LIBOBMC) -CFLAGS+=-iquote ../gdbus +ALL_CFLAGS+=-iquote ../gdbus LIBOBMC=openbmc_intf $(LIBOBMC): %: %.o gpio.o - $(CC) -shared $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \ + $(CC) -shared $(CFLAGS) $(LDFLAGS) -Wl,-soname,lib$(LIBOBMC).so \ -o lib$@.so.1 $^ $(LDLIBS) install-lib: |