source: rtems/make/main.cfg @ 393d271

4.104.114.84.9
Last change on this file since 393d271 was 393d271, checked in by Ralf Corsepius <ralf.corsepius@…>, on Nov 12, 2002 at 10:32:00 AM

2002-11-12 Ralf Corsepius <corsepiu@…>

  • custom/default.cfg: Remove RTEMS_BSP_SPECS. Remove reference to obsolete Makefile.
  • leaf.cfg: Various changes to LIBVARIANT processing.
  • main.cfg: Ditto.
  • 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
28VARIANT = OPTIMIZE
29
30VARIANT_OPTIMIZE_V = OPTIMIZE
31VARIANT_DEBUG_V = DEBUG
32VARIANT_PROFILE_V = PROFILE
33VARIANT_optimize_V = OPTIMIZE
34VARIANT_debug_V = DEBUG
35VARIANT_profile_V = PROFILE
36
37VARIANT_V = $(VARIANT_$(VARIANT)_V)
38
39## Setup the variant build subdirectory
40ARCH_OPTIMIZE_V = o-optimize
41ARCH_DEBUG_V = o-debug
42ARCH_PROFILE_V = o-profile
43
44ARCH__V = $(ARCH_OPTIMIZE_V)
45ARCH = $(ARCH_$(VARIANT_V)_V)
46
47$(ARCH):
48        test -d ${ARCH} || mkdir $(ARCH)
49#
50# Default makefile name
51# May be overridden by command line macro assignment
52#
53
54MAKEFILE=Makefile
55
56#
57# Target variant names
58#
59TARGET_VARIANTS = optimize debug profile
60
61#
62# Generate list of object directories: o-optimize, o-debug, o-profile
63#
64VARIANTS=${TARGET_VARIANTS:%=o-%}
65
66#
67# List of "recursion-able" targets for directory Makefiles
68#
69
70RECURSE_TARGETS=all depend install \
71preinstall-recursive \
72$(TARGET_VARIANTS)
73
74ifndef AUTOMAKE
75distclean-generic:
76        -$(RM) .#* $(CONFIG_CLEAN_FILES)
77        -$(RM) -r $(CLOBBER_ADDITIONS)
78
79clean-generic:
80        -$(RM) a.out core mon.out gmon.out
81        -$(RM) -r $(CLEAN_ADDITIONS)
82endif
83
84.PHONY: $(RECURSE_TARGETS)
85.PHONY: clean-generic
86.PHONY: distclean-generic
Note: See TracBrowser for help on using the repository browser.