summaryrefslogtreecommitdiffstats
path: root/automake
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 05:13:20 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-02-28 05:13:20 +0000
commit15eb411e86ea28b79343858152a10107de0f71f8 (patch)
tree6aa2575b572b96ccd23d3f4978efee5bd63931cd /automake
parent2003-02-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-15eb411e86ea28b79343858152a10107de0f71f8.tar.bz2
2003-02-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/compile.am: Introduce depend-gcc. * automake/lib.am: Remove stray comment. * automake/local.am: Introduce depend-gcc.
Diffstat (limited to 'automake')
-rw-r--r--automake/compile.am7
-rw-r--r--automake/lib.am1
-rw-r--r--automake/local.am4
3 files changed, 6 insertions, 6 deletions
diff --git a/automake/compile.am b/automake/compile.am
index f7aa280ec3..81181cead7 100644
--- a/automake/compile.am
+++ b/automake/compile.am
@@ -110,9 +110,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.o with $(ARCH)/foo.o
## Replace $(ARCH) value with string $(ARCH)
@@ -121,13 +122,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-am
# spell out all the LINK_FILE's, rather than using -lbsp, so
# that $(LINK_FILES) can be a dependency
diff --git a/automake/lib.am b/automake/lib.am
index cebdc20377..79eca2089b 100644
--- a/automake/lib.am
+++ b/automake/lib.am
@@ -2,7 +2,6 @@
## $Id$
##
-## LD = @LD@
AR = @AR@
RANLIB = @RANLIB@
diff --git a/automake/local.am b/automake/local.am
index 013d48f70a..59698e508d 100644
--- a/automake/local.am
+++ b/automake/local.am
@@ -20,9 +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
+.PHONY: depend depend-am depend-gcc
PROJECT_TOOLS = $(PROJECT_RELEASE)/build-tools