source: rtems/cpukit/automake/compile.am @ b2b143f4

4.104.114.84.95
Last change on this file since b2b143f4 was a42f159a, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/11/04 at 05:25:27

2004-01-11 Ralf Corsepius <corsepiu@…>

  • Makefile.am: Remove AUTOMAKE_FILES.
  • automake/compile.am: Replace contents with contents of automake/amcompile.am.
  • automake/amcompile.am, automake/lib.am: Remove.
  • Property mode set to 100644
File size: 2.3 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## ------------------------------------------------------------------------
65## Setup hard-coded flags
66if RTEMS_USE_GCC
67## gcc >= gcc-2.8
68RTEMS_CFLAGS_OPTIMIZE_V =
69RTEMS_CFLAGS_DEBUG_V = -Wno-unused
70
71## non-gcc
72## We can't guess what flags might be required here.
73## Pass the values from the environment if you want to apply them.
74endif
75RTEMS_CFLAGS__V = $(RTEMS_CFLAGS_OPTIMIZE_V)
76
77## -------------------------------------------------------------------------
78AM_CPPFLAGS = $(RTEMS_CPPFLAGS)
79AM_CFLAGS =
80AM_CCASFLAGS = $(RTEMS_CPPFLAGS) $(RTEMS_ASFLAGS)
Note: See TracBrowser for help on using the repository browser.