summaryrefslogtreecommitdiffstats
path: root/make/main.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/main.cfg
parent3294650cc34a7b1e6e669ecd4f95fba26ac4b97d (diff)
downloadrtems-bffb93879940c71c58d2c66410e1bd5e5e4dc979.tar.bz2
Removed PROJECT_HOME and CONFIG_DIR variables.
Diffstat (limited to 'make/main.cfg')
-rw-r--r--make/main.cfg82
1 files changed, 82 insertions, 0 deletions
diff --git a/make/main.cfg b/make/main.cfg
new file mode 100644
index 0000000000..7521d4ea99
--- /dev/null
+++ b/make/main.cfg
@@ -0,0 +1,82 @@
+#
+# $Id$
+#
+# make/main.cfg
+#
+# Make(1) configuration file include'd by all Makefile's
+#
+
+#
+# where things are relative to PROJECT_ROOT; shouldn't need to change,
+# but could be overridden in custom files.
+#
+
+PROJECT_RELEASE=$(PROJECT_ROOT)/$(RTEMS_BSP)
+PROJECT_BIN=$(PROJECT_RELEASE)/bin
+PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
+PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
+
+#
+# Target architecture; may be changed as per 'make "ARCH=${TARGET_ARCH}-debug"'
+# This is where the object files get put.
+#
+
+ARCH=${TARGET_ARCH}
+
+VARIANT=
+
+#
+# Initial target for make(1)
+# Once this is established we can safely include other targets
+# within this make-include file.
+#
+
+default_target: all
+
+#
+# Describe the host os
+#
+# include $(PROJECT_ROOT)/make/target.cfg
+# include $(PROJECT_ROOT)/make/host.cfg
+
+#
+# Default makefile name
+# May be overridden by command line macro assignment
+#
+
+MAKEFILE=Makefile
+
+#
+# Target variant names
+# and rule to expand them into (for example): sun4 sun4-debug sun4-profile
+# Note compiler config may add to TARGET_VARIANTS
+#
+
+TARGET_VARIANTS = debug profile
+
+#
+# Generate list of object directories: sun4, sun4-debug, sun4-profile
+#
+VARIANTS=${TARGET_ARCH} ${TARGET_VARIANTS:%=${TARGET_ARCH}-%}
+
+#
+# List of "recursion-able" targets for directory Makefiles
+#
+
+RECURSE_TARGETS=all clean protos get clobber depend \
+ $(TARGET_VARIANTS) $(TARGET_VARIANTS:%=%_install)
+
+ifeq ($(RTEMS_USE_OWN_PDIR),yes)
+MAKEFLAGS += --no-print-directory
+endif
+
+${ARCH}:
+ test -d ${ARCH} || $(MKDIR) ${ARCH}
+
+
+# general purpose forcing dependency; try to use .PHONY instead
+FORCEIT:
+
+FORCE:
+
+.PHONY: $(RECURSE_TARGETS)