Makefile.in 2.44 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2
# This Makefile understands the following targets:
#
3 4 5 6 7
# 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
8
# crosstest:       build tests as native windows applications (requires MinGW)
9 10
# install-lib:     install libraries needed to run applications
# install-dev:     install development environment
11 12 13
# install:         install everything
# uninstall:       uninstall everything
# depend:          create the dependencies
14
# ctags:           create a tags file for vim and others.
15 16
# etags:           create a TAGS file for Emacs.
# manpages:        compile manpages for Wine API
17
# htmlpages:       compile html pages for Wine API
Hans Leidekker's avatar
Hans Leidekker committed
18
# sgmlpages:       compile sgml source for the Wine API Guide
19
# xmlpages:        compile xml source for the Wine API Guide
Alexandre Julliard's avatar
Alexandre Julliard committed
20

21
all: wine
22
	@echo "Wine build complete."
Alexandre Julliard's avatar
Alexandre Julliard committed
23

24 25
# Rules for re-running configure

26
config.status: $(srcdir)/configure
27
	@./config.status --recheck
28

29
include/config.h: include/stamp-h
30
include/stamp-h: $(srcdir)/include/config.h.in config.status
31 32
	@./config.status include/config.h include/stamp-h

33 34
# Rules for cleaning

35 36
.PHONY: clean distclean __clean__

37
clean:: __clean__
38
distclean:: clean
39
	$(RM) config.* configure.lineno TAGS tags include/config.h include/stamp-h Makefile Make.tmp .gitignore
40 41
	$(RM) -r autom4te.cache

42
# Rules for uninstalling
43

44
.PHONY: install install-lib install-dev uninstall __uninstall__
45
uninstall:: __uninstall__
46
	-rmdir $(DESTDIR)$(datadir)/wine $(DESTDIR)$(fakedlldir) $(DESTDIR)$(dlldir) $(DESTDIR)$(includedir)
47

48 49
# Dependencies between directories

50
# dependencies needed to build any dll or program
51
__tooldeps__: libs/port libs/wine libs/wpp
52
__builddeps__: __tooldeps__ include
53
.PHONY: depend check test testclean crosstest __tooldeps__ __builddeps__
54

55
loader server: libs/port libs/wine tools
56
fonts: tools
57
include: tools tools/widl
58
libs/wine: libs/port
59 60 61
tools/wmc tools/wrc: tools
tools tools/wmc tools/wrc: libs/wine
tools/widl tools/wmc tools/wrc: libs/wpp
62
libs/port libs/wine libs/wpp: include/config.h
63

64 65
# Misc rules

66 67
TAGSFLAGS = --langmap='c:+.idl.l.rh,make:(Make*.in)'

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

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