diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-18 22:02:31 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:58:43 -0500 |
commit | f200d553fb30abe75314c5be8181da2b0dc0b57d (patch) | |
tree | 250f1febb1c1d5d849c0e7c405dd121f5e6e9a0c /source4/build | |
parent | 4a1dd087119314a7ed3f2c3e56690a55d213fd07 (diff) | |
download | samba-f200d553fb30abe75314c5be8181da2b0dc0b57d.tar.gz samba-f200d553fb30abe75314c5be8181da2b0dc0b57d.tar.bz2 samba-f200d553fb30abe75314c5be8181da2b0dc0b57d.zip |
r14549: Use make-compatible syntax in extra_cflags.txt so we can avoid
cflags.pl when using GNU make
(This used to be commit 4354147f6b5e9485d0550fa6c8a33be526f54db6)
Diffstat (limited to 'source4/build')
-rwxr-xr-x | source4/build/smb_build/cflags.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/build/smb_build/cflags.pm b/source4/build/smb_build/cflags.pm index 2cf6453841..b5525173a0 100755 --- a/source4/build/smb_build/cflags.pm +++ b/source4/build/smb_build/cflags.pm @@ -18,7 +18,10 @@ sub create_cflags($$) next if ($key->{EXTRA_CFLAGS} eq ""); foreach (@{$key->{OBJ_LIST}}) { - print CFLAGS_TXT "$_: $key->{EXTRA_CFLAGS}\n"; + my $ofile = $_; + my $dfile = $_; + $dfile =~ s/\.o$/.d/; + print CFLAGS_TXT "$ofile $dfile: CFLAGS+=$key->{EXTRA_CFLAGS}\n"; } } close(CFLAGS_TXT); |