wined3d: Remove ERR() on HeapAlloc failure for small sizes known at compile time.
[wine] / Makefile.in
index 2d2d8b7..72161fc 100644 (file)
 # sgmlpages:       compile sgml source for the Wine API Guide
 # xmlpages:        compile xml source for the Wine API Guide
 
-# Directories
-
-TOPSRCDIR = @top_srcdir@
-TOPOBJDIR = .
-SRCDIR    = @srcdir@
-VPATH     = @srcdir@
-LIBEXT    = @LIBEXT@
-MODULE    = none
-PROGRAMS  = wine
-
-# Sub-directories to run make depend/clean into
-SUBDIRS = \
+# Sub-directories that don't have a makefile
+EXTRASUBDIRS = \
        dlls \
-       documentation \
-       fonts \
-       include \
        libs \
-       loader \
-       programs \
-       server \
-       tools
+       po \
+       programs
 
-# Sub-directories to run make install/uninstall into
-INSTALLSUBDIRS = @ALL_TOP_DIRS@
+# Destination directories for make install
+INSTALLDIRS = \
+       $(DESTDIR)$(bindir) \
+       $(DESTDIR)$(dlldir) \
+       $(DESTDIR)$(fakedlldir) \
+       $(DESTDIR)$(mandir)/man$(prog_manext)
 
-# Sub-directories to run make test into
-TESTSUBDIRS = dlls
-
-all: Make.rules $(PROGRAMS)
+all: wine
        @echo "Wine build complete."
 
 WINAPI_CHECK_EXTRA_FLAGS = --global
 
-INSTALLDIRS = $(DESTDIR)$(datadir)/aclocal
-
 @MAKE_RULES@
 
-$(SRCDIR)/configure: @MAINTAINER_MODE@ configure.ac aclocal.m4
-       cd $(SRCDIR) && autoconf --warnings=all
-
-$(SRCDIR)/include/config.h.in: @MAINTAINER_MODE@ include/stamp-h.in
-$(SRCDIR)/include/stamp-h.in: configure.ac aclocal.m4
-       cd $(SRCDIR) && autoheader --warnings=all
-       @echo timestamp > $@
+# Rules for re-running configure
 
 config.status: configure
        @./config.status --recheck
@@ -70,95 +48,48 @@ include/config.h: include/stamp-h
 include/stamp-h: include/config.h.in config.status
        @./config.status include/config.h include/stamp-h
 
-wine: $(WINEWRAPPER)
-       $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
+# Rules for cleaning
 
-# Installation rules
+.PHONY: __clean__
+clean:: __clean__
+distclean:: clean
+       $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp
+       $(RM) -r autom4te.cache
 
-install-aclocal: $(DESTDIR)$(datadir)/aclocal dummy
+# Rules for uninstalling
 
-.PHONY: install-aclocal
+.PHONY: __uninstall__
+uninstall:: __uninstall__
+       -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)
 
-@WOW64_DISABLE@ install install-dev:: install-aclocal
+# Dependencies between directories
 
-uninstall::
-       $(RM) $(DESTDIR)$(datadir)/aclocal/wine.m4
-       -rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(datadir)/aclocal
+# dependencies needed to build any dll or program
+__tooldeps__: libs/port libs/wine libs/wpp
+__builddeps__: __tooldeps__ include
+.PHONY: test crosstest __tooldeps__ __builddeps__
 
-# Dependencies between directories
+loader server: libs/port libs/wine tools
+fonts: tools
+include: tools tools/widl
+libs/wine: libs/port
+tools/wmc tools/wrc: tools
+tools tools/wmc tools/wrc: libs/wine
+tools/widl tools/wmc tools/wrc: libs/wpp
 
-all: $(INSTALLSUBDIRS)
-dlls: include libs tools
-fonts loader server: libs tools
-programs: dlls include libs tools
-include: libs tools
-tools: libs
-
-dlls/__install__ dlls/__install-lib__ dlls/__install-dev__: libs tools include
-fonts/__install__ fonts/__install-lib__: libs tools
-include/__install__ include/__install-dev__: include libs tools
-libs/__install__ libs/__install-lib__ libs/__install-dev__: libs
-loader/__install__ loader/__install-lib__: libs tools
-server/__install__ server/__install-lib__: libs tools
-programs/__install__: libs tools include dlls/__install__
-programs/__install-lib__: libs tools include dlls/__install-lib__
-tools/__install__ tools/__install-lib__ tools/__install-dev__: tools
-
-RECURSE_TARGETS = \
-       $(SUBDIRS) \
-       $(SUBDIRS:%=%/__clean__) \
-       $(SUBDIRS:%=%/__depend__) \
-       $(SUBDIRS:%=%/__install-dev__) \
-       $(SUBDIRS:%=%/__install-lib__) \
-       $(SUBDIRS:%=%/__install__) \
-       $(SUBDIRS:%=%/__uninstall__) \
-       $(TESTSUBDIRS:%=%/__crosstest__) \
-       $(TESTSUBDIRS:%=%/__test__) \
-       $(TESTSUBDIRS:%=%/__testclean__)
-
-depend $(RECURSE_TARGETS): $(MAKEDEP)
+dlls/shell32/Makefile dlls/shell32/__depend__: dlls/shell32/AUTHORS
 
 $(MAKEDEP): include/config.h
        @cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
 
-# Test rules
-
-$(TESTSUBDIRS:%=%/__test__): wine
-$(TESTSUBDIRS:%=%/__crosstest__): tools include
-
 # Misc rules
 
+TAGSFLAGS = --langmap='c:+.idl.l.rh,make:(Make*.in)'
+
 TAGS etags:
        $(RM) TAGS
-       (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs etags -a
+       (test -d .git && git ls-files || find -L $(top_srcdir) -name '*.[ch]' -print) | xargs etags -a $(TAGSFLAGS)
 
 tags ctags:
        $(RM) tags
-       (test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
-
-manpages htmlpages sgmlpages xmlpages: dummy
-       @cd documentation && $(MAKE) $@
-
-distclean:: clean
-       $(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h
-       $(RM) -r autom4te.cache
-
-.PHONY: manpages htmlpages sgmlpages xmlpages distclean
-
-# Makefile rules
-
-ALL_MAKERULES = @ALL_MAKERULES@
-ALL_MAKEFILES = @ALL_MAKEFILES@
-
-Makefile $(ALL_MAKERULES) $(ALL_MAKEFILES): config.status
-       @./config.status $@
-.INIT: Makefile
-.BEGIN: Makefile
-.MAKEFILEDEPS:
-
-$(RECURSE_TARGETS) $(MAKEDEP): $(ALL_MAKEFILES)
-
-distclean::
-       $(RM) Makefile $(ALL_MAKERULES) $(ALL_MAKEFILES)
-
-@ALL_MAKEFILE_DEPENDS@
+       (test -d .git && git ls-files || find -L $(top_srcdir) -name '*.[ch]' -print) | xargs ctags -a $(TAGSFLAGS)