r8826: Make configure generate config.mk files (with the external libraries
[jra/samba/.git] / source4 / build / smb_build / main.pl
1 ###########################################################
2 ### SMB Build System                                    ###
3 ### - the main program                                  ###
4 ###                                                     ###
5 ###  Copyright (C) Stefan (metze) Metzmacher 2004       ###
6 ###  Copyright (C) Jelmer Vernooij 2005
7 ###  Released under the GNU GPL                         ###
8 ###########################################################
9
10 use smb_build::makefile;
11 use smb_build::smb_build_h;
12 use smb_build::input;
13 use smb_build::config_mk;
14 use smb_build::output;
15 use smb_build::dot;
16 use config;
17 use strict;
18
19 my $INPUT = {};
20
21 config_mk::import_files($INPUT, "config.list");
22 my $DEPEND = smb_build::input::check($INPUT, \%config::enabled);
23 my $OUTPUT = output::create_output($DEPEND);
24 makefile::create_makefile_in($OUTPUT, "Makefile.in");
25 smb_build_h::create_smb_build_h($OUTPUT, "include/smb_build.h");
26
27 open DOTTY, ">samba4-deps.dot";
28 print DOTTY dot::generate($DEPEND);
29 close DOTTY;
30
31 1;