r3726: More simplifications/fixes in the build system
[bbaumbach/samba-autobuild/.git] / source4 / build / smb_build / main.pm
1 ###########################################################
2 ### SMB Build System                                    ###
3 ### - the main program                                  ###
4 ###                                                     ###
5 ###  Copyright (C) Stefan (metze) Metzmacher 2004       ###
6 ###  Released under the GNU GPL                         ###
7 ###########################################################
8
9 use makefile;
10 use depend;
11 use smb_build_h;
12 use input;
13 use config_mk;
14 use output;
15 use direct;
16 use dump;
17 use strict;
18
19 sub smb_build_main($)
20 {
21         my $INPUT = shift;
22         my %SMB_BUILD_CTX = (
23                 INPUT => $INPUT
24         );
25
26         input::check(\%SMB_BUILD_CTX);
27         
28         depend::create_depend(\%SMB_BUILD_CTX);
29
30         output::create_output(\%SMB_BUILD_CTX);
31
32         makefile::create_makefile_in(\%SMB_BUILD_CTX);
33
34         smb_build_h::create_smb_build_h(\%SMB_BUILD_CTX);
35
36         dump::dump_ctx(\%SMB_BUILD_CTX);
37
38
39         return 0;
40 }
41 1;