summaryrefslogtreecommitdiff
path: root/source4/main.mk
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-04-25 16:31:12 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:04:24 -0500
commit4333993e90255704fd3e7089ded29cc37e55bb66 (patch)
treef8de60f74212b7e6b0c0af156fe6c27ef160d184 /source4/main.mk
parentd562cac5c4a54cc4efe8a6c876faba5274730948 (diff)
downloadsamba-4333993e90255704fd3e7089ded29cc37e55bb66.tar.gz
samba-4333993e90255704fd3e7089ded29cc37e55bb66.tar.bz2
samba-4333993e90255704fd3e7089ded29cc37e55bb66.zip
r15247: Get rid of patsubst macro as it is not supported by some makes and replace
it with a perl script. This should fix the build on tru64 (This used to be commit b4e08b98a6a8ebfc4f22125b4474978e9384971c)
Diffstat (limited to 'source4/main.mk')
-rw-r--r--source4/main.mk12
1 files changed, 2 insertions, 10 deletions
diff --git a/source4/main.mk b/source4/main.mk
index 96fae004a4..a8860e3756 100644
--- a/source4/main.mk
+++ b/source4/main.mk
@@ -188,15 +188,7 @@ installpidl: pidl/Makefile
uninstallpidl: pidl/Makefile
$(MAKE) -C pidl uninstall
-IDL_FILES = $(wildcard librpc/idl/*.idl)
-IDL_HEADER_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/%.h,$(IDL_FILES))
-IDL_NDR_HEADER_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%.h,$(IDL_FILES))
-IDL_NDR_PARSE_C_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%.c,$(IDL_FILES))
-IDL_NDR_CLIENT_C_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%_c.c,$(IDL_FILES))
-IDL_NDR_CLIENT_HEADER_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%_c.h,$(IDL_FILES))
-IDL_NDR_SERVER_C_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%_s.c,$(IDL_FILES))
-IDL_NDR_EJS_C_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%_ejs.c,$(IDL_FILES))
-IDL_NDR_EJS_H_FILES = $(patsubst librpc/idl/%.idl,librpc/gen_ndr/ndr_%_ejs.h,$(IDL_FILES))
+include librpc/idl-deps.pl librpc/idl/*.idl|
$(IDL_HEADER_FILES) $(IDL_NDR_HEADER_FILES) $(IDL_NDR_PARSE_C_FILES) \
$(IDL_NDR_CLIENT_C_FILES) $(IDL_NDR_CLIENT_H_FILES) \
@@ -319,7 +311,7 @@ unused_macros:
@$(CC) -M -MG -MP -MT $(<:.c=.o) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
.c.hd:
- @echo "Generating dependencies for $<"
+ @echo "Generating host-compiler dependencies for $<"
@$(CC) -M -MG -MP -MT $(<:.c=.ho) `$(PERL) $(srcdir)/script/cflags.pl $@` $(CFLAGS) $< -o $@
include/includes.d: include/includes.h