Feature/makefile add apps library (#218)
* add BACnet stack library at apps/lib * convert apps to use apps/lib for smaller binary * fix -DBACDL_ALL=1 build * fix piface build * datalink MAX_MPDU and MAX_HEADER cleanup * add bip6 to git workflow * fix system library dependency of BACnet library Co-authored-by: Steve Karg <skarg@users.sourceforge.net>
This commit is contained in:
@@ -23,27 +23,37 @@ mstpwin32:
|
||||
|
||||
.PHONY: mstp
|
||||
mstp:
|
||||
$(MAKE) BACDL=mstp -C apps all
|
||||
$(MAKE) BACDL=mstp -s -C apps all
|
||||
|
||||
.PHONY: bip6-win32
|
||||
bip6-win32:
|
||||
$(MAKE) BACDL=bip6 BACNET_PORT=win32 -C apps all
|
||||
$(MAKE) BACDL=bip6 BACNET_PORT=win32 -s -C apps all
|
||||
|
||||
.PHONY: bip6
|
||||
bip6:
|
||||
$(MAKE) BACDL=bip6 -C apps all
|
||||
$(MAKE) BACDL=bip6 -s -C apps all
|
||||
|
||||
.PHONY: ethernet
|
||||
ethernet:
|
||||
$(MAKE) BACDL=ethernet -C apps all
|
||||
$(MAKE) BACDL=ethernet -s -C apps all
|
||||
|
||||
.PHONY: apps
|
||||
apps:
|
||||
$(MAKE) -s -C apps all
|
||||
|
||||
.PHONY: lib
|
||||
lib:
|
||||
$(MAKE) -s -C apps $@
|
||||
|
||||
.PHONY: cmake
|
||||
cmake:
|
||||
mkdir build && cd build && cmake .. -DBUILD_SHARED_LIBS=ON && cmake --build . --clean-first
|
||||
CMAKE_BUILD_DIR=build
|
||||
[ -d $(CMAKE_BUILD_DIR) ] || mkdir -p $(CMAKE_BUILD_DIR)
|
||||
[ -d $(CMAKE_BUILD_DIR) ] && cd $(CMAKE_BUILD_DIR) && cmake .. -DBUILD_SHARED_LIBS=ON && cmake --build . --clean-first
|
||||
|
||||
.PHONY: cmake-test
|
||||
cmake-test:
|
||||
[ -d $(CMAKE_BUILD_DIR) ] && $(MAKE) -s -C build test
|
||||
|
||||
.PHONY: abort
|
||||
abort:
|
||||
@@ -83,7 +93,7 @@ gateway:
|
||||
|
||||
.PHONY: gateway-win32
|
||||
gateway-win32:
|
||||
$(MAKE) BACNET_PORT=win32 -C apps gateway
|
||||
$(MAKE) BACNET_PORT=win32 -s -C apps gateway
|
||||
|
||||
.PHONY: readbdt
|
||||
readbdt:
|
||||
@@ -115,7 +125,7 @@ uevent:
|
||||
|
||||
.PHONY: whois
|
||||
whois:
|
||||
$(MAKE) -C apps $@
|
||||
$(MAKE) -s -C apps $@
|
||||
|
||||
.PHONY: writepropm
|
||||
writepropm:
|
||||
@@ -148,11 +158,11 @@ at91sam7s: ports/at91sam7s/Makefile
|
||||
|
||||
.PHONY: stm32f10x
|
||||
stm32f10x: ports/stm32f10x/Makefile
|
||||
$(MAKE) -C ports/stm32f10x clean all
|
||||
$(MAKE) -s -C ports/stm32f10x clean all
|
||||
|
||||
.PHONY: stm32f4xx
|
||||
stm32f4xx: ports/stm32f4xx/Makefile
|
||||
$(MAKE) -C ports/stm32f4xx clean all
|
||||
$(MAKE) -s -C ports/stm32f4xx clean all
|
||||
|
||||
.PHONY: mstpsnap
|
||||
mstpsnap: ports/linux/mstpsnap.mak
|
||||
|
||||
Reference in New Issue
Block a user