source: rtems/make/main.cfg @ 6e32d88

4.104.114.84.95
Last change on this file since 6e32d88 was ccf2cfd, checked in by Joel Sherrill <joel.sherrill@…>, on 09/13/02 at 13:39:52

2002-09-13 Joel Sherrill <joel@…>

  • Part of addressing PR281.
  • main.cfg: Added recognition of VARIANT=DEBUG on command line.
  • compilers/gcc-target-default.cfg: Removed remaining support for RTEMS_USE_GCC272 and RTEMS_LIBC_DIR as well as added -qrtems_debug as one of the LDFLAGS when the debug variant is specified.
  • Property mode set to 100644
File size: 1.5 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# where things are relative to PROJECT_ROOT; shouldn't need to change,
11# but could be overridden in custom files.
12#
13
14PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP)
15PROJECT_BIN=$(PROJECT_ROOT)/bin
16PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
17PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
18
19#
20# Target architecture; may be changed as per 'make "ARCH=debug"'
21# This is where the object files get put.
22#
23
24ifeq ($(VARIANT),)
25ARCH=o-optimize
26VARIANT=
27else
28ifeq ($(VARIANT),DEBUG)
29ARCH=o-debug
30VARIANT=DEBUG
31endif
32endif
33
34#
35# Initial target for make(1)
36#  Once this is established we can safely include other targets
37#  within this make-include file.
38#
39
40default_target: all
41
42#
43# Default makefile name
44# May be overridden by command line macro assignment
45#
46
47MAKEFILE=Makefile
48
49#
50# Target variant names
51#
52TARGET_VARIANTS = optimize debug profile
53
54#
55# Generate list of object directories: o-optimize, o-debug, o-profile
56#
57VARIANTS=${TARGET_VARIANTS:%=o-%}
58
59#
60# List of "recursion-able" targets for directory Makefiles
61#
62
63RECURSE_TARGETS=all depend install \
64preinstall-recursive \
65$(TARGET_VARIANTS)
66
67${ARCH}:
68        test -d ${ARCH} || mkdir ${ARCH}
69
70ifndef AUTOMAKE
71distclean-generic:
72        -$(RM) .#* $(CONFIG_CLEAN_FILES)
73        -$(RM) -r $(CLOBBER_ADDITIONS)
74
75clean-generic:
76        -$(RM) a.out core mon.out gmon.out
77        -$(RM) -r $(CLEAN_ADDITIONS)
78endif
79
80.PHONY: $(RECURSE_TARGETS)
81.PHONY: clean-generic
82.PHONY: distclean-generic
Note: See TracBrowser for help on using the repository browser.