From c034d2d366aed74662fcde471bd20b39a55aca0e Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Sun, 19 Jun 2016 20:53:35 -0400 Subject: 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 --- libopenbmc_intf/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libopenbmc_intf/Makefile') 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: -- cgit v1.2.1