mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-01 19:03:37 +00:00
93 lines
2.8 KiB
Makefile
93 lines
2.8 KiB
Makefile
# 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
|
|
# sgmlpages: compile sgml source for the Wine API Guide
|
|
# xmlpages: compile xml source for the Wine API Guide
|
|
|
|
TOPSRCDIR = @top_srcdir@
|
|
TOPOBJDIR = .
|
|
SRCDIR = @srcdir@
|
|
VPATH = @srcdir@
|
|
|
|
# Sub-directories that don't have a makefile
|
|
EXTRASUBDIRS = dlls libs programs
|
|
|
|
# Destination directories for make install
|
|
INSTALLDIRS = $(DESTDIR)$(bindir)
|
|
|
|
all: wine
|
|
@echo "Wine build complete."
|
|
|
|
WINAPI_CHECK_EXTRA_FLAGS = --global
|
|
|
|
@MAKE_RULES@
|
|
|
|
# Rules for re-running configure
|
|
|
|
$(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 > $@
|
|
|
|
config.status: configure
|
|
@./config.status --recheck
|
|
|
|
include/config.h: include/stamp-h
|
|
include/stamp-h: include/config.h.in config.status
|
|
@./config.status include/config.h include/stamp-h
|
|
|
|
# Rules for cleaning
|
|
|
|
.PHONY: __clean__
|
|
clean:: __clean__
|
|
$(RM) tools/makedep$(EXEEXT)
|
|
|
|
distclean:: clean
|
|
$(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp
|
|
$(RM) -r autom4te.cache
|
|
|
|
# Dependencies between directories
|
|
|
|
# dependencies needed to build any dll or program
|
|
__tooldeps__: libs/port libs/wine libs/wpp
|
|
__builddeps__ __buildcrossdeps__: __tooldeps__ include
|
|
.PHONY: test crosstest __tooldeps__ __builddeps__ __buildcrossdeps__
|
|
|
|
loader server: libs/port libs/wine tools
|
|
fonts: tools
|
|
include: 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
|
|
|
|
$(MAKEDEP): include/config.h tools/Makefile
|
|
@cd $(TOOLSDIR)/tools && $(MAKE) makedep$(TOOLSEXT)
|
|
|
|
# Misc rules
|
|
|
|
TAGS etags:
|
|
$(RM) TAGS
|
|
(test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs etags -a
|
|
|
|
tags ctags:
|
|
$(RM) tags
|
|
(test -d .git && git ls-files '*.[chly]' '*.idl' || find -L $(TOPSRCDIR) -name '*.[ch]' -print) | xargs ctags -a
|