Added target router to makefiles

This commit is contained in:
vasyl-tkhir
2012-09-28 09:16:59 +00:00
parent c5e477c73a
commit 251857e3f6
2 changed files with 12 additions and 3 deletions
+4
View File
@@ -75,6 +75,9 @@ library:
demos:
$(MAKE) -C demo all
router:
$(MAKE) -C demo router
# Add "ports" to the build, if desired
ports: atmega168 bdk-atxx4-mstp at91sam7s
@echo "Built the ARM7 and AVR ports"
@@ -91,3 +94,4 @@ bdk-atxx4-mstp: ports/bdk-atxx4-mstp/Makefile
clean:
$(MAKE) -C lib clean
$(MAKE) -C demo clean
$(MAKE) -C demo/router clean
+8 -3
View File
@@ -49,9 +49,9 @@ SUBDIRS = readprop writeprop readfile writefile reinit server dcc \
whohas whois ucov scov timesync epics readpropm \
mstpcap mstpcrc uptransfer \
whoisrouter iamrouter initrouter
ifeq (${BACNET_PORT},linux)
SUBDIRS += router
endif
#ifeq (${BACNET_PORT},linux)
#SUBDIRS += router
#endif
ifeq (${BACNET_PORT},win32)
SUBDIRS += ptransfer
@@ -61,9 +61,14 @@ ifneq (,$(findstring -DBAC_ROUTING,$(BACNET_DEFINES)))
SUBDIRS += gateway
endif
.PHONY : all router clean
TARGETS = all clean
$(TARGETS): %: $(patsubst %, %.%, $(SUBDIRS))
$(foreach TGT, $(TARGETS), $(patsubst %, %.$(TGT), $(SUBDIRS))):
$(MAKE) -b -C $(subst ., , $@)
router:
$(MAKE) -b -C router