diff options
Diffstat (limited to 'source4/rules.mk')
-rw-r--r-- | source4/rules.mk | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/source4/rules.mk b/source4/rules.mk index 5f91f8132e..06f425df44 100644 --- a/source4/rules.mk +++ b/source4/rules.mk @@ -86,12 +86,18 @@ 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 +############################################################################### + +# Partially link +# Arguments: target object file, source object files +define partial_link_template +$(1): $(2) + @echo Partially linking $@ + @mkdir -p \$(@D) + $(PARTLINK) -o $@ $^ +endef ############################################################################### # File types @@ -145,6 +151,13 @@ include/includes.d: include/includes.h @echo "Building $< with $(LEX)" @-$(srcdir)/script/lex_compile.sh "$(LEX)" "$<" "$@" +%.a: + @echo Linking $@ + @rm -f $@ + @mkdir -p $(@D) + @$(STLD) $(STLD_FLAGS) $@ $^ + + DOCBOOK_MANPAGE_URL = http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl .1.xml.1: |