#
|
#
|
# $Id: main.cfg,v 1.2 2001-09-27 12:02:50 chris Exp $
|
# $Id: main.cfg,v 1.2 2001-09-27 12:02:50 chris Exp $
|
#
|
#
|
# make/main.cfg
|
# make/main.cfg
|
#
|
#
|
# Make(1) configuration file include'd by all Makefile's
|
# Make(1) configuration file include'd by all Makefile's
|
#
|
#
|
|
|
#
|
#
|
# where things are relative to PROJECT_ROOT; shouldn't need to change,
|
# where things are relative to PROJECT_ROOT; shouldn't need to change,
|
# but could be overridden in custom files.
|
# but could be overridden in custom files.
|
#
|
#
|
|
|
PROJECT_RELEASE=$(PROJECT_ROOT)/$(RTEMS_BSP)
|
PROJECT_RELEASE=$(PROJECT_ROOT)/$(RTEMS_BSP)
|
PROJECT_BIN=$(PROJECT_ROOT)/bin
|
PROJECT_BIN=$(PROJECT_ROOT)/bin
|
PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
|
PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
|
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
|
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
|
|
|
#
|
#
|
# Target architecture; may be changed as per 'make "ARCH=debug"'
|
# Target architecture; may be changed as per 'make "ARCH=debug"'
|
# This is where the object files get put.
|
# This is where the object files get put.
|
#
|
#
|
|
|
ARCH=o-optimize
|
ARCH=o-optimize
|
|
|
VARIANT=
|
VARIANT=
|
|
|
#
|
#
|
# Initial target for make(1)
|
# Initial target for make(1)
|
# Once this is established we can safely include other targets
|
# Once this is established we can safely include other targets
|
# within this make-include file.
|
# within this make-include file.
|
#
|
#
|
|
|
default_target: all
|
default_target: all
|
|
|
#
|
#
|
# Default makefile name
|
# Default makefile name
|
# May be overridden by command line macro assignment
|
# May be overridden by command line macro assignment
|
#
|
#
|
|
|
MAKEFILE=Makefile
|
MAKEFILE=Makefile
|
|
|
#
|
#
|
# Target variant names
|
# Target variant names
|
#
|
#
|
TARGET_VARIANTS = optimize debug profile
|
TARGET_VARIANTS = optimize debug profile
|
|
|
#
|
#
|
# Generate list of object directories: o-optimize, o-debug, o-profile
|
# Generate list of object directories: o-optimize, o-debug, o-profile
|
#
|
#
|
VARIANTS=${TARGET_VARIANTS:%=o-%}
|
VARIANTS=${TARGET_VARIANTS:%=o-%}
|
|
|
#
|
#
|
# List of "recursion-able" targets for directory Makefiles
|
# List of "recursion-able" targets for directory Makefiles
|
#
|
#
|
|
|
RECURSE_TARGETS=all depend install \
|
RECURSE_TARGETS=all depend install \
|
preinstall-recursive \
|
preinstall-recursive \
|
$(TARGET_VARIANTS)
|
$(TARGET_VARIANTS)
|
|
|
${ARCH}:
|
${ARCH}:
|
test -d ${ARCH} || mkdir ${ARCH}
|
test -d ${ARCH} || mkdir ${ARCH}
|
|
|
ifndef AUTOMAKE
|
ifndef AUTOMAKE
|
distclean-generic:
|
distclean-generic:
|
-$(RM) .#* $(CONFIG_CLEAN_FILES)
|
-$(RM) .#* $(CONFIG_CLEAN_FILES)
|
-$(RM) -r $(CLOBBER_ADDITIONS)
|
-$(RM) -r $(CLOBBER_ADDITIONS)
|
|
|
clean-generic:
|
clean-generic:
|
-$(RM) a.out core mon.out gmon.out
|
-$(RM) a.out core mon.out gmon.out
|
-$(RM) -r $(CLEAN_ADDITIONS)
|
-$(RM) -r $(CLEAN_ADDITIONS)
|
endif
|
endif
|
|
|
.PHONY: $(RECURSE_TARGETS)
|
.PHONY: $(RECURSE_TARGETS)
|
.PHONY: clean-generic
|
.PHONY: clean-generic
|
.PHONY: distclean-generic
|
.PHONY: distclean-generic
|
|
|