mirror of
https://github.com/samba-team/samba.git
synced 2025-01-12 09:18:10 +03:00
4826f17351
This merges Samba4 with lorikeet-heimdal, which itself has been tracking Heimdal CVS for the past couple of weeks. This is such a big change because Heimdal reorganised it's internal structures, with the mechglue merge, and because many of our 'wishes' have been granted: we now have DCE_STYLE GSSAPI, send_to_kdc hooks and many other features merged into the mainline code. We have adapted to upstream's choice of API in these cases. In gensec_gssapi and gensec_krb5, we either expect a valid PAC, or NO PAC. This matches windows behavour. We also have an option to require the PAC to be present (which allows us to automate the testing of this code). This also includes a restructure of how the kerberos dependencies are handled, due to the fallout of the merge. Andrew Bartlett
56 lines
1.4 KiB
Perl
Executable File
56 lines
1.4 KiB
Perl
Executable File
#!/usr/bin/perl
|
|
# Generate make dependency rules for asn1 files
|
|
# Jelmer Vernooij <jelmer@samba.org> 2005
|
|
# GPL
|
|
|
|
use File::Basename;
|
|
|
|
my $file = shift;
|
|
my $prefix = shift;
|
|
my $options = join(' ', @ARGV);
|
|
my $x_file;
|
|
my @x_files = ();
|
|
my $c_file;
|
|
my @c_files = ();
|
|
if (not defined ($prefix)) { $prefix = "asn1"; }
|
|
|
|
$dirname = dirname($file);
|
|
$basename = basename($file);
|
|
if (not defined $options) {
|
|
$options = "";
|
|
}
|
|
|
|
my $header = "$dirname/$prefix.h";
|
|
|
|
print "$header: $file bin/asn1_compile\n";
|
|
print "\t\@echo \"Compiling ASN1 file $file\"\n";
|
|
print "\t\@startdir=`pwd` && cd $dirname && " . ' $$startdir/bin/asn1_compile ' . "$options $basename $prefix\n\n";
|
|
|
|
open(IN,$file) or die("Can't open $file: $!");
|
|
foreach(<IN>) {
|
|
if (/^([A-Za-z0-9_-]+)[ \t]*::= /) {
|
|
my $output = $1;
|
|
$output =~ s/-/_/g;
|
|
$c_file = "$dirname/asn1_$output.c";
|
|
$x_file = "$dirname/asn1_$output.x";
|
|
print "$x_file: $header\n";
|
|
print "$c_file: $dirname/asn1_$output.x\n";
|
|
print "\t\@cp $x_file $c_file\n\n";
|
|
push @x_files, $x_file;
|
|
push @c_files, $c_file;
|
|
}
|
|
}
|
|
close(IN);
|
|
print "clean:: \n";
|
|
print "\t\@echo \"Deleting ASN1 output files generated from $file\"";
|
|
print "\n\t\@rm -f $header";
|
|
foreach $c_file (@c_files) {
|
|
print "\n\t\@rm -f $c_file";
|
|
}
|
|
foreach $x_file (@x_files) {
|
|
print "\n\t\@rm -f $x_file";
|
|
}
|
|
print "\n\t\@rm -f $dirname/$prefix\_files";
|
|
print "\n\t\@rm -f $dirname/$prefix\.h";
|
|
print "\n\n";
|