(build-extra-lib): New canned sequence.
authorroland <roland>
Mon, 13 Mar 1995 19:36:07 +0000 (19:36 +0000)
committerroland <roland>
Mon, 13 Mar 1995 19:36:07 +0000 (19:36 +0000)
Makerules

index 780ed43..c097c65 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -416,6 +416,14 @@ symdef.%: $(foreach o,$(object-suffixes),\
 .PHONY: objects objs
 objects objs: $(foreach o,$(object-suffixes),$(objects:.o=$o)) \
              $(addprefix $(objpfx),$(extra-objs))
+
+# Canned sequence for building an extra library archive.
+define build-extra-lib
+$(patsubst %,cd %;,$(objdir)) \
+$(AR) cru$(verbose) $(@:$(objpfx)%=%) \
+      $(patsubst $(objpfx)%,%,$^)
+$(RANLIB) $@
+endef
 \f
 # Installation.