diff options
Diffstat (limited to 'source4/main.mk')
-rw-r--r-- | source4/main.mk | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/source4/main.mk b/source4/main.mk index 5257497956..e4cdd816b0 100644 --- a/source4/main.mk +++ b/source4/main.mk @@ -181,6 +181,23 @@ pidl/Makefile: pidl/Makefile.PL installpidl: pidl/Makefile cd pidl && $(MAKE) install +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_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)) + +$(IDL_HEADER_FILES): idl +$(IDL_NDR_HEADER_FILES): idl +$(IDL_NDR_PARSE_C_FILES): idl +$(IDL_NDR_CLIENT_C_FILES): idl +$(IDL_NDR_SERVER_C_FILES): idl +$(IDL_NDR_EJS_C_FILES): idl +$(IDL_NDR_EJS_H_FILES): idl + idl_full: pidl/lib/Parse/Pidl/IDL.pm @CPP="$(CPP)" PERL="$(PERL)" script/build_idl.sh FULL $(PIDL_ARGS) |