From 07a805127a0f0089bfecc313435932b3b8400423 Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Sun, 22 Aug 2004 22:33:57 +0000 Subject: [PATCH] Added recursive idl target to allow updating idl files private to a dll. --- Make.rules.in | 13 +++++++++++-- dlls/ole32/Makefile.in | 10 ++++++++++ dlls/ole32/dcom.h | 10 ++++++++-- include/Makefile.in | 2 -- 4 files changed, 29 insertions(+), 6 deletions(-) diff --git a/Make.rules.in b/Make.rules.in index be8d31de7fd..5ceda511117 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -225,6 +225,17 @@ clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) .PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(EXTRASUBDIRS:%=%/__clean__) +# Rules for IDL files + +idl: $(SUBDIRS:%=%/__idl__) + +$(IDL_SRCS:.idl=.h): $(WIDL) + +$(SUBDIRS:%=%/__idl__): dummy + cd `dirname $@` && $(MAKE) idl + +.PHONY: idl + # Rules for installing $(SUBDIRS:%=%/__install__): dummy @@ -268,8 +279,6 @@ $(SUBDIRS:%=%/__crosstest__): dummy $(MC_SRCS:.mc=.mc.rc): $(WMC) -$(IDL_SRCS:.idl=.h): $(WIDL) - $(SUBDIRS): dummy @cd $@ && $(MAKE) diff --git a/dlls/ole32/Makefile.in b/dlls/ole32/Makefile.in index 1bbe808ad65..c277fa9a7b8 100644 --- a/dlls/ole32/Makefile.in +++ b/dlls/ole32/Makefile.in @@ -61,8 +61,18 @@ RC_BINARIES = \ drag_move.cur \ nodrop.cur +IDL_SRCS = \ + dcom.idl + SUBDIRS = tests @MAKE_DLL_RULES@ +.SUFFIXES: .idl .h + +.idl.h: + $(WIDL) $(IDLFLAGS) -b -h -H $@ $< + +idl: $(IDL_SRCS:.idl=.h) + ### Dependencies: diff --git a/dlls/ole32/dcom.h b/dlls/ole32/dcom.h index 1194bbb8aa2..e121612c753 100644 --- a/dlls/ole32/dcom.h +++ b/dlls/ole32/dcom.h @@ -226,7 +226,7 @@ struct IRemUnknown { const IRemUnknownVtbl* lpVtbl; }; struct IRemUnknownVtbl { - ICOM_MSVTABLE_COMPAT_FIELDS + BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( @@ -260,8 +260,10 @@ struct IRemUnknownVtbl { unsigned short cInterfaceRefs, REMINTERFACEREF* InterfaceRefs); + END_INTERFACE }; +#ifdef COBJMACROS /*** IUnknown methods ***/ #define IRemUnknown_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) #define IRemUnknown_AddRef(p) (p)->lpVtbl->AddRef(p) @@ -270,6 +272,7 @@ struct IRemUnknownVtbl { #define IRemUnknown_RemQueryInterface(p,a,b,c,d,e) (p)->lpVtbl->RemQueryInterface(p,a,b,c,d,e) #define IRemUnknown_RemAddRef(p,a,b,c) (p)->lpVtbl->RemAddRef(p,a,b,c) #define IRemUnknown_RemRelease(p,a,b) (p)->lpVtbl->RemRelease(p,a,b) +#endif #endif @@ -349,7 +352,7 @@ struct IRemUnknown2 { const IRemUnknown2Vtbl* lpVtbl; }; struct IRemUnknown2Vtbl { - ICOM_MSVTABLE_COMPAT_FIELDS + BEGIN_INTERFACE /*** IUnknown methods ***/ HRESULT (STDMETHODCALLTYPE *QueryInterface)( @@ -392,8 +395,10 @@ struct IRemUnknown2Vtbl { HRESULT* phr, MInterfacePointer** ppMIF); + END_INTERFACE }; +#ifdef COBJMACROS /*** IUnknown methods ***/ #define IRemUnknown2_QueryInterface(p,a,b) (p)->lpVtbl->QueryInterface(p,a,b) #define IRemUnknown2_AddRef(p) (p)->lpVtbl->AddRef(p) @@ -404,6 +409,7 @@ struct IRemUnknown2Vtbl { #define IRemUnknown2_RemRelease(p,a,b) (p)->lpVtbl->RemRelease(p,a,b) /*** IRemUnknown2 methods ***/ #define IRemUnknown2_RemQueryInterface2(p,a,b,c,d,e) (p)->lpVtbl->RemQueryInterface2(p,a,b,c,d,e) +#endif #endif diff --git a/include/Makefile.in b/include/Makefile.in index a7fa2e26ddc..d57e17450f3 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -296,8 +296,6 @@ EXTRASUBDIRS = msvcrt msvcrt/sys wine .idl.h: $(WIDL) $(IDLFLAGS) -b -h -H $@ $< -.PHONY: idl - idl: $(IDL_SRCS:.idl=.h) install::