diff --git a/Make.rules.in b/Make.rules.in index 8174c1d7231..affddeec8f3 100644 --- a/Make.rules.in +++ b/Make.rules.in @@ -69,6 +69,7 @@ WINEBUILD = $(TOOLSDIR)/tools/winebuild/winebuild MAKEDEP = $(TOOLSDIR)/tools/makedep WRC = $(TOOLSDIR)/tools/wrc/wrc WMC = $(TOOLSDIR)/tools/wmc/wmc +WIDL = $(TOOLSDIR)/tools/widl/widl LDPATH = @LDPATH@ DLLDIR = $(TOPOBJDIR)/dlls LIBWINE = -L$(TOPOBJDIR)/library -lwine diff --git a/include/Makefile.in b/include/Makefile.in index caef4a45f2a..379eb47cc39 100644 --- a/include/Makefile.in +++ b/include/Makefile.in @@ -4,6 +4,9 @@ SRCDIR = @srcdir@ VPATH = @srcdir@ MODULE = none +IDL_SRCS = \ + wtypes.idl + WINDOWS_INCLUDES = \ audevcod.h \ basetsd.h \ @@ -148,8 +151,8 @@ WINDOWS_INCLUDES = \ ws2tcpip.h \ wshisotp.h \ wsipx.h \ - wtypes.h \ - zmouse.h + zmouse.h \ + $(IDL_SRCS:.idl=.h) MSVCRT_INCLUDES = \ msvcrt/conio.h \ @@ -230,6 +233,11 @@ EXTRASUBDIRS = bitmaps msvcrt msvcrt/sys wine @MAKE_RULES@ +.SUFFIXES: .idl .h + +.idl.h: + $(LDPATH) $(WIDL) $(DEFS) -h -H $@ $< + install:: $(MKINSTALLDIRS) $(includedir) $(includedir)/windows $(includedir)/msvcrt $(includedir)/msvcrt/sys for f in $(WINDOWS_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/windows/$$f; done