1
0
mirror of https://github.com/samba-team/samba.git synced 2025-10-22 07:33:16 +03:00
Files
samba-mirror/source/script/cflags.pl
Jelmer Vernooij d512b147e8 r13867: Wrap the cflags.sh hack in the build system. You can now simply
set subsystem-specific compiler flags in the .mk files.
2007-10-10 13:52:18 -05:00

27 lines
474 B
Perl
Executable File

#!/usr/bin/perl
# This is a hack to allow per target cflags. It isn't very elegant, but it
# is the most portable idea we have come up with yet
# tridge@samba.org, July 2005
# jelmer@samba.org, March 2006
use strict;
use warnings;
my $target = shift;
sub check_flags($)
{
my ($name)=@_;
open (IN, "extra_cflags.txt");
while (<IN> =~ /^([^:]+): (.*)$/) {
next unless ($1 eq $target);
print "$2 ";
}
close(IN);
print "\n";
}
check_flags($target);
exit 0;