Added target router to makefiles
This commit is contained in:
@@ -75,6 +75,9 @@ library:
|
|||||||
demos:
|
demos:
|
||||||
$(MAKE) -C demo all
|
$(MAKE) -C demo all
|
||||||
|
|
||||||
|
router:
|
||||||
|
$(MAKE) -C demo router
|
||||||
|
|
||||||
# Add "ports" to the build, if desired
|
# Add "ports" to the build, if desired
|
||||||
ports: atmega168 bdk-atxx4-mstp at91sam7s
|
ports: atmega168 bdk-atxx4-mstp at91sam7s
|
||||||
@echo "Built the ARM7 and AVR ports"
|
@echo "Built the ARM7 and AVR ports"
|
||||||
@@ -91,3 +94,4 @@ bdk-atxx4-mstp: ports/bdk-atxx4-mstp/Makefile
|
|||||||
clean:
|
clean:
|
||||||
$(MAKE) -C lib clean
|
$(MAKE) -C lib clean
|
||||||
$(MAKE) -C demo clean
|
$(MAKE) -C demo clean
|
||||||
|
$(MAKE) -C demo/router clean
|
||||||
|
|||||||
@@ -49,9 +49,9 @@ SUBDIRS = readprop writeprop readfile writefile reinit server dcc \
|
|||||||
whohas whois ucov scov timesync epics readpropm \
|
whohas whois ucov scov timesync epics readpropm \
|
||||||
mstpcap mstpcrc uptransfer \
|
mstpcap mstpcrc uptransfer \
|
||||||
whoisrouter iamrouter initrouter
|
whoisrouter iamrouter initrouter
|
||||||
ifeq (${BACNET_PORT},linux)
|
#ifeq (${BACNET_PORT},linux)
|
||||||
SUBDIRS += router
|
#SUBDIRS += router
|
||||||
endif
|
#endif
|
||||||
|
|
||||||
ifeq (${BACNET_PORT},win32)
|
ifeq (${BACNET_PORT},win32)
|
||||||
SUBDIRS += ptransfer
|
SUBDIRS += ptransfer
|
||||||
@@ -61,9 +61,14 @@ ifneq (,$(findstring -DBAC_ROUTING,$(BACNET_DEFINES)))
|
|||||||
SUBDIRS += gateway
|
SUBDIRS += gateway
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY : all router clean
|
||||||
|
|
||||||
TARGETS = all clean
|
TARGETS = all clean
|
||||||
|
|
||||||
$(TARGETS): %: $(patsubst %, %.%, $(SUBDIRS))
|
$(TARGETS): %: $(patsubst %, %.%, $(SUBDIRS))
|
||||||
|
|
||||||
$(foreach TGT, $(TARGETS), $(patsubst %, %.$(TGT), $(SUBDIRS))):
|
$(foreach TGT, $(TARGETS), $(patsubst %, %.$(TGT), $(SUBDIRS))):
|
||||||
$(MAKE) -b -C $(subst ., , $@)
|
$(MAKE) -b -C $(subst ., , $@)
|
||||||
|
|
||||||
|
router:
|
||||||
|
$(MAKE) -b -C router
|
||||||
|
|||||||
Reference in New Issue
Block a user