source: rtems/make/main.cfg @ 581c3117

4.104.114.84.95
Last change on this file since 581c3117 was c2646c8, checked in by Joel Sherrill <joel.sherrill@…>, on 11/18/02 at 00:42:53

2002-11-17 Joel Sherrill <joel@…>

  • leaf.cfg, main.cfg, compilers/gcc-target-default.cfg: Make build variants work for user applications post install.
  • Property mode set to 100644
File size: 1.7 KB
RevLine 
[bffb938]1#
2#  $Id$
3#
4# make/main.cfg
5#
6#   Make(1) configuration file include'd by all Makefile's
7#
8
[393d271]9#
10# Initial target for make(1)
11#  Once this is established we can safely include other targets
12#  within this make-include file.
13#
14
15default_target: all
16
[bffb938]17#
18# where things are relative to PROJECT_ROOT; shouldn't need to change,
19# but could be overridden in custom files.
20#
21
[1db8d62f]22PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP)
[d74fdb5]23PROJECT_BIN=$(PROJECT_ROOT)/bin
[bffb938]24PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
25PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
26
[393d271]27## translate VARIANT into VARIANT_V
[c2646c8]28ifeq ($(VARIANT),)
[393d271]29VARIANT = OPTIMIZE
[c2646c8]30endif
[bffb938]31
[393d271]32VARIANT_OPTIMIZE_V = OPTIMIZE
33VARIANT_DEBUG_V = DEBUG
34VARIANT_PROFILE_V = PROFILE
35VARIANT_optimize_V = OPTIMIZE
36VARIANT_debug_V = DEBUG
37VARIANT_profile_V = PROFILE
[bffb938]38
[393d271]39VARIANT_V = $(VARIANT_$(VARIANT)_V)
[bffb938]40
[393d271]41## Setup the variant build subdirectory
42ARCH_OPTIMIZE_V = o-optimize
43ARCH_DEBUG_V = o-debug
44ARCH_PROFILE_V = o-profile
[bffb938]45
[393d271]46ARCH__V = $(ARCH_OPTIMIZE_V)
47ARCH = $(ARCH_$(VARIANT_V)_V)
48
49$(ARCH):
50        test -d ${ARCH} || mkdir $(ARCH)
[bffb938]51#
52# Default makefile name
53# May be overridden by command line macro assignment
54#
55
56MAKEFILE=Makefile
57
58#
59# Target variant names
60#
[d6c83529]61TARGET_VARIANTS = optimize debug profile
[bffb938]62
63#
[d6c83529]64# Generate list of object directories: o-optimize, o-debug, o-profile
[bffb938]65#
[d6c83529]66VARIANTS=${TARGET_VARIANTS:%=o-%}
[bffb938]67
68#
69# List of "recursion-able" targets for directory Makefiles
70#
71
[29e68b75]72RECURSE_TARGETS=all depend install \
[6693a68]73preinstall-recursive \
[29e68b75]74$(TARGET_VARIANTS)
[bffb938]75
[9608320]76ifndef AUTOMAKE
[29e68b75]77distclean-generic:
[df49c60]78        -$(RM) .#* $(CONFIG_CLEAN_FILES)
[29e68b75]79        -$(RM) -r $(CLOBBER_ADDITIONS)
80
81clean-generic:
82        -$(RM) a.out core mon.out gmon.out
83        -$(RM) -r $(CLEAN_ADDITIONS)
[9608320]84endif
[29e68b75]85
86.PHONY: $(RECURSE_TARGETS)
87.PHONY: clean-generic
88.PHONY: distclean-generic
Note: See TracBrowser for help on using the repository browser.