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

4.104.114.84.9
Last change on this file since 581c3117 was c2646c8, checked in by Joel Sherrill <joel.sherrill@…>, on Nov 18, 2002 at 12:42:53 AM

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
Line 
1#
2#  $Id$
3#
4# make/main.cfg
5#
6#   Make(1) configuration file include'd by all Makefile's
7#
8
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
17#
18# where things are relative to PROJECT_ROOT; shouldn't need to change,
19# but could be overridden in custom files.
20#
21
22PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP)
23PROJECT_BIN=$(PROJECT_ROOT)/bin
24PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
25PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
26
27## translate VARIANT into VARIANT_V
28ifeq ($(VARIANT),)
29VARIANT = OPTIMIZE
30endif
31
32VARIANT_OPTIMIZE_V = OPTIMIZE
33VARIANT_DEBUG_V = DEBUG
34VARIANT_PROFILE_V = PROFILE
35VARIANT_optimize_V = OPTIMIZE
36VARIANT_debug_V = DEBUG
37VARIANT_profile_V = PROFILE
38
39VARIANT_V = $(VARIANT_$(VARIANT)_V)
40
41## Setup the variant build subdirectory
42ARCH_OPTIMIZE_V = o-optimize
43ARCH_DEBUG_V = o-debug
44ARCH_PROFILE_V = o-profile
45
46ARCH__V = $(ARCH_OPTIMIZE_V)
47ARCH = $(ARCH_$(VARIANT_V)_V)
48
49$(ARCH):
50        test -d ${ARCH} || mkdir $(ARCH)
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#
61TARGET_VARIANTS = optimize debug profile
62
63#
64# Generate list of object directories: o-optimize, o-debug, o-profile
65#
66VARIANTS=${TARGET_VARIANTS:%=o-%}
67
68#
69# List of "recursion-able" targets for directory Makefiles
70#
71
72RECURSE_TARGETS=all depend install \
73preinstall-recursive \
74$(TARGET_VARIANTS)
75
76ifndef AUTOMAKE
77distclean-generic:
78        -$(RM) .#* $(CONFIG_CLEAN_FILES)
79        -$(RM) -r $(CLOBBER_ADDITIONS)
80
81clean-generic:
82        -$(RM) a.out core mon.out gmon.out
83        -$(RM) -r $(CLEAN_ADDITIONS)
84endif
85
86.PHONY: $(RECURSE_TARGETS)
87.PHONY: clean-generic
88.PHONY: distclean-generic
Note: See TracBrowser for help on using the repository browser.