summaryrefslogtreecommitdiffstats
path: root/c/src/automake/compile.am
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2003-12-02 04:36:06 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2003-12-02 04:36:06 +0000
commit306a66e689889d84afb562a2f09964ff3c929675 (patch)
tree04b9d32a7b798feee0295a05ca090dd2e59db927 /c/src/automake/compile.am
parent2003-12-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de> (diff)
downloadrtems-306a66e689889d84afb562a2f09964ff3c929675.tar.bz2
2003-12-01 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
* automake/compile.am: Add $(ARCH)/$(dirstamp) rules.
Diffstat (limited to 'c/src/automake/compile.am')
-rw-r--r--c/src/automake/compile.am10
1 files changed, 7 insertions, 3 deletions
diff --git a/c/src/automake/compile.am b/c/src/automake/compile.am
index 98b8d96fbe..97171efbc1 100644
--- a/c/src/automake/compile.am
+++ b/c/src/automake/compile.am
@@ -90,15 +90,19 @@ CCASCOMPILE = $(CCAS) $(AM_CCASFLAGS) $(CCASFLAGS)
AS = $(CC)
ASCOMPILE = $(AS) $(AM_ASFLAGS) $(ASFLAGS)
-${ARCH}/%.o: %.c
+${ARCH}/%.o: %.c $(ARCH)/$(dirstamp)
${COMPILE} -o $@ -c $<
-${ARCH}/%.o: %.cc
+${ARCH}/%.o: %.cc $(ARCH)/$(dirstamp)
${CXXCOMPILE} -o $@ -c $<
-${ARCH}/%.o: %.S
+${ARCH}/%.o: %.S $(ARCH)/$(dirstamp)
${CCASCOMPILE} -DASM -o $@ -c $<
+${ARCH}/$(dirstamp):
+ @$(mkinstalldirs) $(ARCH)
+ @: > $(ARCH)/$(dirstamp)
+
# Dependency files for use by gmake
# NOTE: we don't put them into $(ARCH)
# so that 'make clean' doesn't blow it away