summaryrefslogtreecommitdiffstats
path: root/make/directory.cfg
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-20 19:30:30 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1998-01-20 19:30:30 +0000
commitbffb93879940c71c58d2c66410e1bd5e5e4dc979 (patch)
tree2b13eb892f6022cb62a7847f2d27fb44e5e313ae /make/directory.cfg
parent3294650cc34a7b1e6e669ecd4f95fba26ac4b97d (diff)
downloadrtems-bffb93879940c71c58d2c66410e1bd5e5e4dc979.tar.bz2
Removed PROJECT_HOME and CONFIG_DIR variables.
Diffstat (limited to 'make/directory.cfg')
-rw-r--r--make/directory.cfg43
1 files changed, 43 insertions, 0 deletions
diff --git a/make/directory.cfg b/make/directory.cfg
new file mode 100644
index 0000000000..1ae1db84bd
--- /dev/null
+++ b/make/directory.cfg
@@ -0,0 +1,43 @@
+#
+# $Id$
+#
+# make/directory.cfg
+#
+# Make(1) configuration file include'd by all directory-level Makefile's.
+#
+# See also make/main.cfg
+#
+
+# include $(RTEMS_ROOT)/make/main.cfg
+
+# on a 'make -k' we don't want to bomb out of directory list
+EXIT_CMD=exit 1
+ifeq (k, $(findstring k, $(MAKEFLAGS)))
+EXIT_CMD=true
+endif
+
+RULE=$(shell echo $@ | $(SED) -e s/debug_// -e s/profile_//)
+
+ifeq ($(RTEMS_USE_OWN_PDIR),yes)
+$(RECURSE_TARGETS):
+ @$(ECHO); \
+ BASEDIR=`pwd`; \
+ for subd in $(SUB_DIRS) xxx; \
+ do if [ $$subd != xxx ] ; then \
+ cd $$BASEDIR; \
+ $(ECHO); \
+ $(ECHO) "*** $$BASEDIR/$$subd ($@)" ; \
+ cmd="cd $$subd; $(MAKE) $(RULE)"; \
+ $(ECHO) $$cmd; \
+ eval $$cmd || $(EXIT_CMD); \
+ fi; done; \
+ $(ECHO); \
+ $(ECHO) "*** $$BASEDIR/$@ ($@) Finished."; \
+ $(ECHO)
+ $($@_WRAPUP)
+else
+ifdef RECURSE_TARGETS
+$(RECURSE_TARGETS):
+ set -e; for subd in $(SUB_DIRS); do $(MAKE) -w -C $$subd $@; done
+endif
+endif