source: rtems/make/main.cfg @ ccf2cfd

4.104.114.84.95
Last change on this file since ccf2cfd 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
RevLine 
[bffb938]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
[1db8d62f]14PROJECT_RELEASE=$(exec_prefix)/$(RTEMS_BSP)
[d74fdb5]15PROJECT_BIN=$(PROJECT_ROOT)/bin
[bffb938]16PROJECT_INCLUDE=$(PROJECT_RELEASE)/lib/include
17PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools
18
19#
[d6c83529]20# Target architecture; may be changed as per 'make "ARCH=debug"'
[bffb938]21# This is where the object files get put.
22#
23
[ccf2cfd]24ifeq ($(VARIANT),)
[d6c83529]25ARCH=o-optimize
[bffb938]26VARIANT=
[ccf2cfd]27else
28ifeq ($(VARIANT),DEBUG)
29ARCH=o-debug
30VARIANT=DEBUG
31endif
32endif
[bffb938]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#
[d6c83529]52TARGET_VARIANTS = optimize debug profile
[bffb938]53
54#
[d6c83529]55# Generate list of object directories: o-optimize, o-debug, o-profile
[bffb938]56#
[d6c83529]57VARIANTS=${TARGET_VARIANTS:%=o-%}
[bffb938]58
59#
60# List of "recursion-able" targets for directory Makefiles
61#
62
[29e68b75]63RECURSE_TARGETS=all depend install \
[6693a68]64preinstall-recursive \
[29e68b75]65$(TARGET_VARIANTS)
[bffb938]66
67${ARCH}:
[817466c]68        test -d ${ARCH} || mkdir ${ARCH}
[bffb938]69
[9608320]70ifndef AUTOMAKE
[29e68b75]71distclean-generic:
[df49c60]72        -$(RM) .#* $(CONFIG_CLEAN_FILES)
[29e68b75]73        -$(RM) -r $(CLOBBER_ADDITIONS)
74
75clean-generic:
76        -$(RM) a.out core mon.out gmon.out
77        -$(RM) -r $(CLEAN_ADDITIONS)
[9608320]78endif
[29e68b75]79
80.PHONY: $(RECURSE_TARGETS)
81.PHONY: clean-generic
82.PHONY: distclean-generic
Note: See TracBrowser for help on using the repository browser.