aboutsummaryrefslogtreecommitdiff
path: root/Rules
diff options
context:
space:
mode:
Diffstat (limited to 'Rules')
-rw-r--r--Rules13
1 files changed, 5 insertions, 8 deletions
diff --git a/Rules b/Rules
index 1eae320..665ac0f 100644
--- a/Rules
+++ b/Rules
@@ -66,14 +66,11 @@ dep-dummy-lib = $(objpfx)dummy.o
define make-dummy-lib
$(AR) cr$(verbose) $@ $<
endef
-$(objpfx)dummy.o:
- @rm -f $(@:.o=.c)
- echo 'void __dummy__ () { }' > $(@:.o=.c)
- $(CC) -c $(@:.o=.c) -o $@
-$(objpfx)empty.o:
- @rm -f $(@:.o=.c)
- echo '' > $(@:.o=.c)
- $(CC) -c $(@:.o=.c) -o $@
+$(objpfx)dummy.c:
+ rm -f $@
+ echo 'void __dummy__ () { }' > $@
+$(objpfx)empty.c:
+ cp -f /dev/null $@
generated := $(generated) dummy.o dummy.c empty.c empty.o
# This makes all the auxilliary and test programs.