summaryrefslogtreecommitdiffstats
path: root/cpukit/automake/compile.am
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2002-12-06 11:21:50 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2002-12-06 11:21:50 +0000
commit8e4cd5a6f736933dd62185e6d2dc23dcba79a40e (patch)
tree08844129f67d9c8d1168fc1493fd7632b6616755 /cpukit/automake/compile.am
parent2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-8e4cd5a6f736933dd62185e6d2dc23dcba79a40e.tar.bz2
2002-12-06 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/multilib.am: Don't include @RTEMS_BSP@.cfg. * automake/compile.am: Remove hard-coded CFLAGS_PROFILE_V. Add autoconf-supplied CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V. Hard-code RTEMS_CFLAGS_PROFILE = -pg * aclocal/prog-cc.m4: Sync with toplevel/aclocal/prog-cc.m4. Remove GCCSED. * aclocal/env-rtemsbsp.m4: Add AC_ARG_VAR for CPU_CFLAGS, CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V, CFLAGS_PROFILE_V.
Diffstat (limited to 'cpukit/automake/compile.am')
-rw-r--r--cpukit/automake/compile.am12
1 files changed, 5 insertions, 7 deletions
diff --git a/cpukit/automake/compile.am b/cpukit/automake/compile.am
index d51956f958..f51621b113 100644
--- a/cpukit/automake/compile.am
+++ b/cpukit/automake/compile.am
@@ -57,9 +57,6 @@ CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) \
CFLAGS = @CFLAGS@ $(CPU_CFLAGS) $(XCFLAGS)
ASFLAGS = $(CPU_ASFLAGS) $(CPU_CFLAGS) $(XASFLAGS)
-# profile flag; use gprof(1)
-CFLAGS_PROFILE_V=-pg
-
#
# How to compile stuff into ${ARCH} subdirectory
#
@@ -144,9 +141,10 @@ LIB_VARIANT = $(LIBSUFFIX_$(VARIANT_V)_V)
LIBSUFFIX_VA = $(LIB_VARIANT).a
## These are supposed to be set in make/custom/<bsp>.cfg
-## CFLAGS_OPTIMIZE_V =
-## CFLAGS_DEBUG_V =
-## CFLAGS_PROFILE_V =
+CPU_CFLAGS = @CPU_CFLAGS@
+CFLAGS_OPTIMIZE_V = @CFLAGS_OPTIMIZE_V@
+CFLAGS_DEBUG_V = @CFLAGS_DEBUG_V@
+CFLAGS_PROFILE_V = @CFLAGS_PROFILE_V@
CFLAGS__V = $(CFLAGS_OPTIMIZE_V)
## ------------------------------------------------------------------------
@@ -155,7 +153,7 @@ if RTEMS_USE_GCC
## gcc >= gcc-2.8
RTEMS_CFLAGS_OPTIMIZE_V =
RTEMS_CFLAGS_DEBUG_V = -Wno-unused
-RTEMS_CFLAGS_PROFILE_V =
+RTEMS_CFLAGS_PROFILE_V = -pg
## non-gcc
## We can't guess what flags might be required here.