Commit 233766aa authored by Alexandre Julliard's avatar Alexandre Julliard

Build idl files as part of the normal build process.

parent 06f6cc9d
...@@ -113,7 +113,7 @@ LINTS = $(C_SRCS:.c=.ln) ...@@ -113,7 +113,7 @@ LINTS = $(C_SRCS:.c=.ln)
# Implicit rules # Implicit rules
.SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.c .spec.def .ok .sfd .ttf .SUFFIXES: .mc .rc .mc.rc .res .res.o .spec .spec.c .spec.def .idl .h .ok .sfd .ttf
.c.o: .c.o:
$(CC) -c $(ALLCFLAGS) -o $@ $< $(CC) -c $(ALLCFLAGS) -o $@ $<
...@@ -136,6 +136,9 @@ LINTS = $(C_SRCS:.c=.ln) ...@@ -136,6 +136,9 @@ LINTS = $(C_SRCS:.c=.ln)
.spec.spec.def: .spec.spec.def:
$(WINEBUILD) -w $(DEFS) -o $@ --def $< $(WINEBUILD) -w $(DEFS) -o $@ --def $<
.idl.h:
$(WIDL) $(IDLFLAGS) -b -h -H $@ $<
.c.ln: .c.ln:
$(LINT) -c $(ALLLINTFLAGS) $< || ( $(RM) $@ && exit 1 ) $(LINT) -c $(ALLLINTFLAGS) $< || ( $(RM) $@ && exit 1 )
...@@ -225,17 +228,6 @@ clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__) ...@@ -225,17 +228,6 @@ clean:: $(SUBDIRS:%=%/__clean__) $(EXTRASUBDIRS:%=%/__clean__)
.PHONY: clean testclean $(SUBDIRS:%=%/__clean__) $(SUBDIRS:%=%/__testclean__) $(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 # Rules for installing
$(SUBDIRS:%=%/__install__): dummy $(SUBDIRS:%=%/__install__): dummy
...@@ -279,6 +271,8 @@ $(SUBDIRS:%=%/__crosstest__): dummy ...@@ -279,6 +271,8 @@ $(SUBDIRS:%=%/__crosstest__): dummy
$(MC_SRCS:.mc=.mc.rc): $(WMC) $(MC_SRCS:.mc=.mc.rc): $(WMC)
$(IDL_SRCS:.idl=.h): $(WIDL)
$(SUBDIRS): dummy $(SUBDIRS): dummy
@cd $@ && $(MAKE) @cd $@ && $(MAKE)
......
...@@ -108,14 +108,17 @@ uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__) ...@@ -108,14 +108,17 @@ uninstall:: $(INSTALLBOTHSUBDIRS:%=%/__uninstall__)
# Dependencies between directories # Dependencies between directories
all: $(INSTALLSUBDIRS) $(INSTALLBOTHSUBDIRS) all: $(INSTALLSUBDIRS) $(INSTALLBOTHSUBDIRS)
dlls fonts loader server: libs tools dlls: include libs tools
programs: dlls libs tools fonts loader server: libs tools
programs: dlls include libs tools
include: libs tools
tools: libs tools: libs
dlls/__install-lib__ dlls/__install-dev__: libs tools dlls/__install-lib__ dlls/__install-dev__: libs tools include/__install__
include/__install__: include libs tools
libs/__install-lib__ libs/__install-dev__: libs libs/__install-lib__ libs/__install-dev__: libs
fonts/__install__ loader/__install__ server/__install__: libs tools fonts/__install__ loader/__install__ server/__install__: libs tools
programs/__install__: libs tools dlls/__install-lib__ programs/__install__: libs tools include/__install__ dlls/__install-lib__
tools/__install__: tools tools/__install__: tools
# Test rules # Test rules
......
...@@ -19,11 +19,4 @@ IDL_SRCS = \ ...@@ -19,11 +19,4 @@ IDL_SRCS = \
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
.SUFFIXES: .idl .h
.idl.h:
$(WIDL) $(IDLFLAGS) -b -h -H $@ $<
idl: $(IDL_SRCS:.idl=.h)
### Dependencies: ### Dependencies:
...@@ -68,11 +68,4 @@ SUBDIRS = tests ...@@ -68,11 +68,4 @@ SUBDIRS = tests
@MAKE_DLL_RULES@ @MAKE_DLL_RULES@
.SUFFIXES: .idl .h
.idl.h:
$(WIDL) $(IDLFLAGS) -b -h -H $@ $<
idl: $(IDL_SRCS:.idl=.h)
### Dependencies: ### Dependencies:
...@@ -295,14 +295,9 @@ EXTRASUBDIRS = msvcrt msvcrt/sys wine ...@@ -295,14 +295,9 @@ EXTRASUBDIRS = msvcrt msvcrt/sys wine
@MAKE_RULES@ @MAKE_RULES@
.SUFFIXES: .idl .h all: $(IDL_SRCS:.idl=.h)
.idl.h: install:: $(IDL_SRCS:.idl=.h)
$(WIDL) $(IDLFLAGS) -b -h -H $@ $<
idl: $(IDL_SRCS:.idl=.h)
install::
$(MKINSTALLDIRS) $(includedir) $(includedir)/windows $(includedir)/msvcrt $(includedir)/msvcrt/sys $(MKINSTALLDIRS) $(includedir) $(includedir)/windows $(includedir)/msvcrt $(includedir)/msvcrt/sys
for f in $(WINDOWS_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/windows/$$f; done for f in $(WINDOWS_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/windows/$$f; done
for f in $(MSVCRT_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/$$f; done for f in $(MSVCRT_INCLUDES); do $(INSTALL_DATA) $(SRCDIR)/$$f $(includedir)/$$f; done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment