Fixing Makefile build for bip6 with win32 MinGW and in github workflows. (#1125)

This commit is contained in:
Steve Karg
2025-10-30 12:00:01 -05:00
committed by GitHub
parent 895d9b3e21
commit 17259b37f3
10 changed files with 216 additions and 104 deletions
+14 -12
View File
@@ -95,37 +95,38 @@ PORT_ALL_SRC = \
PORT_NONE_SRC = \
$(BACNET_SRC_DIR)/bacnet/datalink/datalink.c
ifeq (${BACDL_DEFINE},-DBACDL_BIP=1)
$(info $(BACNET_LIB_TARGET) datalink $(BACDL))
ifeq ($(BACDL),bip)
BACNET_PORT_SRC = ${PORT_BIP_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_BIP6=1)
ifeq ($(BACDL),bip6)
BACNET_PORT_SRC = ${PORT_BIP6_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_MSTP=1)
BACNET_PORT_SRC = ${PORT_MSTP_SRC} ${APPS_ENVIRONMENT_SRC}
ifeq ($(BACDL),mstp)
BACNET_PORT_SRC = ${PORT_MSTP_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_ARCNET=1)
ifeq ($(BACDL),arcnet)
BACNET_PORT_SRC = ${PORT_ARCNET_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_ETHERNET=1)
ifeq ($(BACDL),ethernet)
BACNET_PORT_SRC = ${PORT_ETHERNET_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_ZIGBEE=1)
ifeq ($(BACDL),zigbee)
BACNET_PORT_SRC = ${PORT_ZIGBEE_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_NONE=1)
ifeq ($(BACDL),none)
BACNET_PORT_SRC = ${PORT_NONE_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_BSC=1)
ifeq ($(BACDL),bsc)
BACNET_PORT_SRC = ${PORT_BSC_SRC} ${APPS_ENVIRONMENT_SRC}
endif
ifeq (${BACDL_DEFINE},-DBACDL_ALL=1)
ifeq ($(BACDL),all)
BACNET_PORT_SRC = ${PORT_ALL_SRC}
endif
ifeq (${BACDL},bip-mstp)
ifeq ($(BACDL),bip-mstp)
BACNET_PORT_SRC = ${PORT_BIP_SRC} ${PORT_MSTP_SRC}
endif
ifeq (${BACDL},bip-bip6)
ifeq ($(BACDL),bip-bip6)
BACNET_PORT_SRC = ${PORT_BIP_SRC} ${PORT_BIP6_SRC}
endif
ifneq (${BACDL_DEFINE},)
@@ -170,6 +171,7 @@ all: $(BACNET_LIB_TARGET)
lib: $(BACNET_LIB_TARGET)
$(BACNET_LIB_TARGET): $(OBJS) Makefile
$(info $(BACNET_LIB_TARGET) SRCS: $(notdir $(SRCS)))
${AR} rcs $@ $(OBJS)
.c.o: