1 ###########################################################
2 ### SMB Build System ###
3 ### - create output for Makefile ###
5 ### Copyright (C) Stefan (metze) Metzmacher 2004 ###
6 ### Released under the GNU GPL ###
7 ###########################################################
12 sub _prepare_command_interpreters($)
23 sub _prepare_path_vars($)
28 $output = << '__EOD__';
30 exec_prefix=@exec_prefix@
39 CONFIGDIR = @configdir@
40 VARDIR = @localstatedir@
43 # The permissions to give the executables
46 # set these to where to find various files
47 # These can be overridden by command line switches (see smbd(8))
48 # or in smb.conf (see smb.conf(5))
49 LOGFILEBASE = @logfilebase@
50 CONFIGFILE = $(CONFIGDIR)/smb.conf
51 LMHOSTSFILE = $(CONFIGDIR)/lmhosts
52 NCALRPCDIR = @localstatedir@/ncalrpc
54 # This is where smbpasswd et al go
55 PRIVATEDIR = @privatedir@
56 SMB_PASSWD_FILE = $(PRIVATEDIR)/smbpasswd
58 # the directory where lock files go
61 # the directory where pid files go
66 PATH_FLAGS = -DCONFIGFILE=\"$(CONFIGFILE)\" -DSBINDIR=\"$(SBINDIR)\" \
67 -DBINDIR=\"$(BINDIR)\" -DLMHOSTSFILE=\"$(LMHOSTSFILE)\" \
68 -DLOCKDIR=\"$(LOCKDIR)\" -DPIDDIR=\"$(PIDDIR)\" -DLIBDIR=\"$(LIBDIR)\" \
69 -DLOGFILEBASE=\"$(LOGFILEBASE)\" -DSHLIBEXT=\"@SHLIBEXT@\" \
70 -DCONFIGDIR=\"$(CONFIGDIR)\" -DNCALRPCDIR=\"$(NCALRPCDIR)\" \
71 -DSWATDIR=\"$(SWATDIR)\" -DSMB_PASSWD_FILE=\"$(SMB_PASSWD_FILE)\" \
72 -DPRIVATE_DIR=\"$(PRIVATEDIR)\"
78 sub _prepare_compiler_linker($)
84 CFLAGS=-Iinclude -I. -I$(srcdir)/include -I$(srcdir) -D_SAMBA_BUILD_ -DHAVE_CONFIG_H -Ilib @CFLAGS@ @CPPFLAGS@
87 LD_FLAGS=@LDFLAGS@ @CFLAGS@ -Lbin
93 SHLD_FLAGS=@LDSHFLAGS@ @LDFLAGS@ -Lbin
100 sub _prepare_default_rule($)
105 $output = << '__EOD__';
113 sub _prepare_SUFFIXES($)
118 $output = << '__EOD__';
120 .SUFFIXES: .c .o .h .h.gch .a .so .1 .1.xml .3 .3.xml .5 .5.xml .7 .7.xml
132 idl_full: build/pidl/idl.pm
133 CPP="@CPP@" PERL="$(PERL)" script/build_idl.sh FULL @PIDL_ARGS@
135 idl: build/pidl/idl.pm
136 @CPP="@CPP@" PERL="$(PERL)" script/build_idl.sh PARTIAL @PIDL_ARGS@
138 build/pidl/idl.pm: build/pidl/idl.yp
139 -yapp -s build/pidl/idl.yp
141 pch: proto include/includes.h.gch
144 -rm -f include/includes.h.gch
146 basics: idl proto_exists
148 test: @DEFAULT_TEST_TARGET@
151 ./script/tests/selftest.sh `pwd`/prefix-test SOCKET_WRAPPER
154 ./script/tests/selftest.sh `pwd`/prefix-test
159 sub _prepare_man_rule($)
164 .$suffix.xml.$suffix:
165 \$(XSLTPROC) -o \$@ http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \$<
170 sub _prepare_manpages($)
176 foreach (values %$ctx) {
177 if (defined($_->{MANPAGE}) and $_->{MANPAGE} ne "") {
178 push (@mp_list, $_->{MANPAGE});
182 my $mp = join(' ', @mp_list);
186 manpages: \$(MANPAGES)
191 sub _prepare_dummy_MAKEDIR()
199 dynconfig.o: dynconfig.c Makefile
201 @$(CC) $(CFLAGS) @PICFLAG@ $(PATH_FLAGS) -c $< -o $@
202 @BROKEN_CC@ -mv `echo $@ | sed 's%^.*/%%g'` $@
207 ###########################################################
208 # This function creates a standard make rule which is using $(CC)
210 # $output = _prepare_std_CC_rule($srcext,$destext,$flags,$message,$comment)
212 # $srcext - sourcefile extension
214 # $destext - destinationfile extension
216 # $flags - additional compiler flags
218 # $message - logmessage which is echoed while running this rule
220 # $comment - just a comment what this rule should do
222 # $output - the resulting output buffer
223 sub _prepare_std_CC_rule($$$$$)
233 $output = << "__EOD__";
236 \@echo $message \$\*.$src
237 \@\$(CC) \$(TARGET_CFLAGS) \$(CFLAGS) $flags -c \$< -o \$\@
238 \@BROKEN_CC\@ -mv `echo \$\@ | sed 's%^.*/%%g'` \$\@
245 sub array2oneperline($)
251 foreach my $str (@{$array}) {
252 if (!defined($str)) {
256 $output .= " \\\n\t\t";
269 foreach my $str (@{$array}) {
270 if (!defined($str)) {
281 ###########################################################
282 # This function creates a object file list
284 # $output = _prepare_var_obj_list($var, $var_ctx)
286 # $var_ctx - the subsystem context
288 # $var_ctx->{NAME} - the <var> name
289 # $var_ctx->{OBJ_LIST} - the list of objectfiles which sould be linked to this <var>
291 # $output - the resulting output buffer
292 sub _prepare_obj_list($$)
297 my $tmplist = array2oneperline($ctx->{OBJ_LIST});
300 # $var $ctx->{NAME} OBJ LIST
301 $var\_$ctx->{NAME}_OBJS =$tmplist
306 sub _prepare_cflags($$)
311 my $tmplist = array2oneperline($ctx->{CFLAGS});
314 $var\_$ctx->{NAME}_CFLAGS =$tmplist
319 ###########################################################
320 # This function creates a make rule for linking a library
322 # $output = _prepare_shared_library_rule($library_ctx)
324 # $library_ctx - the library context
326 # $library_ctx->{NAME} - the library name
328 # $library_ctx->{DEPEND_LIST} - the list of rules on which this library depends
330 # $library_ctx->{LIBRARY_NAME} - the shared library name
331 # $library_ctx->{LIBRARY_REALNAME} - the shared library real name
332 # $library_ctx->{LIBRARY_SONAME} - the shared library soname
333 # $library_ctx->{LINK_LIST} - the list of objectfiles and external libraries
334 # which sould be linked to this shared library
335 # $library_ctx->{LINK_FLAGS} - linker flags used by this shared library
337 # $output - the resulting output buffer
338 sub _prepare_shared_library_rule($)
349 $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
351 $tmpshlink = array2oneperline($ctx->{LINK_LIST});
352 $tmpshflag = array2oneperline($ctx->{LINK_FLAGS});
354 $output = << "__EOD__";
355 LIBRARY_$ctx->{NAME}_DEPEND_LIST =$tmpdepend
357 LIBRARY_$ctx->{NAME}_SHARED_LINK_LIST =$tmpshlink
358 LIBRARY_$ctx->{NAME}_SHARED_LINK_FLAGS =$tmpshflag
361 $ctx->{TARGET}: \$(LIBRARY_$ctx->{NAME}_DEPEND_LIST) \$(LIBRARY_$ctx->{NAME}_OBJS) bin/.dummy
363 \@\$(SHLD) \$(SHLD_FLAGS) -o \$\@ \\
364 \$(LIBRARY_$ctx->{NAME}_SHARED_LINK_FLAGS) \\
365 \$(LIBRARY_$ctx->{NAME}_SHARED_LINK_LIST)
369 if (defined($ctx->{LIBRARY_SONAME})) {
370 $output .= << "__EOD__";
371 # Symlink $ctx->{LIBRARY_SONAME}
372 bin/$ctx->{LIBRARY_SONAME}: bin/$ctx->{LIBRARY_REALNAME} bin/.dummy
374 \@ln -sf $ctx->{LIBRARY_REALNAME} \$\@
375 # Symlink $ctx->{LIBRARY_NAME}
376 bin/$ctx->{LIBRARY_NAME}: bin/$ctx->{LIBRARY_SONAME} bin/.dummy
378 \@ln -sf $ctx->{LIBRARY_SONAME} \$\@
383 $output .= << "__EOD__";
384 library_$ctx->{NAME}: basics bin/lib$ctx->{LIBRARY_NAME}
391 sub _prepare_objlist_rule($)
394 my $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
397 if (! $ctx->{TARGET}) {
401 $output = "$ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST = $tmpdepend\n";
403 $output .= "$ctx->{TARGET}: ";
405 if (defined ($ctx->{TARGET_CFLAGS})) {
406 $output .= "\n\t@\$(MAKE) TARGET_CFLAGS=\"" . join(' ', @{$ctx->{TARGET_CFLAGS}}) . "\" ";
409 $output .= "\$($ctx->{TYPE}_$ctx->{NAME}_DEPEND_LIST) \$($ctx->{TYPE}_$ctx->{NAME}_OBJS)\n";
410 $output .= "\t\@touch $ctx->{TARGET}\n";
415 ###########################################################
416 # This function creates a make rule for linking a library
418 # $output = _prepare_static_library_rule($library_ctx)
420 # $library_ctx - the library context
422 # $library_ctx->{NAME} - the library name
424 # $library_ctx->{DEPEND_LIST} - the list of rules on which this library depends
426 # $library_ctx->{LIBRARY_NAME} - the static library name
427 # $library_ctx->{LINK_LIST} - the list of objectfiles which sould be linked
428 # to this static library
429 # $library_ctx->{LINK_FLAGS} - linker flags used by this static library
431 # $output - the resulting output buffer
432 sub _prepare_static_library_rule($)
443 $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
445 $tmpstlink = array2oneperline($ctx->{LINK_LIST});
446 $tmpstflag = array2oneperline($ctx->{LINK_FLAGS});
448 $output = << "__EOD__";
449 LIBRARY_$ctx->{NAME}_DEPEND_LIST =$tmpdepend
451 LIBRARY_$ctx->{NAME}_STATIC_LINK_LIST =$tmpstlink
453 $ctx->{TARGET}: \$(LIBRARY_$ctx->{NAME}_DEPEND_LIST) \$(LIBRARY_$ctx->{NAME}_OBJS) bin/.dummy
455 \@\$(STLD) \$(STLD_FLAGS) \$@ \\
456 \$(LIBRARY_$ctx->{NAME}_STATIC_LINK_LIST)
458 library_$ctx->{NAME}: basics $ctx->{TARGET}
465 ###########################################################
466 # This function creates a make rule for linking a binary
468 # $output = _prepare_binary_rule($binary_ctx)
470 # $binary_ctx - the binary context
472 # $binary_ctx->{NAME} - the binary name
473 # $binary_ctx->{BINARY} - the binary binary name
475 # $binary_ctx->{DEPEND_LIST} - the list of rules on which this binary depends
476 # $binary_ctx->{LINK_LIST} - the list of objectfiles and external libraries
477 # which sould be linked to this binary
478 # $binary_ctx->{LINK_FLAGS} - linker flags used by this binary
480 # $output - the resulting output buffer
481 sub _prepare_binary_rule($)
489 $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
490 $tmplink = array2oneperline($ctx->{LINK_LIST});
491 $tmpflag = array2oneperline($ctx->{LINK_FLAGS});
493 $output = << "__EOD__";
495 BINARY_$ctx->{NAME}_DEPEND_LIST =$tmpdepend
496 BINARY_$ctx->{NAME}_LINK_LIST =$tmplink
497 BINARY_$ctx->{NAME}_LINK_FLAGS =$tmpflag
499 bin/$ctx->{BINARY}: bin/.dummy \$(BINARY_$ctx->{NAME}_DEPEND_LIST) \$(BINARY_$ctx->{NAME}_OBJS)
501 \@\$(LD) \$(LD_FLAGS) -o \$\@ \\
502 \$\(BINARY_$ctx->{NAME}_LINK_FLAGS) \\
503 \$\(BINARY_$ctx->{NAME}_LINK_LIST) \\
504 \$\(BINARY_$ctx->{NAME}_LINK_FLAGS)
505 binary_$ctx->{BINARY}: basics bin/$ctx->{BINARY}
512 sub _prepare_custom_rule($)
515 return "$ctx->{NAME}:\n\t$ctx->{CMD}\n";
518 sub _prepare_proto_rules()
522 $output .= << '__EOD__';
523 # Making this target will just make sure that the prototype files
524 # exist, not necessarily that they are up to date. Since they're
525 # removed by 'make clean' this will always be run when you do anything
527 proto_exists: include/proto.h
529 delheaders: pch_clean
530 -rm -f $(builddir)/include/proto.h
533 @cd $(srcdir) && $(SHELL) script/mkproto.sh "$(PERL)" \
534 -h _PROTO_H_ $(builddir)/include/proto.h \
537 # 'make headers' or 'make proto' calls a subshell because we need to
538 # make sure these commands are executed in sequence even for a
540 headers: delheaders proto_exists
545 @[ -f $(builddir)/include/proto.h ] || $(MAKE) proto
548 @echo Removing objects and binaries
549 @-rm -f $(_ALL_OBJS_OBJS) bin/* bin/.*_*
550 @echo Removing generated files
551 @-rm -rf librpc/gen_*
555 -rm -f include/config.h include/smb_build.h
558 -rm -f config.log config.cache
559 -rm -f samba4-deps.dot
560 -rm -f lib/registry/winregistry.pc
563 -rm -f *.bak *~ */*.bak */*~ */*/*.bak */*/*~ */*/*/*.bak */*/*/*~
565 realdistclean: distclean removebackup
566 -rm -f include/config.h.in
567 -rm -f include/version.h
575 sub _prepare_make_target($)
581 $tmpdepend = array2oneperline($ctx->{DEPEND_LIST});
584 $ctx->{TARGET}: basics $tmpdepend
589 sub _prepare_target_settings($)
594 foreach my $key (values %$CTX) {
595 if (defined($key->{OBJ_LIST})) {
596 $output .= _prepare_obj_list($key->{TYPE}, $key);
599 if (defined($key->{OBJ_LIST})) {
600 $output .= _prepare_cflags($key->{TYPE}, $key);
607 sub _prepare_install_rules($)
612 $output .= << '__EOD__';
615 @echo "Samba will be installed into:"
616 @echo " basedir: $(BASEDIR)"
617 @echo " bindir: $(BINDIR)"
618 @echo " sbindir: $(SBINDIR)"
619 @echo " libdir: $(LIBDIR)"
620 @echo " vardir: $(VARDIR)"
621 @echo " privatedir: $(PRIVATEDIR)"
622 @echo " piddir: $(PIDDIR)"
623 @echo " lockdir: $(LOCKDIR)"
624 @echo " swatdir: $(SWATDIR)"
625 @echo " mandir: $(MANDIR)"
628 @echo "Samba will be compiled with flags:"
629 @echo " CFLAGS = $(CFLAGS)"
630 @echo " LD_FLAGS = $(LD_FLAGS)"
631 @echo " STLD_FLAGS = $(STLD_FLAGS)"
632 @echo " SHLD_FLAGS = $(SHLD_FLAGS)"
634 SBIN_PROGS = bin/smbd
636 BIN_PROGS = bin/smbclient \
641 TORTURE_PROGS = bin/smbtorture \
647 LDB_PROGS = bin/ldbadd \
653 REG_PROGS = bin/regpatch \
659 install: showlayout installbin installtorture installldb installreg installdat installswat
661 # DESTDIR is used here to prevent packagers wasting their time
662 # duplicating the Makefile. Remove it and you will have the privelege
663 # of package each samba release for muliple versions of multiple
664 # distributions and operating systems, or at least supplying patches
665 # to all the packaging files required for this, prior to committing
666 # the removal of DESTDIR. Do not remove it even though you think it
670 @$(SHELL) $(srcdir)/script/installdirs.sh $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(PRIVATEDIR) $(DESTDIR)$(PIDDIR) $(DESTDIR)$(LOCKDIR) $(DESTDIR)$(PRIVATEDIR)/tls
672 installbin: all installdirs
673 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(SBIN_PROGS)
674 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(BIN_PROGS)
676 installtorture: all installdirs
677 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(TORTURE_PROGS)
679 installldb: all installdirs
680 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(LDB_PROGS)
682 installreg: all installdirs
683 @$(SHELL) $(srcdir)/script/installbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(REG_PROGS)
685 installdat: installdirs
686 @$(SHELL) $(srcdir)/script/installdat.sh $(DESTDIR)$(LIBDIR) $(srcdir)
688 installswat: installdirs
689 @$(SHELL) $(srcdir)/script/installswat.sh $(DESTDIR)$(SWATDIR) $(srcdir)
691 installman: installdirs
692 @$(SHELL) $(srcdir)/script/installman.sh $(DESTDIR)$(MANDIR) $(MANPAGES)
694 uninstall: uninstallbin uninstalltorture uninstallldb uninstallreg
697 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(SBINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(SBIN_PROGS)
700 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(TORTURE_PROGS)
703 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(LDB_PROGS)
706 @$(SHELL) $(srcdir)/script/uninstallbin.sh $(INSTALLPERMS) $(DESTDIR)$(BASEDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(LIBDIR) $(DESTDIR)$(VARDIR) $(DESTDIR)$(REG_PROGS)
709 @$(SHELL) $(srcdir)/script/uninstallman.sh $(DESTDIR)$(MANDIR) $(MANPAGES)
713 swig: scripting/swig/_tdb.so scripting/swig/_dcerpc.so
715 scripting/swig/tdb_wrap.c: scripting/swig/tdb.i
716 swig -python scripting/swig/tdb.i
718 scripting/swig/_tdb.so: scripting/swig/tdb_wrap.o $(LIBRARY_swig_tdb_DEPEND_LIST)
719 $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_tdb.so scripting/swig/tdb_wrap.o \
720 $(LIBRARY_swig_tdb_SHARED_LINK_LIST) $(LIBRARY_swig_tdb_SHARED_LINK_FLAGS)
722 SWIG_INCLUDES = librpc/gen_ndr/samr.i librpc/gen_ndr/lsa.i librpc/gen_ndr/spoolss.i
724 scripting/swig/dcerpc_wrap.c: scripting/swig/dcerpc.i scripting/swig/samba.i scripting/swig/status_codes.i $(SWIG_INCLUDES)
725 swig -python scripting/swig/dcerpc.i
727 scripting/swig/_dcerpc.so: scripting/swig/dcerpc_wrap.o $(LIBRARY_swig_dcerpc_DEPEND_LIST)
728 $(SHLD) $(SHLD_FLAGS) -o scripting/swig/_dcerpc.so scripting/swig/dcerpc_wrap.o $(LIBRARY_swig_dcerpc_SHARED_LINK_LIST) $(LIBRARY_swig_dcerpc_SHARED_LINK_FLAGS)
731 -rm -f scripting/swig/_tdb.so scripting/swig/tdb.pyc \
732 scripting/swig/tdb.py scripting/swig/tdb_wrap.c \
733 scripting/swig/tdb_wrap.o
738 etags `find $(srcdir) -name "*.[ch]"`
741 ctags `find $(srcdir) -name "*.[ch]"`
748 sub _prepare_rule_lists($)
753 foreach my $key (values %{$depend}) {
754 next if not defined $key->{OUTPUT_TYPE};
756 ($output .= _prepare_objlist_rule($key)) if $key->{OUTPUT_TYPE} eq "OBJLIST";
757 ($output .= _prepare_static_library_rule($key)) if $key->{OUTPUT_TYPE} eq "STATIC_LIBRARY";
758 ($output .= _prepare_shared_library_rule($key)) if $key->{OUTPUT_TYPE} eq "SHARED_LIBRARY";
759 ($output .= _prepare_binary_rule($key)) if $key->{OUTPUT_TYPE} eq "BINARY";
760 ($output .= _prepare_custom_rule($key) ) if $key->{TYPE} eq "TARGET";
764 $output .= _prepare_IDL($idl_ctx);
766 $output .= _prepare_proto_rules();
768 $output .= _prepare_install_rules($depend);
773 ###########################################################
774 # This function prepares the output for Makefile
776 # $output = _prepare_makefile_in($OUTPUT)
778 # $OUTPUT - the global OUTPUT context
780 # $output - the resulting output buffer
781 sub _prepare_makefile_in($$)
784 my $settings = shift;
787 $output = "########################################\n";
788 $output .= "# Autogenerated by config.smb_build.pl #\n";
789 $output .= "########################################\n";
793 $output .= _prepare_command_interpreters($cmd_ctx);
796 $output .= _prepare_path_vars($path_ctx);
799 $output .= _prepare_compiler_linker($compiler_ctx);
802 $output .= _prepare_default_rule($rules_ctx);
805 $output .= _prepare_SUFFIXES($suffix_ctx);
807 $output .= _prepare_dummy_MAKEDIR();
809 $output .= _prepare_std_CC_rule("c","o",'@PICFLAG@',"Compiling","Rule for std objectfiles");
810 $output .= _prepare_std_CC_rule("h","h.gch",'@PICFLAG@',"Precompiling","Rule for precompiled headerfiles");
812 $output .= _prepare_man_rule("1");
813 $output .= _prepare_man_rule("3");
814 $output .= _prepare_man_rule("5");
815 $output .= _prepare_man_rule("7");
817 $output .= _prepare_manpages($CTX);
819 $output .= _prepare_target_settings($CTX);
821 $output .= _prepare_rule_lists($CTX);
825 foreach my $part (values %{$CTX}) {
826 push (@all, $part->{TARGET}) if defined ($part->{OUTPUT_TYPE}) and $part->{OUTPUT_TYPE} eq "BINARY";
829 $output .= _prepare_make_target({ TARGET => "all", DEPEND_LIST => \@all });
834 ###########################################################
835 # This function creates Makefile.in from the OUTPUT
838 # create_makefile_in($OUTPUT)
840 # $OUTPUT - the global OUTPUT context
842 # $output - the resulting output buffer
843 sub create_makefile_in($$$)
846 my $settings = shift;
849 open(MAKEFILE_IN,">$file") || die ("Can't open $file\n");
850 print MAKEFILE_IN _prepare_makefile_in($CTX, $settings);
853 print "config.smb_build.pl: creating $file\n";