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:
tbrennan3
2011-09-12 11:54:42 +00:00
parent a41c8fcc99
commit 46d7daf405
4 changed files with 113 additions and 71 deletions
+6 -1
View File
@@ -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