diff options
author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-27 13:45:18 -0400 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2016-06-27 13:53:39 -0400 |
commit | 6f4ba0533a257b0f18439e40c0be9c7bc9680f36 (patch) | |
tree | d150dec44b4fb8a0c9b76407157af26ce678f797 /gdbus.mk | |
parent | 37d0aa5bbd64e6ca826ea9e35a4cb5c3e0f16540 (diff) | |
download | talos-skeleton-6f4ba0533a257b0f18439e40c0be9c7bc9680f36.tar.gz talos-skeleton-6f4ba0533a257b0f18439e40c0be9c7bc9680f36.zip |
Conditionally use system provided libopenbmc_intf
This patch structures the make rules such that building from the top
will build the in-tree libopenbmc_intf and link to that. For example:
$make
$make bmcctl
would both result in ../libopenbmc_intf being built and the applications
will link to that.
Alternatively when building applications directly like:
$make -C bmcctl
the default compiler/linker search paths will be used.
The latter facilitates package managers and the former retains a level
of flexibility for developers working from the repository.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'gdbus.mk')
-rw-r--r-- | gdbus.mk | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -1,11 +1,5 @@ PACKAGE_DEPS=gio-unix-2.0 glib-2.0 -ALL_CFLAGS+=-I ../libopenbmc_intf - -LIBOBMC=$(TOP)/libopenbmc_intf/libopenbmc_intf.so.1 -EXTRA_OBJS+=$(LIBOBMC) - -$(LIBOBMC): - $(MAKE) -C $(TOP)/libopenbmc_intf +LDLIBS=-lopenbmc_intf %.o: %_obj.c $(CC) -c $(ALL_CFLAGS) -o $@ $< |