[PATCH] makedep: Added dlldata support to makedep
Roy Shea
roy at cs.hmc.edu
Thu Oct 18 15:48:19 CDT 2007
Expanded depend rule to optionally pass in "-D" option for dlldata.c
dependency generation. Added explicit rule for building dlldata.c with
WIDL.
-------------- next part --------------
Make.rules.in | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/Make.rules.in b/Make.rules.in
index 757fff5..4c8cf75 100644
--- a/Make.rules.in
+++ b/Make.rules.in
@@ -225,7 +225,12 @@ $(SUBDIRS:%=%/__depend__): dummy
@cd `dirname $@` && $(MAKE) depend
depend: $(SUBDIRS:%=%/__depend__) dummy
- $(MAKEDEP) -C$(SRCDIR) -S$(TOPSRCDIR) -T$(TOPOBJDIR) $(EXTRAINCL) $(DEPEND_SRCS)
+ if test -n "$(DLLDATA_SRCS)" ; \
+ then \
+ $(MAKEDEP) -C$(SRCDIR) -S$(TOPSRCDIR) -T$(TOPOBJDIR) -D"$(DLLDATA_SRCS)" $(EXTRAINCL) $(DEPEND_SRCS); \
+ else \
+ $(MAKEDEP) -C$(SRCDIR) -S$(TOPSRCDIR) -T$(TOPOBJDIR) $(EXTRAINCL) $(DEPEND_SRCS); \
+ fi
.PHONY: depend $(SUBDIRS:%=%/__depend__)
@@ -309,6 +314,9 @@ $(MC_SRCS:.mc=.mc.rc): $(WMC)
$(IDL_GEN_HEADERS) $(IDL_GEN_C_SRCS) $(IDL_TLB_SRCS:.idl=.tlb): $(WIDL)
+dlldata.c:
+ $(WIDL) $(IDLFLAGS) --dlldata-only $(DLLDATA_SRCS:.idl=)
+
$(SUBDIRS): dummy
@cd $@ && $(MAKE)
More information about the wine-patches
mailing list