Formerly ../Rules.~35~
authorroland <roland>
Fri, 21 Jan 1994 22:22:05 +0000 (22:22 +0000)
committerroland <roland>
Fri, 21 Jan 1994 22:22:05 +0000 (22:22 +0000)
Rules

diff --git a/Rules b/Rules
index b548d6a..ba81e9a 100644 (file)
--- a/Rules
+++ b/Rules
@@ -56,6 +56,17 @@ include ../Makerules
 
 .PHONY: subdir_lib
 subdir_lib: lib-noranlib
+
+# Some subdirs need to install a dummy library.
+# They can use "$(objpfx)libfnord.a: $(dep-dummy-lib); $(make-dummy-lib)".
+dep-dummy-lib = $(objpfx)dummy.o
+define make-dummy-lib
+ar cr$(verbose) $@ $<
+endef
+$(objpfx)dummy.o:
+       @rm -f $(@:.o=.c)
+       cp /dev/null $(@:.o=.c)
+       $(CC) -c $(@:.o=.c) -o $@
 \f
 # This makes all the auxilliary and test programs.