Skip to content
Snippets Groups Projects
Makefile.in 2.72 KiB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
# This Makefile understands the following targets:
#
# all (default):   build wine
# clean:           remove all intermediate files
# distclean:       also remove all files created by configure
# test:            run tests
# testclean:       clean test results to force running all tests again
# crosstest:       build tests as native windows applications (requires MinGW)
# install-lib:     install libraries needed to run applications
# install-dev:     install development environment
# install:         install everything
# uninstall:       uninstall everything
# depend:          create the dependencies
# ctags:           create a tags file for vim and others.
# etags:           create a TAGS file for Emacs.
# manpages:        compile manpages for Wine API
# htmlpages:       compile html pages for Wine API
Hans Leidekker's avatar
Hans Leidekker committed
# sgmlpages:       compile sgml source for the Wine API Guide
# xmlpages:        compile xml source for the Wine API Guide
Alexandre Julliard's avatar
Alexandre Julliard committed

# Sub-directories that don't have a makefile
# Destination directories for make install
INSTALLDIRS = \
	$(DESTDIR)$(bindir) \
	$(DESTDIR)$(dlldir) \
	$(DESTDIR)$(fakedlldir) \
	$(DESTDIR)$(mandir)/man$(prog_manext)
	@echo "Wine build complete."
Alexandre Julliard's avatar
Alexandre Julliard committed

WINAPI_CHECK_EXTRA_FLAGS = --global

Alexandre Julliard's avatar
Alexandre Julliard committed
@MAKE_RULES@

include/config.h: include/stamp-h
include/stamp-h: include/config.h.in config.status
	@./config.status include/config.h include/stamp-h

	$(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp
# Rules for uninstalling

.PHONY: __uninstall__
uninstall:: __uninstall__
	-rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir)

# dependencies needed to build any dll or program
__tooldeps__: libs/port libs/wine libs/wpp
__builddeps__: __tooldeps__ include
.PHONY: test crosstest __tooldeps__ __builddeps__
include: tools tools/widl
tools/wmc tools/wrc: tools
tools tools/wmc tools/wrc: libs/wine
tools/widl tools/wmc tools/wrc: libs/wpp
dlls/shell32/Makefile dlls/shell32/__depend__: dlls/shell32/AUTHORS

	@cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
TAGSFLAGS = --langmap='c:+.idl.l.rh,make:(Make*.in)'

Alexandre Julliard's avatar
Alexandre Julliard committed
TAGS etags:
	(test -d .git && git ls-files || find -L $(top_srcdir) -name '*.[ch]' -print) | xargs etags -a $(TAGSFLAGS)
Alexandre Julliard's avatar
Alexandre Julliard committed

	(test -d .git && git ls-files || find -L $(top_srcdir) -name '*.[ch]' -print) | xargs ctags -a $(TAGSFLAGS)