summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 06:57:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 06:57:04 +0000
commitb9184faa30f8fbf175305111dc108b5074a2c849 (patch)
tree909efc7d96843a597bd8e6a8c11f436c7883ffb9
parentMerger from rtems-4-6-branch. (diff)
downloadrtems-b9184faa30f8fbf175305111dc108b5074a2c849.tar.bz2
Merger from rtems-4-6-branch.
-rw-r--r--cpukit/automake/compile.am24
-rw-r--r--cpukit/automake/local.am7
2 files changed, 9 insertions, 22 deletions
diff --git a/cpukit/automake/compile.am b/cpukit/automake/compile.am
index 73a99e36e6..bb064dc7b3 100644
--- a/cpukit/automake/compile.am
+++ b/cpukit/automake/compile.am
@@ -40,16 +40,6 @@
## are used to add flags from the shell
## cf. make.info ("Implicit rules/variables" for details)
-if RTEMS_USE_GCC
-## All the stuff below is specific to gcc
-## gcc >= 2.8.x
-GCCSPECS = $(GCC_SPECS)
-else
-## fall back to the old style compilers/*.cfg
-## CONFIG.CC is supposed to be provided by <BSP>.cfg
-include $(CONFIG.CC)
-endif # RTEMS_USE_GCC
-
DEFS = @DEFS@
CPPFLAGS = @CPPFLAGS@ $(CPU_DEFINES) $(DEFINES) $(XCPPFLAGS)
@@ -87,9 +77,10 @@ DEPEND=Depends-${ARCH}
# on 'make clean'
#
+if RTEMS_USE_GCC
## HACK: Specific to gcc
## FIXME: The approach below is known to be conceptionally broken.
-depend-am: $(C_FILES) $(CC_FILES) $(S_FILES)
+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)
@@ -98,12 +89,13 @@ depend-am: $(C_FILES) $(CC_FILES) $(S_FILES)
sed -e 's?^\(.*\)\.o[ ]*:?$$(ARCH)/\1.o:?' \
-e 's?$(ARCH)/?$$(ARCH)/?' >$(DEPEND).tmp
mv $(DEPEND).tmp $(DEPEND)
-depend: depend-am
# pull in dependencies if they exist
ifeq (${DEPEND},$(wildcard ${DEPEND}))
include ${DEPEND}
@ENDIF@
+endif
+depend: depend-gcc
## -------------------------------------------------------------------------
@@ -127,6 +119,9 @@ ARCH_PROFILE_V = o-profile
ARCH__V = $(ARCH_OPTIMIZE_V)
ARCH = $(ARCH_$(VARIANT_V)_V)
+${ARCH}:
+ mkdir ${ARCH}
+
## Setup the library suffix
LIBSUFFIX_OPTIMIZE_V =
LIBSUFFIX_DEBUG_V = _g
@@ -158,11 +153,6 @@ endif
RTEMS_CFLAGS__V = $(RTEMS_CFLAGS_OPTIMIZE_V)
## -------------------------------------------------------------------------
-
-CC = @CC@ $(GCCSPECS)
-CPP = @CPP@ $(GCCSPECS)
-
-##
AM_CPPFLAGS = $(RTEMS_CPPFLAGS)
AM_CFLAGS =
AM_CCASFLAGS = $(RTEMS_CPPFLAGS) $(RTEMS_ASFLAGS)
diff --git a/cpukit/automake/local.am b/cpukit/automake/local.am
index 165142bc01..90418b29b8 100644
--- a/cpukit/automake/local.am
+++ b/cpukit/automake/local.am
@@ -20,12 +20,9 @@ preinstall-am: $(PREINSTALL_FILES)
preinstall: preinstall-am
.PHONY: preinstall preinstall-am
-depend-am:
+depend-am: depend-gcc
depend: depend-am
-.PHONY: depend depend-am
-
-${ARCH}:
- mkdir ${ARCH}
+.PHONY: depend depend-am depend-gcc
clean-local:
$(RM) -r o-optimize o-debug o-profile $(CLEANDIRS)