mirror of
https://github.com/samba-team/samba.git
synced 2024-12-27 03:21:53 +03:00
r22040: Use $< to specify the immediate prerequisit instead of $*. This is
needed for VPATH to find the correct files when srcdir != builddir.
This checkin is a test to see which platforms this change will break.
(This used to be commit 1d4e836a50
)
This commit is contained in:
parent
8d525c8187
commit
3655b4ba75
@ -377,23 +377,27 @@ include/includes.d: include/includes.h
|
||||
# if it also exists. So better use $* which is foo/bar
|
||||
# and append .c manually to get foo/bar.c
|
||||
#
|
||||
# But if srcdir != builddir, $* does not contain the filename
|
||||
# that was found be traversing VPATH. So we are back to $<.
|
||||
# -- jpeach
|
||||
#
|
||||
|
||||
# Run a static analysis checker
|
||||
CHECK = $(CC_CHECKER) `$(PERL) $(srcdir)/script/cflags.pl $@` \
|
||||
$(CFLAGS) $(PICFLAG) -c $*.c -o $@
|
||||
$(CFLAGS) $(PICFLAG) -c $< -o $@
|
||||
|
||||
# Run the configured compiler
|
||||
COMPILE = $(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` \
|
||||
$(CFLAGS) $(PICFLAG) -c $*.c -o $@
|
||||
$(CFLAGS) $(PICFLAG) -c $< -o $@
|
||||
|
||||
# Run the compiler for the build host
|
||||
HCOMPILE = $(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` \
|
||||
$(HOSTCC_CFLAGS) -c $*.c -o $@
|
||||
$(HOSTCC_CFLAGS) -c $< -o $@
|
||||
|
||||
# Precompile headers
|
||||
PCHCOMPILE = @$(CC) -Ilib/replace \
|
||||
`$(PERL) $(srcdir)/script/cflags.pl $@` \
|
||||
$(CFLAGS) $(PICFLAG) -c $*.c -o $@
|
||||
$(CFLAGS) $(PICFLAG) -c $< -o $@
|
||||
|
||||
.c.o:
|
||||
@if test -n "$(CC_CHECKER)"; then \
|
||||
|
Loading…
Reference in New Issue
Block a user