summaryrefslogtreecommitdiffstats
path: root/cpukit/automake/compile.am
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-01-11 05:25:27 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-01-11 05:25:27 +0000
commita42f159af5540d9ad5fd88f6b63291d40b2c21bb (patch)
tree2638b6e2ca234e65ff4887e158f1671ebd81ab1f /cpukit/automake/compile.am
parent2004-01-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-a42f159af5540d9ad5fd88f6b63291d40b2c21bb.tar.bz2
2004-01-11 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* Makefile.am: Remove AUTOMAKE_FILES. * automake/compile.am: Replace contents with contents of automake/amcompile.am. * automake/amcompile.am, automake/lib.am: Remove.
Diffstat (limited to 'cpukit/automake/compile.am')
-rw-r--r--cpukit/automake/compile.am80
1 files changed, 4 insertions, 76 deletions
diff --git a/cpukit/automake/compile.am b/cpukit/automake/compile.am
index cb5cb62331..3a0dc79534 100644
--- a/cpukit/automake/compile.am
+++ b/cpukit/automake/compile.am
@@ -24,78 +24,17 @@
## Automake conditionals in use:
## RTEMS_USE_GCC .. if we are using GCC
-## NOTES:
-## * The gcc-2.8 building scheme is the nominal building scheme and
-## is actively supported.
-## * The non-gcc building scheme requires manually setting up environment
-## variables and is hardly tested at all
-
## CFLAGS_OPTIMIZE_V, CFLAGS_DEBUG_V are the values we
## would want the corresponding macros to be set to.
##
## CFLAGS_OPTIMIZE, CFLAGS_DEBUG are set by the
## 'VARIANT=<OPTIMIZE|DEBUG>' targets to their _V values.
-## XCPPFLAGS, XCFLAGS, XASFLAGS
-## are used to add flags from the shell
-## cf. make.info ("Implicit rules/variables" for details)
-
-DEFS = @DEFS@
-
-CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) $(DEFINES) $(XCPPFLAGS)
-CFLAGS = @RTEMS_CFLAGS@ $(XCFLAGS)
-ASFLAGS = $(CPU_ASFLAGS) $(CPU_CFLAGS) $(XASFLAGS)
-
-#
-# How to compile stuff into ${ARCH} subdirectory
-#
-
-COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
- $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
-CCLD = $(CC)
-
-CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
-
-${ARCH}/%.$(OBJEXT): %.c $(ARCH)/$(dirstamp)
- ${COMPILE} -o $@ -c $<
-
-${ARCH}/%.$(OBJEXT): %.S $(ARCH)/$(dirstamp)
- ${CCASCOMPILE} -o $@ -c $<
-
-# Make foo.rel from foo.$(OBJEXT)
-${ARCH}/%.rel: ${ARCH}/%.$(OBJEXT)
- ${make-rel}
+CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) $(DEFINES)
+CFLAGS = @RTEMS_CFLAGS@
+ASFLAGS = $(CPU_ASFLAGS) $(CPU_CFLAGS)
-# Dependency files for use by gmake
-# NOTE: we don't put them into $(ARCH)
-# so that 'make clean' doesn't blow it away
-
-DEPEND=Depends-${ARCH}
-
-# We deliberately don't have anything depend on the
-# $(DEPEND) file; otherwise it will get rebuilt even
-# on 'make clean'
-#
-
-if RTEMS_USE_GCC
-## HACK: Specific to gcc
-## FIXME: The approach below is known to be conceptionally broken.
-depend-gcc: $(C_FILES) $(CC_FILES) $(S_FILES)
-## Use gcc -M to generate dependencies
-## Replace foo.$(OBJEXT) with $(ARCH)/foo.$(OBJEXT)
-## Replace $(ARCH) value with string $(ARCH)
-## so that it will for debug cases
- $(COMPILE) -M $^ | \
- sed -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
- -e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp
- mv $(DEPEND).tmp $(DEPEND)
-
-# pull in dependencies if they exist
-ifeq (${DEPEND},$(wildcard ${DEPEND}))
-include ${DEPEND}
-@ENDIF@
-endif
-depend: depend-gcc
+depend:
## -------------------------------------------------------------------------
@@ -109,17 +48,6 @@ VARIANT_debug_V = DEBUG
VARIANT_V = $(VARIANT_$(VARIANT)_V)
-## Setup the variant build subdirectory
-ARCH_OPTIMIZE_V = o-optimize
-ARCH_DEBUG_V = o-debug
-
-ARCH__V = $(ARCH_OPTIMIZE_V)
-ARCH = $(ARCH_$(VARIANT_V)_V)
-
-${ARCH}/$(dirstamp):
- @$(mkdir_p) $(ARCH)
- @: > $(ARCH)/$(dirstamp)
-
## Setup the library suffix
LIBSUFFIX_OPTIMIZE_V =
LIBSUFFIX_DEBUG_V = _g