summaryrefslogtreecommitdiff
path: root/source4/build/make
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-26 17:56:07 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-26 17:56:07 +0100
commitb3d2a56df29b163d93c4d20efc22c523441a92e5 (patch)
tree2e17a66d416d11d872527a98c23509d8ec4b5313 /source4/build/make
parentc5d77a1c2414d930ccbedbe05e124df69242a144 (diff)
downloadsamba-b3d2a56df29b163d93c4d20efc22c523441a92e5.tar.gz
samba-b3d2a56df29b163d93c4d20efc22c523441a92e5.tar.bz2
samba-b3d2a56df29b163d93c4d20efc22c523441a92e5.zip
Fix module aliases.
(This used to be commit 584a69acc5ccc0e9be0cb2687578c62bfa1e797d)
Diffstat (limited to 'source4/build/make')
-rw-r--r--source4/build/make/rules.mk11
1 files changed, 11 insertions, 0 deletions
diff --git a/source4/build/make/rules.mk b/source4/build/make/rules.mk
index bd72946593..794eed0f66 100644
--- a/source4/build/make/rules.mk
+++ b/source4/build/make/rules.mk
@@ -118,6 +118,17 @@ $(1): $(2) ;
@$$(PERL) $$(srcdir)/script/mkproto.pl --srcdir=$$(srcdir) --builddir=$$(builddir) --all=$$@ $$^
endef
+# Shared module
+# Arguments: Target, dependencies, objects
+define shared_module_template
+
+$(1): $(2) ;
+ @echo Linking $$@
+ @mkdir -p $$(@D)
+ @$$(MDLD) $$(LDFLAGS) $$(MDLD_FLAGS) $$(INTERN_LDFLAGS) -o $$@ $$(INSTALL_LINK_FLAGS) $(3)
+
+endef
+
###############################################################################
# File types
###############################################################################