summaryrefslogtreecommitdiff
path: root/source4/build/make/rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/make/rules.mk')
-rw-r--r--source4/build/make/rules.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/build/make/rules.mk b/source4/build/make/rules.mk
index 794eed0f66..44277fe3e2 100644
--- a/source4/build/make/rules.mk
+++ b/source4/build/make/rules.mk
@@ -81,6 +81,13 @@ check:: test
unused_macros:
$(srcdir)/script/find_unused_macros.pl `find . -name "*.[ch]"` | sort
+# Create a static library
+%.a:
+ @echo Linking $@
+ @rm -f $@
+ @mkdir -p $(@D)
+ @$(STLD) $(STLD_FLAGS) $@ $^
+
###############################################################################
# Templates
###############################################################################