summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/makefile.pm
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-02-16 18:38:02 +0100
committerJelmer Vernooij <jelmer@samba.org>2008-02-16 18:38:02 +0100
commitb66ee2ed22754dd44b20c06e573072e328d9a3dd (patch)
treecbcf812eb42ea279740d91887de37254a448545e /source4/build/smb_build/makefile.pm
parent36e490a57dbf5adfd0246a4029344fb95a98131f (diff)
downloadsamba-b66ee2ed22754dd44b20c06e573072e328d9a3dd.tar.gz
samba-b66ee2ed22754dd44b20c06e573072e328d9a3dd.tar.bz2
samba-b66ee2ed22754dd44b20c06e573072e328d9a3dd.zip
Move responsibilities of build.h to makefile.
(This used to be commit a43f6d37bce85748e9cf2675e5beced5db26f1c3)
Diffstat (limited to 'source4/build/smb_build/makefile.pm')
-rw-r--r--source4/build/smb_build/makefile.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/source4/build/smb_build/makefile.pm b/source4/build/smb_build/makefile.pm
index 15e428a2b9..fdfdc79b10 100644
--- a/source4/build/smb_build/makefile.pm
+++ b/source4/build/smb_build/makefile.pm
@@ -116,6 +116,7 @@ sub Integrated($$)
$self->_prepare_list($ctx, "OBJ_LIST");
$self->output("$ctx->{SUBSYSTEM}_OBJ_LIST += \$($ctx->{NAME}_OBJ_LIST)\n");
+ $self->output("$ctx->{SUBSYSTEM}_INIT_FUNCTIONS += \"$ctx->{INIT_FUNCTION},\"\n") if defined($ctx->{INIT_FUNCTION});
}
sub SharedModulePrimitives($$)
@@ -244,6 +245,12 @@ sub StaticLibraryPrimitives($$)
$self->_prepare_list($ctx, "OBJ_LIST");
}
+sub InitFunctions($$)
+{
+ my ($self, $ctx) = @_;
+ $self->output("\$($ctx->{NAME}_OBJ_LIST): CFLAGS+=-DSTATIC_$ctx->{NAME}_MODULES=\"\$($ctx->{NAME}_INIT_FUNCTIONS)$ctx->{INIT_FUNCTION_SENTINEL}\"\n");
+}
+
sub StaticLibrary($$)
{
my ($self,$ctx) = @_;