Arranged the BBMD functions so that BBMD_ENABLE shrouds all the code used just by implementations which serve as a BBMD device.
Left the few for registering as a foreign device in the common code body (no #ifdef around them), and moved them to one area toward the end of the file. (Seemed like too few to justify having their own source code file.) Allow foreign device registration function without requiring BBMD_ENABLE.
This commit is contained in:
@@ -25,8 +25,13 @@ BACNET_DEFINES ?= $(MY_BACNET_DEFINES)
|
||||
#BACDL_DEFINE=-DBACDL_MSTP=1
|
||||
BACDL_DEFINE?=-DBACDL_BIP=1
|
||||
|
||||
# Declare your level of BBMD support
|
||||
BBMD_DEFINE ?=
|
||||
#BBMD_DEFINE ?= -DBBMD_ENABLE
|
||||
#BBMD_DEFINE ?= -DBBMD_CLIENT_ENABLED
|
||||
|
||||
# Define WEAK_FUNC for [...somebody help here; I can't find any uses of it]
|
||||
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE) -DWEAK_FUNC=
|
||||
DEFINES = $(BACNET_DEFINES) $(BACDL_DEFINE) $(BBMD_DEFINE) -DWEAK_FUNC=
|
||||
|
||||
# directories
|
||||
BACNET_PORT = linux
|
||||
|
||||
Reference in New Issue
Block a user