mirror of
https://github.com/samba-team/samba.git
synced 2025-01-14 19:24:43 +03:00
ae66cc5ef7
so nobody needs to look at build/smb_build/ anymore, just to use the build system metze (This used to be commit a94e7740d554a18b5e9ae37bdcabec8ccc5705fc)
45 lines
964 B
Perl
45 lines
964 B
Perl
###########################################################
|
|
### SMB Build System ###
|
|
### - the main program ###
|
|
### ###
|
|
### Copyright (C) Stefan (metze) Metzmacher 2004 ###
|
|
### Released under the GNU GPL ###
|
|
###########################################################
|
|
|
|
use smb_build::makefile;
|
|
use smb_build::smb_build_h;
|
|
use smb_build::input;
|
|
use smb_build::config_mk;
|
|
use smb_build::output;
|
|
use smb_build::dot;
|
|
use strict;
|
|
|
|
my $config_list = "config.list";
|
|
|
|
sub smb_build_main($)
|
|
{
|
|
my $INPUT = shift;
|
|
|
|
my @mkfiles = split('\n', `grep -v ^# $config_list`);
|
|
|
|
$| = 1;
|
|
|
|
for my $mkfile (@mkfiles) {
|
|
config_mk::import_file($INPUT, $mkfile);
|
|
}
|
|
|
|
my $DEPEND = input::check($INPUT);
|
|
|
|
my $OUTPUT = output::create_output($DEPEND);
|
|
|
|
makefile::create_makefile_in($OUTPUT, "Makefile.in");
|
|
|
|
smb_build_h::create_smb_build_h($OUTPUT, "include/smb_build.h");
|
|
|
|
open DOTTY, ">samba4-deps.dot";
|
|
print DOTTY dot::generate($DEPEND);
|
|
close DOTTY;
|
|
}
|
|
|
|
1;
|