summaryrefslogtreecommitdiff
path: root/makefiles/sub.mk
blob: 644dc3cb6b3653c1a5408a9931ff8fad383a7607 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# makefile for a sub package
#
# requires:
# - TOPDIR
# - SUBDIRS
# - INCLUDE_DIRS
#
# provides:
# - target: all targets

-include $(TOPDIR)/makefiles/platform.mk
-include $(TOPDIR)/makefiles/compiler.mk

.PHONY: all $(SUBDIRS) local_all
all: local_all $(OBJS) $(CPPOBJS) $(BIN_OBJS) $(BINS) $(CMODULES) $(CPPMODULES)
	@test -z "$(SUBDIRS)" || ( set -e; for d in $(SUBDIRS)""; do \
	  (set -e; $(MAKE) -C $$d all || exit 1); done)

-include $(TOPDIR)/makefiles/depend.mk
-include $(TOPDIR)/makefiles/clean.mk