diff --git a/client/Makefile b/client/Makefile index 363ff0089..f919a9388 100644 --- a/client/Makefile +++ b/client/Makefile @@ -89,6 +89,14 @@ ifneq ($(SKIPLUASYSTEM),1) endif endif +ifneq ($(SKIPWHEREAMISYSTEM),1) + ifneq (,$(wildcard /usr/include/whereami.h)) + WAILIBINC = + WAILIB = -lwhereami + WAISYSTEM = 1 + endif +endif + ifneq ($(SKIPBT),1) BTLDLIBS = $(shell $(PKG_CONFIG_ENV) pkg-config --libs bluez 2>/dev/null) endif @@ -188,7 +196,10 @@ else $(info native BT support: Bluez not found, disabled) endif ifeq ($(LUASYSTEM),1) -$(info system LUA: Lua5.2 found) +$(info Lua library: system library found) +endif +ifeq ($(WAISYSTEM),1) +$(info Whereami library: system library found) endif $(info compiler version: $(shell $(CC) --version|head -n 1)) $(info ===================================================================) @@ -443,8 +454,10 @@ cliparser: $(Q)$(MAKE) --no-print-directory -C $(CLIPARSERLIBPATH) all whereami: +ifneq ($(WAISYSTEM),1) $(info [*] MAKE $@) $(Q)$(MAKE) --no-print-directory -C $(WAILIBPATH) all +endif # common libraries: mbedtls: diff --git a/doc/md/Development/Maintainers.md b/doc/md/Development/Maintainers.md index 09cddede7..5d1400a7f 100644 --- a/doc/md/Development/Maintainers.md +++ b/doc/md/Development/Maintainers.md @@ -62,6 +62,7 @@ It's also possible to skip parts even if libraries are present in the compilatio * `make client SKIPQT=1` to skip GUI even if Qt is present * `make client SKIPBT=1` to skip native Bluetooth support even if libbluetooth is present * `make client SKIPLUASYSTEM=1` to skip system Lua lib even if liblua5.2 is present, use embedded Lua lib instead +* `make client SKIPWHEREAMISYSTEM=1` to skip system Whereami lib even if libwhereami is present, use embedded whereami lib instead If you're cross-compiling, these ones might be useful: