source: rtems/c/src/automake/compile.am @ 4c14ea3e

4.104.114.84.95
Last change on this file since 4c14ea3e was 4c14ea3e, checked in by Ralf Corsepius <ralf.corsepius@…>, on Jan 2, 2005 at 1:01:50 AM

2005-01-01 Ralf Corsepius <ralf.corsepius@…>

  • automake/compile.am: Remove build-variant support.
  • Property mode set to 100644
File size: 2.5 KB
Line 
1##
2## $Id$
3##
4
5## -------------------------------------------------------------------------
6## NOTE: This file is rather immature and has to be considered to be
7## almost experimental.
8##
9## Expect frequent changes -- It deserves to be cleaned up :(
10## -------------------------------------------------------------------------
11
12## The section below is based on make/compilers/gcc-target-default.cfg
13## used in former versions of RTEMS.
14
15##
16## Set up the flags for the toolchains:
17##
18## We are considering 3 different building schemes here:
19## * Using gcc's being able to accept -specs (aka gcc-2.8 building scheme)
20## * Using gcc's not being able to accept -specs (aka gcc-2.7.2 building
21##   scheme)
22## * Using third party toolchains (aka non-gcc building scheme)
23##
24## Automake conditionals in use:
25## RTEMS_USE_GCC     .. if we are using GCC
26
27## NOTES:
28## * The gcc-2.8 building scheme is the nominal building scheme and
29##   is actively supported.
30## * The non-gcc building scheme requires manually setting up environment
31##   variables and is hardly tested at all
32
33## CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V are the values we
34## would want the corresponding macros to be set to.
35##
36## CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set by the
37## 'VARIANT=<OPTIMIZE|DEBUG>' targets to their _V values.
38
39if RTEMS_USE_GCC
40## All the stuff below is specific to gcc
41GCCSPECS = $(GCC_SPECS) $(RTEMS_BSP_SPECS)
42endif # RTEMS_USE_GCC
43
44CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) $(DEFINES)
45CFLAGS   = @RTEMS_CFLAGS@
46## FIXME: This should be correct, but is not supported, yet
47# CXXFLAGS = @RTEMS_CXXFLAGS@
48## Fall back to using RTEMS_CFLAGS for C++
49CXXFLAGS = @RTEMS_CFLAGS@
50ASFLAGS  = $(CPU_ASFLAGS) $(CPU_CFLAGS)
51
52depend:
53
54if RTEMS_USE_GCC
55## gcc >= 2.8
56RTEMS_RELLDFLAGS = -qnolinkcmds -nostdlib -Wl,-r
57endif
58
59## -------------------------------------------------------------------------
60## These are supposed to be set in make/custom/<bsp>.cfg
61CPU_CFLAGS = @CPU_CFLAGS@
62CFLAGS_OPTIMIZE_V = @CFLAGS_OPTIMIZE_V@
63
64## ------------------------------------------------------------------------
65## Setup hard-coded flags
66if RTEMS_USE_GCC
67## gcc >= gcc-2.8
68RTEMS_CFLAGS_OPTIMIZE_V =
69RTEMS_CFLAGS_DEBUG_V = -qrtems_debug -Wno-unused
70endif
71RTEMS_CFLAGS__V = $(RTEMS_CFLAGS_OPTIMIZE_V)
72
73## -------------------------------------------------------------------------
74
75CC = @CC@ $(GCCSPECS)
76CXX = @CXX@ $(GCCSPECS)
77CPP = @CPP@ $(GCCSPECS)
78
79##
80AM_CPPFLAGS = $(RTEMS_CPPFLAGS)
81AM_CFLAGS =
82AM_CXXFLAGS =
83AM_CCASFLAGS = $(RTEMS_CPPFLAGS) $(RTEMS_CCASFLAGS)
Note: See TracBrowser for help on using the repository browser.