Install notepad.exe in c:\windows too.
[wine] / Makefile.in
1 # This Makefile understands the following targets:
2 #
3 # all (default):   build wine
4 # clean:           remove all intermediate files
5 # distclean:       also remove all files created by configure
6 # test:            run tests
7 # testclean:       clean test results to force running all tests again
8 # install-lib:     install libraries needed to run applications
9 # install-dev:     install development environment
10 # install:         install everything
11 # uninstall:       uninstall everything
12 # depend:          create the dependencies
13 # etags:           create a TAGS file for Emacs.
14 # manpages:        compile manpages for Wine API
15 #
16
17 # Directories
18
19 TOPSRCDIR = @top_srcdir@
20 TOPOBJDIR = .
21 SRCDIR    = @srcdir@
22 VPATH     = @srcdir@
23 LIBEXT    = @LIBEXT@
24 LDCONFIG  = @LDCONFIG@
25 LDD       = @LDD@
26 MODULE    = none
27
28 # Sub-directories to run make depend/clean into
29 SUBDIRS = \
30         dlls \
31         documentation \
32         include \
33         library \
34         miscemu \
35         ole \
36         programs \
37         server \
38         tools \
39         tsx11 \
40         unicode
41
42 # Sub-directories to install for install-lib
43 INSTALLLIBSUBDIRS = \
44         dlls \
45         documentation \
46         library \
47         miscemu \
48         programs \
49         server \
50         tsx11 \
51         unicode
52
53 # Sub-directories to install for install-dev
54 INSTALLDEVSUBDIRS = \
55         include \
56         ole \
57         tools
58
59 INSTALLSUBDIRS = $(INSTALLDEVSUBDIRS) $(INSTALLLIBSUBDIRS)
60
61 # Sub-directories to run make test into
62 TESTSUBDIRS = \
63         dlls \
64         programs
65
66 EMUOBJS = \
67         miscemu/miscemu.o
68
69 all: Make.rules wine
70         @echo "Wine build complete."
71
72 WINAPI_CHECK_EXTRA_FLAGS = --global
73
74 @MAKE_RULES@
75
76 Make.rules: Make.rules.in configure
77         @echo $? is newer than 'Make.rules', please rerun ./configure!
78         @exit 1
79
80 wine: $(WINEWRAPPER)
81         $(RM) $@ && $(LN_S) $(WINEWRAPPER) $@
82
83 # Installation rules
84
85 install-aclocal: dummy
86         $(MKINSTALLDIRS) $(datadir)/aclocal
87         $(INSTALL_DATA) $(SRCDIR)/aclocal.m4 $(datadir)/aclocal/wine.m4
88
89 install-lib:: $(INSTALLLIBSUBDIRS:%=%/__install__)
90
91 install-dev:: $(INSTALLDEVSUBDIRS:%=%/__install__) install-aclocal
92
93 install:: install-aclocal
94         -$(LDCONFIG)
95         @if test -n "`LANG=C $(LDD) $(bindir)/wine|grep not.found`";    \
96         then                                                            \
97                 echo "*************************************************" ; \
98                 echo "*************************************************" ; \
99                 echo "The installed Wine libraries will not be found!" ; \
100                 echo "You can either:" ;                                \
101                 echo "   Add the line '$(libdir)' to /etc/ld.so.conf" ; \
102                 echo '   export LD_LIBRARY_PATH=$$LD_LIBRARY_PATH:$(libdir)' ; \
103                 echo "*************************************************" ; \
104                 echo "*************************************************" ; \
105         fi
106
107 uninstall::
108         $(RM) $(datadir)/aclocal/wine.m4
109         -rmdir $(datadir)/aclocal
110
111 .PHONY: install-aclocal install-lib install-dev
112
113 # Dependencies between directories
114
115 all: $(SUBDIRS)
116 dlls: library ole tools tsx11 unicode
117 server: library tools unicode
118 miscemu programs: dlls library ole tools tsx11 unicode
119 tools: library unicode
120
121 dlls/__install__: library ole tools tsx11 unicode
122 server/__install__: library tools unicode
123 miscemu/__install__ programs/__install__: library ole tools tsx11 unicode dlls/__install__
124 library/__install__: library
125 ole/__install__: ole
126 tools/__install__: tools
127 unicode/__install__: unicode
128
129 # Test rules
130
131 checklink:: $(TESTSUBDIRS:%=%/__checklink__)
132         $(CC) -o checklink $(TOPSRCDIR)/library/checklink.c && $(RM) checklink
133
134 test_environment: dummy
135         @cd programs/winetest && $(MAKE) test_environment
136
137 $(TESTSUBDIRS:%=%/__test__): test_environment
138
139 check test:: $(TESTSUBDIRS:%=%/__test__)
140
141 crosstest:: $(TESTSUBDIRS:%=%/__crosstest__)
142
143 .PHONY: test_environment
144
145 # Misc rules
146
147 TAGS etags:
148         etags `find $(TOPSRCDIR) -name '*.[ch]' -a -not -name '*.spec.c' -a -not -name '*.glue.c' -a -not -name '*.dbg.c' -print`
149
150 manpages:
151         $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/man3w
152         for i in $(SUBDIRS); do (cd $$i && $(MAKE) man); done
153
154 htmlpages:
155         $(MKINSTALLDIRS) $(TOPOBJDIR)/documentation/html
156         for i in $(SUBDIRS); do (cd $$i && $(MAKE) html); done
157
158 clean::
159         $(RM) wine
160
161 distclean: clean
162         $(RM) config.* TAGS Make.rules dlls/Makedll.rules dlls/Maketest.rules programs/Makeprog.rules include/config.h
163         $(RM) -r autom4te.cache
164         $(RM) `find . \( -name Makefile -o -size 0 \) -print`
165
166 .PHONY: manpages htmlpages distclean
167
168 ### Dependencies: