source: rtems/make/main.cfg @ 888622c4

4.104.114.84.9
Last change on this file since 888622c4 was 888622c4, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jun 6, 2003 at 4:39:43 AM

2003-06-06 Ralf Corsepius <corsepiu@…>

PR 321:

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