summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAlexander Bokovoy <ab@samba.org>2006-04-13 03:09:14 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:05 -0500
commita41ac85091fbec145d7bcb51bb0239d81b452313 (patch)
tree3b8a84d7ec969bb6a72d12629a4e593c2c9b5d75 /source4
parentf347be4c738450e910d8453cef03c273069899a3 (diff)
downloadsamba-a41ac85091fbec145d7bcb51bb0239d81b452313.tar.gz
samba-a41ac85091fbec145d7bcb51bb0239d81b452313.tar.bz2
samba-a41ac85091fbec145d7bcb51bb0239d81b452313.zip
r15061: Use $(PERL) to run cflags.pl as actual perl binary might not be in /usr/bin
(This used to be commit 7d5a91a667418b18bde9399ffc4c9852c422362a)
Diffstat (limited to 'source4')
-rw-r--r--source4/main.mk12
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 85c3ffb82c..6eba282be0 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -311,15 +311,15 @@ unused_macros:
.c.ho:
@echo "Compiling $< with host compiler"
- @$(HOSTCC) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@
+ @$(HOSTCC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) -c $< -o $@
.c.d:
@echo "Generating dependencies for $<"
- @$(CC) -M -MG -MP -MT $(<:.c=.o) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
+ @$(CC) -M -MG -MP -MT $(<:.c=.o) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
.c.hd:
@echo "Generating dependencies for $<"
- @$(CC) -M -MG -MP -MT $(<:.c=.ho) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
+ @$(CC) -M -MG -MP -MT $(<:.c=.ho) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
include/includes.d: include/includes.h
@echo "Generating dependencies for $<"
@@ -328,14 +328,14 @@ include/includes.d: include/includes.h
.c.o:
@if test -n "$(CC_CHECKER)"; then \
echo "Checking $< with '$(CC_CHECKER)'"; \
- $(CC_CHECKER) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \
+ $(CC_CHECKER) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@; \
fi
@echo "Compiling $<"
- @$(CC) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
+ @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
.h.h.gch:
@echo "Precompiling $<"
- @$(CC) `$(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
+ @$(CC) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $(PICFLAG) -c $< -o $@
.y.c:
@echo "Building $< with $(YACC)"