Back to home page

LXR

 
 

    


Warning, /make/main.cfg is written in an unsupported language. File is not indexed.

0001 # make/main.cfg
0002 #
0003 #   Make(1) configuration file include'd by all Makefile's
0004 #
0005 
0006 #
0007 # Initial target for make(1)
0008 #  Once this is established we can safely include other targets
0009 #  within this make-include file.
0010 #
0011 
0012 default_target: all
0013 
0014 #
0015 # where things are relative to PROJECT_ROOT; shouldn't need to change,
0016 # but could be overridden in custom files.
0017 #
0018 
0019 PROJECT_RELEASE ?= $(exec_prefix)/$(RTEMS_BSP)
0020 PROJECT_BIN = $(PROJECT_ROOT)/bin
0021 PROJECT_INCLUDE = $(PROJECT_RELEASE)/lib/include
0022 PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
0023 
0024 ## translate VARIANT into VARIANT_V
0025 ifeq ($(VARIANT),)
0026 VARIANT = OPTIMIZE
0027 endif
0028 
0029 VARIANT_OPTIMIZE_V = OPTIMIZE
0030 VARIANT_DEBUG_V = DEBUG
0031 VARIANT_optimize_V = OPTIMIZE
0032 VARIANT_debug_V = DEBUG
0033 
0034 VARIANT_V = $(VARIANT_$(VARIANT)_V)
0035 
0036 ## Setup the variant build subdirectory
0037 ARCH_OPTIMIZE_V = o-optimize
0038 ARCH_DEBUG_V = o-debug
0039 
0040 ARCH__V = $(ARCH_OPTIMIZE_V)
0041 ARCH = $(ARCH_$(VARIANT_V)_V)
0042 
0043 $(ARCH):
0044         test -d ${ARCH} || mkdir $(ARCH)
0045 #
0046 # Default makefile name
0047 # May be overridden by command line macro assignment
0048 #
0049 
0050 MAKEFILE=Makefile
0051 
0052 #
0053 # Target variant names
0054 #
0055 TARGET_VARIANTS = optimize debug
0056 
0057 #
0058 # Generate list of object directories: o-optimize, o-debug
0059 #
0060 VARIANTS=${TARGET_VARIANTS:%=o-%}
0061 
0062 #
0063 # List of "recursion-able" targets for directory Makefiles
0064 #
0065 
0066 RECURSE_TARGETS=all depend install \
0067 preinstall-recursive \
0068 $(TARGET_VARIANTS)
0069 
0070 ifndef AUTOMAKE
0071 distclean-generic:
0072         -$(RM) .#* $(CONFIG_CLEAN_FILES)
0073         -$(RM) -r $(CLOBBER_ADDITIONS)
0074 
0075 clean-generic:
0076         -$(RM) a.out core mon.out gmon.out
0077         -$(RM) -r $(CLEAN_ADDITIONS)
0078 endif
0079 
0080 .PHONY: $(RECURSE_TARGETS)
0081 .PHONY: clean-generic
0082 .PHONY: distclean-generic