From 54f880c5279a98cf46152053dee38faec611a2a1 Mon Sep 17 00:00:00 2001 From: skarg Date: Wed, 6 Mar 2013 17:27:43 +0000 Subject: [PATCH] Modified demo makefile to support BSD /MAC OS X. Thank you, Patrick! --- bacnet-stack/demo/Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/bacnet-stack/demo/Makefile b/bacnet-stack/demo/Makefile index cbc0803d..8e17135b 100644 --- a/bacnet-stack/demo/Makefile +++ b/bacnet-stack/demo/Makefile @@ -28,6 +28,13 @@ LIBRARY1=-L$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME) LIBRARY2=-lc,-lgcc,-lrt,-lm LIBRARIES=$(LIBRARY1),$(LIBRARY2) endif +ifeq (${BACNET_PORT},bsd) +PFLAGS = -pthread +TARGET_EXT = +LIBRARY1=-L$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME) +LIBRARY2=-lc,-lgcc,-lm +LIBRARIES=$(LIBRARY1),$(LIBRARY2) +endif ifeq (${BACNET_PORT},win32) TARGET_EXT = .exe LIBRARY1=-L$(BACNET_LIB_DIR),-l$(BACNET_LIB_NAME) @@ -49,17 +56,18 @@ LFLAGS = -Wl,$(LIBRARIES) SUBDIRS = readprop writeprop readfile writefile reinit server dcc \ whohas whois ucov scov timesync epics readpropm \ - mstpcap mstpcrc uptransfer + uptransfer ifeq (${BACDL_DEFINE},-DBACDL_BIP=1) SUBDIRS += whoisrouter iamrouter initrouter readbdt endif -#ifeq (${BACNET_PORT},linux) +ifeq (${BACNET_PORT},linux) +SUBDIRS += mstpcap mstpcrc #SUBDIRS += router -#endif +endif ifeq (${BACNET_PORT},win32) -SUBDIRS += ptransfer +SUBDIRS += ptransfer mstpcap mstpcrc endif ifneq (,$(findstring -DBAC_ROUTING,$(BACNET_DEFINES)))