Fixing Makefile build for bip6 with win32 MinGW and in github workflows. (#1125)
This commit is contained in:
@@ -11,22 +11,16 @@ all: apps
|
||||
|
||||
.PHONY: bsd
|
||||
bsd:
|
||||
$(MAKE) BACNET_PORT=bsd -s -C apps all
|
||||
$(MAKE) LEGACY=true BACNET_PORT=bsd -s -C apps all
|
||||
|
||||
.PHONY: win32
|
||||
win32:
|
||||
$(MAKE) BACNET_PORT=win32 -s -C apps all
|
||||
$(MAKE) LEGACY=true BACNET_PORT=win32 -s -C apps all
|
||||
|
||||
.PHONY: mingw32
|
||||
mingw32:
|
||||
i686-w64-mingw32-gcc --version
|
||||
ORIGINAL_CC=$(CC) ; \
|
||||
ORIGINAL_LD=$(LD) ; \
|
||||
export CC=i686-w64-mingw32-gcc ; \
|
||||
export LD=i686-w64-mingw32-ld ; \
|
||||
$(MAKE) BACNET_PORT=win32 LEGACY=true -s -C apps all ; \
|
||||
export CC=$(ORIGINAL_CC) ; \
|
||||
export LD=$(ORIGINAL_LD)
|
||||
$(MAKE) PREFIX=i686-w64-mingw32- BACNET_PORT=win32 LEGACY=true BACDL=bip6 -s -C apps all
|
||||
|
||||
.PHONY: mstpwin32-clean
|
||||
mstpwin32-clean:
|
||||
@@ -40,25 +34,25 @@ mstpwin32:
|
||||
mstp:
|
||||
$(MAKE) BACDL=mstp -s -C apps all
|
||||
|
||||
.PHONY: bip6-win32
|
||||
bip6-win32:
|
||||
$(MAKE) BACDL=bip6 BACNET_PORT=win32 -s -C apps all
|
||||
.PHONY: mingw32-bip6
|
||||
mingw32-bip6:
|
||||
$(MAKE) PREFIX=i686-w64-mingw32- BACNET_PORT=win32 LEGACY=true BACDL=bip6 -s -C apps all
|
||||
|
||||
.PHONY: bip6
|
||||
bip6:
|
||||
$(MAKE) BACDL=bip6 -s -C apps all
|
||||
$(MAKE) LEGACY=true BACDL=bip6 -s -C apps all
|
||||
|
||||
.PHONY: bip
|
||||
bip:
|
||||
$(MAKE) BACDL=bip -s -C apps all
|
||||
$(MAKE) LEGACY=true BACDL=bip -s -C apps all
|
||||
|
||||
.PHONY: bip-client
|
||||
bip-client:
|
||||
$(MAKE) BACDL=bip BBMD=client -s -C apps all
|
||||
$(MAKE) LEGACY=true BACDL=bip BBMD=client -s -C apps all
|
||||
|
||||
.PHONY: ethernet
|
||||
ethernet:
|
||||
$(MAKE) BACDL=ethernet -s -C apps all
|
||||
$(MAKE) LEGACY=true BACDL=ethernet -s -C apps all
|
||||
|
||||
# note: requires additional libraries to be installed
|
||||
# see .github/workflows/gcc.yml
|
||||
|
||||
Reference in New Issue
Block a user