Mercurial > emacs
annotate nt/makefile.w32-in @ 61470:757b6ee5eaa1
*** empty log message ***
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Mon, 11 Apr 2005 18:09:59 +0000 |
parents | d341e83af4f2 |
children | 23a17af379b1 c08afac24467 |
rev | line source |
---|---|
55092
9077e3f7cd49
Add "-*- makefile -*-" mode tag.
Juanma Barranquero <lekktu@gmail.com>
parents:
54329
diff
changeset
|
1 # -*- Makefile -*- for GNU Emacs on the Microsoft W32 API. |
56026
bb6720f21c54
Revision: miles@gnu.org--gnu-2004/emacs--cvs-trunk--0--patch-396
Miles Bader <miles@gnu.org>
parents:
55935
diff
changeset
|
2 # Copyright (c) 2000-2001, 2004 Free Software Foundation, Inc. |
41806 | 3 # |
4 # Top level makefile for building GNU Emacs on Windows NT | |
5 # | |
6 # This file is part of GNU Emacs. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
7 # |
41806 | 8 # GNU Emacs is free software; you can redistribute it and/or modify |
9 # it under the terms of the GNU General Public License as published by | |
10 # the Free Software Foundation; either version 2, or (at your option) | |
11 # any later version. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
12 # |
41806 | 13 # GNU Emacs is distributed in the hope that it will be useful, |
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 # GNU General Public License for more details. | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
17 # |
41806 | 18 # You should have received a copy of the GNU General Public License |
19 # along with GNU Emacs; see the file COPYING. If not, write to | |
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
21 # Boston, MA 02111-1307, USA. | |
22 | |
23 ALL = addpm ddeclient runemacs cmdproxy addsection preprep | |
24 | |
25 .PHONY: $(ALL) | |
26 | |
27 TRES = $(BLD)/emacs.res | |
28 | |
29 addpm: $(BLD) $(BLD)/addpm.exe | |
30 $(BLD)/addpm.exe: $(BLD)/addpm.$(O) | |
31 $(LINK) $(LINK_OUT)$@ \ | |
32 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
33 | |
34 ddeclient: $(BLD) $(BLD)/ddeclient.exe | |
35 $(BLD)/ddeclient.exe: $(BLD)/ddeclient.$(O) | |
36 $(LINK) $(LINK_OUT)$@ \ | |
37 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
38 | |
39 cmdproxy: $(BLD) $(BLD)/cmdproxy.exe | |
40 $(BLD)/cmdproxy.exe: $(BLD)/cmdproxy.$(O) | |
41 $(LINK) $(LINK_OUT)$@ \ | |
42 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
43 | |
44 addsection: $(BLD) $(BLD)/addsection.exe | |
45 $(BLD)/addsection.exe: $(BLD)/addsection.$(O) | |
46 $(LINK) $(LINK_OUT)$@ \ | |
47 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(USER32) | |
48 | |
49 preprep: $(BLD) $(BLD)/preprep.exe | |
50 $(BLD)/preprep.exe: $(BLD)/preprep.$(O) | |
51 $(LINK) $(LINK_OUT)$@ \ | |
52 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) | |
53 | |
54 # | |
55 # The resource file. NT 3.10 requires the use of cvtres; even though | |
56 # it is not necessary on later versions, it is still ok to use it. | |
57 # | |
58 $(TRES): emacs.rc | |
59 $(RC) $(RC_OUT)$(BLD)/emacs.res $(ALL_DEPS) | |
60 | |
61 runemacs: $(BLD) $(BLD)/runemacs.exe | |
62 $(BLD)/runemacs.exe: $(BLD)/runemacs.$(O) $(TRES) | |
63 $(LINK) $(LINK_OUT)$@ $(SUBSYSTEM_WINDOWS) \ | |
64 $(LINK_FLAGS) $(ALL_DEPS) $(BASE_LIBS) $(ADVAPI32) $(USER32) | |
65 | |
66 which-sh: | |
67 @echo Using $(THE_SHELL) as shell. | |
68 | |
69 # | |
70 # Build emacs | |
71 # | |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
72 all: which-sh $(BLD) $(ALL) maybe-bootstrap all-other-dirs-$(MAKETYPE) |
41806 | 73 |
74 all-other-dirs-nmake: | |
75 cd ..\lib-src | |
76 $(MAKE) $(MFLAGS) all | |
77 cd ..\src | |
78 $(MAKE) $(MFLAGS) all | |
79 cd ..\lisp | |
80 $(MAKE) $(MFLAGS) all | |
81 cd ..\leim | |
82 $(MAKE) $(MFLAGS) all | |
83 cd ..\nt | |
84 | |
85 all-other-dirs-gmake: | |
86 $(MAKE) $(MFLAGS) -C ../lib-src all | |
87 $(MAKE) $(MFLAGS) -C ../src all | |
88 $(MAKE) $(MFLAGS) -C ../lisp all | |
89 $(MAKE) $(MFLAGS) -C ../leim all | |
90 | |
91 recompile: recompile-$(MAKETYPE) | |
92 | |
93 recompile-nmake: | |
94 cd ..\lisp | |
95 $(MAKE) $(MFLAGS) recompile | |
96 cd ..\nt | |
97 | |
98 recompile-gmake: | |
99 $(MAKE) $(MFLAGS) -C ../lisp recompile | |
100 | |
101 #### Bootstrapping. | |
102 | |
103 ### This is meant for Emacs maintainers only. It first cleans the | |
104 ### lisp subdirectory, removing all compiled Lisp files. Then a | |
105 ### special emacs executable is built from Lisp sources, which is then | |
106 ### used to compile Lisp files. The last step is a "normal" make. | |
107 | |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
108 maybe-bootstrap: maybe-bootstrap-$(SHELLTYPE) |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
109 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
110 # dummy target to force other targets to be evaluated. |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
111 doit: |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
112 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
113 maybe-bootstrap-CMD: doit |
56512
d341e83af4f2
Removed the various "echo." lines from lisp\makefile.w32-in and nt\makefile.w32-in.
Ben Key <bkey1@tampabay.rr.com>
parents:
56026
diff
changeset
|
114 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
115 @if not EXIST ..\lisp\abbrev.elc echo Essential Lisp files seem to be missing. You should either |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
116 @if not EXIST ..\lisp\abbrev.elc echo do 'make bootstrap' or create 'lisp/abbrev.elc' somehow |
56512
d341e83af4f2
Removed the various "echo." lines from lisp\makefile.w32-in and nt\makefile.w32-in.
Ben Key <bkey1@tampabay.rr.com>
parents:
56026
diff
changeset
|
117 @echo . |
45811
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
118 @if not EXIST ..\lisp\abbrev.elc exit -1 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
119 |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
120 maybe-bootstrap-SH: doit |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
121 @if [ ! -f ../lisp/abbrev.elc ] ; then \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
122 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
123 echo "Essential Lisp files seem to be missing. You should either"; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
124 echo "do \`make bootstrap' or create \`lisp/abbrev.elc' somehow."; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
125 echo; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
126 exit -1; \ |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
127 fi |
a834f8a38ad4
(maybe-bootstrap, doit, maybe-bootstrap-CMD)
Jason Rumney <jasonr@gnu.org>
parents:
44495
diff
changeset
|
128 |
42026
dbb37240de5f
(bootstrap): Build addsection program before
Andrew Innes <andrewi@gnu.org>
parents:
41806
diff
changeset
|
129 bootstrap: addsection bootstrap-$(MAKETYPE) all |
41806 | 130 |
131 bootstrap-nmake: | |
132 cd ..\lisp | |
133 $(MAKE) $(MFLAGS) bootstrap-clean | |
134 cd ..\src | |
135 $(MAKE) $(MFLAGS) clean | |
136 cd ..\lib-src | |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
137 $(MAKE) $(MFLAGS) clean |
41806 | 138 cd ..\src |
139 $(MAKE) $(MFLAGS) bootstrap | |
140 $(MAKE) $(MFLAGS) bootstrap-clean | |
141 cd ..\lisp | |
55935
7d801d9fee5a
(bootstrap-nmake): When nmake'ing bootstrap on the lisp/ directory, set SHELL to
Juanma Barranquero <lekktu@gmail.com>
parents:
55337
diff
changeset
|
142 $(MAKE) $(MFLAGS) SHELL=$(SHELLTYPE) bootstrap |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
143 cd ..\lib-src |
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
144 $(MAKE) $(MFLAGS) DOC |
41806 | 145 cd ..\nt |
146 | |
147 bootstrap-gmake: | |
148 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean | |
149 $(MAKE) $(MFLAGS) -C ../src clean | |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
150 $(MAKE) $(MFLAGS) -C ../lib-src clean |
41806 | 151 $(MAKE) $(MFLAGS) -C ../src bootstrap |
152 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean | |
153 $(MAKE) $(MFLAGS) -C ../lisp bootstrap | |
44495
5040cc502801
(bootstrap-nmake, bootstrap-gmake): Make DOC after compiling .el files.
Juanma Barranquero <lekktu@gmail.com>
parents:
42026
diff
changeset
|
154 $(MAKE) $(MFLAGS) -C ../lib-src DOC |
41806 | 155 |
156 bootstrap-clean: bootstrap-clean-$(MAKETYPE) | |
157 | |
158 bootstrap-clean-nmake: | |
159 cd ..\src | |
160 $(MAKE) $(MFLAGS) bootstrap-clean | |
161 cd ..\lisp | |
162 $(MAKE) $(MFLAGS) bootstrap-clean | |
163 | |
164 bootstrap-clean-gmake: | |
165 $(MAKE) $(MFLAGS) -C ../src bootstrap-clean | |
166 $(MAKE) $(MFLAGS) -C ../lisp bootstrap-clean | |
167 | |
168 $(INSTALL_DIR): | |
169 - mkdir "$(INSTALL_DIR)" | |
170 | |
171 $(INSTALL_DIR)/bin: $(INSTALL_DIR) | |
172 - mkdir "$(INSTALL_DIR)/bin" | |
173 | |
174 # | |
175 # Build and install emacs in INSTALL_DIR | |
176 # | |
177 install: all $(INSTALL_DIR)/bin install-other-dirs-$(MAKETYPE) | |
178 - $(CP) $(BLD)/addpm.exe $(INSTALL_DIR)/bin | |
179 - $(CP) $(BLD)/ddeclient.exe $(INSTALL_DIR)/bin | |
180 - $(CP) $(BLD)/cmdproxy.exe $(INSTALL_DIR)/bin | |
181 - $(CP) $(BLD)/runemacs.exe $(INSTALL_DIR)/bin | |
182 - "$(INSTALL_DIR)/bin/addpm" /q | |
183 - $(DEL) ../same-dir.tst | |
184 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
185 echo SameDirTest > "$(INSTALL_DIR)/same-dir.tst" | |
186 - mkdir "$(INSTALL_DIR)/etc" | |
187 - mkdir "$(INSTALL_DIR)/info" | |
188 - mkdir "$(INSTALL_DIR)/lock" | |
189 - mkdir "$(INSTALL_DIR)/data" | |
190 - mkdir "$(INSTALL_DIR)/site-lisp" | |
191 - mkdir "$(INSTALL_DIR)/etc/icons" | |
192 $(IFNOTSAMEDIR) $(CP) ../site-lisp/subdirs.el $(INSTALL_DIR)/site-lisp $(ENDIF) | |
193 $(IFNOTSAMEDIR) $(CP_DIR) ../etc $(INSTALL_DIR) $(ENDIF) | |
194 - $(CP_DIR) icons $(INSTALL_DIR)/etc | |
195 $(IFNOTSAMEDIR) $(CP_DIR) ../info $(INSTALL_DIR) $(ENDIF) | |
196 - $(DEL) ../same-dir.tst | |
197 - $(DEL) $(INSTALL_DIR)/same-dir.tst | |
198 | |
199 install-other-dirs-nmake: | |
200 cd ..\lib-src | |
201 $(MAKE) $(MFLAGS) install | |
202 cd ..\src | |
203 $(MAKE) $(MFLAGS) install | |
204 cd ..\lisp | |
205 $(MAKE) $(MFLAGS) install | |
206 cd ..\leim | |
207 $(MAKE) $(MFLAGS) install | |
208 cd ..\nt | |
209 | |
210 install-other-dirs-gmake: | |
211 $(MAKE) $(MFLAGS) -C ../lib-src install | |
212 $(MAKE) $(MFLAGS) -C ../src install | |
213 $(MAKE) $(MFLAGS) -C ../lisp install | |
214 $(MAKE) $(MFLAGS) -C ../leim install | |
215 | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
216 force-info: |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
217 # Note that man/makefile knows how to |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
218 # put the info files in $(infodir), |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
219 # so we can do ok running make in the build dir. |
55337
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
220 info: force-info info-$(MAKETYPE) |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
221 |
55337
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
222 info-nmake: |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
223 cd ..\man |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
224 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
225 cd ..\lispref |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
226 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
227 cd ..\lispintro |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
228 $(MAKE) $(MFLAGS) info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
229 |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
230 info-gmake: |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
231 $(MAKE) $(MFLAGS) -C ../man info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
232 $(MAKE) $(MFLAGS) -C ../lispref info |
61fda07994e4
(info-gmake, info-nmake): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
55092
diff
changeset
|
233 $(MAKE) $(MFLAGS) -C ../lispintro info |
41806 | 234 # |
235 # Maintenance | |
49600
23a1cea22d13
Trailing whitespace deleted.
Juanma Barranquero <lekktu@gmail.com>
parents:
45811
diff
changeset
|
236 # |
41806 | 237 clean: clean-other-dirs-$(MAKETYPE) |
238 - $(DEL) *~ $(COMPILER_TEMP_FILES) | |
239 - $(DEL_TREE) $(OBJDIR) | |
240 - $(DEL) ../etc/DOC ../etc/DOC-X | |
241 | |
242 clean-other-dirs-nmake: | |
243 cd ..\lib-src | |
244 $(MAKE) $(MFLAGS) clean | |
245 cd ..\src | |
246 $(MAKE) $(MFLAGS) clean | |
247 cd ..\lisp | |
248 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
249 cd ..\lispintro |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
250 $(MAKE) $(MFLAGS) clean |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
251 cd ..\lispref |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
252 $(MAKE) $(MFLAGS) clean |
41806 | 253 cd ..\leim |
254 $(MAKE) $(MFLAGS) clean | |
52424
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
255 cd ..\man |
700abb70b17f
(force-info, info): New targets.
Jason Rumney <jasonr@gnu.org>
parents:
52414
diff
changeset
|
256 $(MAKE) $(MFLAGS) clean |
41806 | 257 cd ..\nt |
258 | |
259 clean-other-dirs-gmake: | |
260 $(MAKE) $(MFLAGS) -C ../lib-src clean | |
261 $(MAKE) $(MFLAGS) -C ../src clean | |
262 $(MAKE) $(MFLAGS) -C ../lisp clean | |
263 $(MAKE) $(MFLAGS) -C ../leim clean | |
264 | |
265 cleanall-other-dirs-nmake: | |
266 cd ..\lib-src | |
267 $(MAKE) $(MFLAGS) cleanall | |
268 cd ..\src | |
269 $(MAKE) $(MFLAGS) cleanall | |
270 cd ..\nt | |
271 | |
272 cleanall-other-dirs-gmake: | |
273 $(MAKE) $(MFLAGS) -C ../lib-src cleanall | |
274 $(MAKE) $(MFLAGS) -C ../src cleanall | |
275 | |
276 cleanall: clean cleanall-other-dirs-$(MAKETYPE) | |
277 - $(DEL_TREE) obj | |
278 - $(DEL_TREE) obj-spd | |
279 - $(DEL_TREE) oo | |
280 - $(DEL_TREE) oo-spd | |
281 | |
282 realclean: cleanall | |
283 - $(DEL_TREE) ../bin |