source: rtems/cpukit/automake/compile.am @ 6741c2e1

4.104.114.84.95
Last change on this file since 6741c2e1 was 6741c2e1, checked in by Ralf Corsepius <ralf.corsepius@…>, on Oct 21, 2004 at 9:01:00 AM

2004-10-20 Ralf Corsepius <ralf_corsepius@…>

  • automake/compile.am: Remove RTEMS_CFLAGS_*_V.
  • Property mode set to 100644
File size: 1.9 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## CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V are the values we
28## would want the corresponding macros to be set to.
29##
30## CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set by the
31## 'VARIANT=<OPTIMIZE|DEBUG>' targets to their _V values.
32
33CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) $(DEFINES)
34CFLAGS   = @RTEMS_CFLAGS@
35ASFLAGS  = $(CPU_ASFLAGS) $(CPU_CFLAGS)
36
37depend:
38
39## -------------------------------------------------------------------------
40
41## translate VARIANT into VARIANT_V
42VARIANT = OPTIMIZE
43
44VARIANT_OPTIMIZE_V = OPTIMIZE
45VARIANT_DEBUG_V = DEBUG
46VARIANT_optimize_V = OPTIMIZE
47VARIANT_debug_V = DEBUG
48
49VARIANT_V = $(VARIANT_$(VARIANT)_V)
50
51## Setup the library suffix
52LIBSUFFIX_OPTIMIZE_V =
53LIBSUFFIX_DEBUG_V = _g
54LIBSUFFIX__V = $(LIBSUFFIX_OPTIMIZE_V)
55
56LIB_VARIANT = $(LIBSUFFIX_$(VARIANT_V)_V)
57
58## These are supposed to be set in make/custom/<bsp>.cfg
59CPU_CFLAGS = @CPU_CFLAGS@
60CFLAGS_OPTIMIZE_V = @CFLAGS_OPTIMIZE_V@
61CFLAGS_DEBUG_V = @CFLAGS_DEBUG_V@
62CFLAGS__V = $(CFLAGS_OPTIMIZE_V)
63
64## -------------------------------------------------------------------------
65AM_CPPFLAGS = $(RTEMS_CPPFLAGS)
66AM_CFLAGS =
67AM_CCASFLAGS = $(RTEMS_CPPFLAGS) $(RTEMS_ASFLAGS)
Note: See TracBrowser for help on using the repository browser.