r12613: workarround a BSD make bug, where $< gets expanded to 'torture/libnet/userman.c'
authorStefan Metzmacher <metze@samba.org>
Fri, 30 Dec 2005 17:39:03 +0000 (17:39 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:49:04 +0000 (13:49 -0500)
when $@ is 'libnet/userman.o'

metze

source/build/smb_build/makefile.pm

index 4669180b5666a082a4b55509c7d711b78071932d..c8040322759e182232750ccf255fba197065100b 100644 (file)
@@ -184,7 +184,7 @@ sub _prepare_std_CC_rule($$$$$$)
 # $comment
 .$src.$dst:
        \@echo $message \$\*.$src
-       \@\$(CC) `script/cflags.sh \$\@` \$(CFLAGS) $flags -c \$< -o \$\@
+       \@\$(CC) `script/cflags.sh \$\@` \$(CFLAGS) $flags -c \$\*.$src -o \$\@
 __EOD__
 );
        if ($self->{config}->{BROKEN_CC} eq "yes") {
@@ -202,7 +202,7 @@ sub _prepare_hostcc_rule($)
        $self->output(<< "__EOD__"
 .c.ho:
        \@echo Compiling \$\*.c with host compiler
-       \@\$(HOSTCC) `script/cflags.sh \$\@` \$(CFLAGS) -c \$< -o \$\@
+       \@\$(HOSTCC) `script/cflags.sh \$\@` \$(CFLAGS) -c \$\*.c -o \$\@
 __EOD__
 );
        if ($self->{config}->{BROKEN_CC} eq "yes") {