274
|
1 # Makefile for Microsoft NMAKE
|
|
2 # Copyright (C) 1995 Board of Trustees, University of Illinois.
|
|
3 # Copyright (C) 1995, 1996 Ben Wing.
|
|
4 # Copyright (C) 1995 Sun Microsystems, Inc.
|
|
5 # Copyright (C) 1998 Free Software Foundation, Inc.
|
|
6 #
|
|
7 # This file is part of XEmacs.
|
|
8 #
|
|
9 # XEmacs is free software; you can redistribute it and/or modify it
|
|
10 # under the terms of the GNU General Public License as published by the
|
|
11 # Free Software Foundation; either version 2, or (at your option) any
|
|
12 # later version.
|
|
13 #
|
|
14 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
15 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
16 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
17 # for more details.
|
|
18 #
|
|
19 # You should have received a copy of the GNU General Public License
|
|
20 # along with XEmacs; see the file COPYING. If not, write to
|
|
21 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
22 # Boston, MA 02111-1307, USA.
|
|
23 #
|
|
24 # Synched up with: Not in FSF.
|
|
25 #
|
|
26
|
371
|
27 XEMACS=..
|
183
|
28 LISP=$(XEMACS)\lisp
|
304
|
29 NT=$(XEMACS)\nt
|
274
|
30
|
298
|
31 # Program name and version
|
|
32
|
|
33 !include "..\version.sh"
|
|
34
|
|
35 !if !defined(INFODOCK)
|
|
36 INFODOCK=0
|
|
37 !endif
|
|
38
|
|
39 !if $(INFODOCK)
|
|
40 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
|
|
41 PROGRAM_DEFINES=-DINFODOCK \
|
|
42 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
|
43 -DPATH_PROGNAME=\"infodock\" \
|
|
44 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
|
|
45 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
|
|
46 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
|
|
47 !else
|
371
|
48 !if "$(emacs_beta_version)" != ""
|
298
|
49 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)-b$(emacs_beta_version)
|
|
50 !else
|
371
|
51 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
|
298
|
52 !endif
|
|
53 PROGRAM_DEFINES= \
|
|
54 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
|
55 -DPATH_PROGNAME=\"xemacs\"
|
|
56 !endif
|
|
57
|
274
|
58 #
|
|
59 # Command line options defaults
|
|
60 #
|
298
|
61 !if !defined(INSTALL_DIR)
|
|
62 ! if $(INFODOCK)
|
|
63 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
|
|
64 ! else
|
|
65 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
|
|
66 ! endif
|
|
67 !endif
|
384
|
68 !if !defined(PACKAGE_PATH)
|
|
69 ! if !defined(PACKAGE_PREFIX)
|
|
70 PACKAGE_PREFIX=c:\Program Files\XEmacs
|
|
71 ! endif
|
|
72 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
274
|
73 !endif
|
384
|
74 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
|
274
|
75 !if !defined(HAVE_MSW)
|
286
|
76 HAVE_MSW=1
|
274
|
77 !endif
|
|
78 !if !defined(HAVE_X)
|
213
|
79 HAVE_X=0
|
274
|
80 !endif
|
|
81 !if !defined(HAVE_MULE)
|
213
|
82 HAVE_MULE=0
|
274
|
83 !endif
|
276
|
84 !if !defined(HAVE_XPM)
|
|
85 HAVE_XPM=0
|
|
86 !endif
|
373
|
87 !if !defined(HAVE_PNG)
|
|
88 HAVE_PNG=0
|
|
89 !endif
|
|
90 !if !defined(HAVE_TIFF)
|
|
91 HAVE_TIFF=0
|
|
92 !endif
|
|
93 !if !defined(HAVE_JPEG)
|
|
94 HAVE_JPEG=0
|
|
95 !endif
|
|
96 !if !defined(HAVE_GIF)
|
|
97 HAVE_GIF=1
|
|
98 !endif
|
276
|
99 !if !defined(HAVE_TOOLBARS)
|
|
100 HAVE_TOOLBARS=$(HAVE_XPM)
|
|
101 !endif
|
286
|
102 !if !defined(HAVE_DIALOGS)
|
|
103 HAVE_DIALOGS=1
|
|
104 !endif
|
274
|
105 !if !defined(HAVE_MSW_C_DIRED)
|
|
106 HAVE_MSW_C_DIRED=1
|
|
107 !endif
|
298
|
108 !if !defined(HAVE_NATIVE_SOUND)
|
|
109 HAVE_NATIVE_SOUND=1
|
|
110 !endif
|
274
|
111 !if !defined(DEBUG_XEMACS)
|
298
|
112 DEBUG_XEMACS=0
|
274
|
113 !endif
|
|
114 !if !defined(USE_UNION_TYPE)
|
|
115 USE_UNION_TYPE=0
|
|
116 !endif
|
|
117 !if !defined(USE_MINIMAL_TAGBITS)
|
|
118 USE_MINIMAL_TAGBITS=0
|
|
119 !endif
|
|
120 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
121 USE_INDEXED_LRECORD_IMPLEMENTATION=0
|
|
122 !endif
|
298
|
123
|
|
124 #
|
|
125 # System configuration
|
|
126 #
|
|
127 !if !defined(PROCESSOR_ARCHITECTURE) && "$(OS)" != "Windows_NT"
|
|
128 EMACS_CONFIGURATION=i386-pc-win32
|
|
129 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
|
130 EMACS_CONFIGURATION=i386-pc-win32
|
|
131 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
|
|
132 EMACS_CONFIGURATION=mips-pc-win32
|
|
133 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
|
|
134 EMACS_CONFIGURATION=alpha-pc-win32
|
|
135 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
|
|
136 EMACS_CONFIGURATION=ppc-pc-win32
|
|
137 !else
|
|
138 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
|
288
|
139 !endif
|
213
|
140
|
274
|
141 #
|
|
142 # Conf error checks
|
|
143 #
|
278
|
144 CONFIG_ERROR=0
|
288
|
145 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
|
|
146 !message Cannot build InfoDock without InfoDock sources
|
|
147 CONFIG_ERROR=1
|
|
148 !endif
|
274
|
149 !if !$(HAVE_MSW) && !$(HAVE_X)
|
278
|
150 !message Please specify at least one HAVE_MSW=1 and/or HAVE_X=1
|
|
151 CONFIG_ERROR=1
|
274
|
152 !endif
|
|
153 !if $(HAVE_X) && !defined(X11_DIR)
|
278
|
154 !message Please specify root directory for your X11 installation: X11_DIR=path
|
|
155 CONFIG_ERROR=1
|
|
156 !endif
|
|
157 !if $(HAVE_X) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
|
|
158 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
|
|
159 CONFIG_ERROR=1
|
274
|
160 !endif
|
276
|
161 !if $(HAVE_MSW) && $(HAVE_XPM) && !defined(XPM_DIR)
|
278
|
162 !message Please specify root directory for your XPM installation: XPM_DIR=path
|
|
163 CONFIG_ERROR=1
|
|
164 !endif
|
294
|
165 !if $(HAVE_MSW) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
|
|
166 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
|
278
|
167 CONFIG_ERROR=1
|
276
|
168 !endif
|
373
|
169 !if $(HAVE_MSW) && $(HAVE_PNG) && !defined(PNG_DIR)
|
|
170 !message Please specify root directory for your PNG installation: PNG_DIR=path
|
|
171 CONFIG_ERROR=1
|
|
172 !endif
|
|
173 !if $(HAVE_MSW) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
|
|
174 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
|
|
175 CONFIG_ERROR=1
|
|
176 !endif
|
|
177 !if $(HAVE_MSW) && $(HAVE_PNG) && !defined(ZLIB_DIR)
|
|
178 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
|
|
179 CONFIG_ERROR=1
|
|
180 !endif
|
|
181 !if $(HAVE_MSW) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
|
|
182 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
|
|
183 CONFIG_ERROR=1
|
|
184 !endif
|
|
185 !if $(HAVE_MSW) && $(HAVE_TIFF) && !defined(TIFF_DIR)
|
|
186 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
|
|
187 CONFIG_ERROR=1
|
|
188 !endif
|
|
189 !if $(HAVE_MSW) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
|
|
190 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
191 CONFIG_ERROR=1
|
|
192 !endif
|
|
193 !if $(HAVE_MSW) && $(HAVE_JPEG) && !defined(JPEG_DIR)
|
|
194 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
|
|
195 CONFIG_ERROR=1
|
|
196 !endif
|
|
197 !if $(HAVE_MSW) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
|
|
198 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
|
|
199 CONFIG_ERROR=1
|
|
200 !endif
|
276
|
201 !if $(HAVE_MSW) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
|
|
202 !error Toolbars require XPM support
|
278
|
203 CONFIG_ERROR=1
|
|
204 !endif
|
|
205 !if $(CONFIG_ERROR)
|
|
206 !error Configuration error(s) found
|
276
|
207 !endif
|
274
|
208
|
|
209 #
|
|
210 # Handle GUNG_HO
|
|
211 #
|
|
212 !if defined(GUNG_HO)
|
|
213 USE_MINIMAL_TAGBITS=$(GUNG_HO)
|
|
214 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
|
|
215 !endif
|
219
|
216
|
274
|
217 #
|
|
218 # Small configuration report
|
|
219 #
|
|
220 !if !defined(CONF_REPORT_ALREADY_PRINTED)
|
|
221 !if [set CONF_REPORT_ALREADY_PRINTED=1]
|
|
222 !endif
|
|
223 !message ------------------------------------------------
|
382
|
224 !message XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename) configured for "$(EMACS_CONFIGURATION)".
|
298
|
225 !message
|
|
226 !message Installation directory is "$(INSTALL_DIR)".
|
384
|
227 !message Package path is "$(PACKAGE_PATH)".
|
298
|
228 !message
|
288
|
229 !if $(INFODOCK)
|
|
230 !message Building InfoDock.
|
|
231 !endif
|
274
|
232 !if $(HAVE_MSW)
|
|
233 !message Compiling in support for native GUI.
|
|
234 !endif
|
|
235 !if $(HAVE_X)
|
|
236 !message Compiling in support for X-Windows.
|
|
237 !endif
|
|
238 !if $(HAVE_MULE)
|
|
239 !message Compiling in MULE.
|
|
240 !endif
|
276
|
241 !if $(HAVE_XPM)
|
|
242 !message Compiling in support for XPM images.
|
|
243 !endif
|
373
|
244 !if $(HAVE_GIF)
|
|
245 !message Compiling in support for GIF images.
|
|
246 !endif
|
|
247 !if $(HAVE_PNG)
|
|
248 !message Compiling in support for PNG images.
|
|
249 !endif
|
|
250 !if $(HAVE_TIFF)
|
|
251 !message Compiling in support for TIFF images.
|
|
252 !endif
|
|
253 !if $(HAVE_JPEG)
|
|
254 !message Compiling in support for JPEG images.
|
|
255 !endif
|
276
|
256 !if $(HAVE_TOOLBARS)
|
|
257 !message Compiling in support for toolbars.
|
|
258 !endif
|
286
|
259 !if $(HAVE_DIALOGS)
|
|
260 !message Compiling in support for dialogs.
|
|
261 !endif
|
298
|
262 !if $(HAVE_NATIVE_SOUND)
|
|
263 !message Compiling in support for native sounds.
|
|
264 !endif
|
274
|
265 !if $(HAVE_MSW_C_DIRED)
|
298
|
266 # Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs to use C
|
263
|
267 # primitives to significantly speed up dired, at the expense of an
|
|
268 # additional ~4KB of code.
|
274
|
269 !message Compiling in fast dired implementation.
|
|
270 !endif
|
|
271 !if $(USE_MINIMAL_TAGBITS)
|
|
272 !message Using minimal tagbits.
|
|
273 !endif
|
|
274 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
275 !message Using indexed lrecord implementation.
|
|
276 !endif
|
|
277 !if $(USE_UNION_TYPE)
|
|
278 !message Using union type for Lisp object storage.
|
|
279 !endif
|
|
280 !if $(DEBUG_XEMACS)
|
|
281 !message Compiling in extra debug checks. XEmacs will be slow!
|
|
282 !endif
|
|
283 !message ------------------------------------------------
|
|
284 !message
|
|
285 !endif # !defined(CONF_REPORT_ALREADY_PRINTED)
|
263
|
286
|
278
|
287 #
|
|
288 # Compiler command echo control. Define VERBOSECC=1 to get vebose compilation.
|
|
289 #
|
|
290 !if !defined(VERBOSECC)
|
|
291 VERBOSECC=0
|
|
292 !endif
|
|
293 !if $(VERBOSECC)
|
288
|
294 CCV=$(CC) -nologo
|
278
|
295 !else
|
288
|
296 CCV=@$(CC) -nologo
|
278
|
297 !endif
|
|
298
|
219
|
299 !if $(DEBUG_XEMACS)
|
183
|
300 OPT=-Od -Zi
|
219
|
301 !else
|
|
302 OPT=-O2 -G5 -Zi
|
|
303 !endif
|
183
|
304
|
231
|
305 WARN_CPP_FLAGS = -W3
|
|
306
|
213
|
307 !if $(HAVE_X)
|
|
308 X_DEFINES=-DHAVE_X_WINDOWS
|
274
|
309 X_INCLUDES=-I$(X11_DIR)\include
|
|
310 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
|
213
|
311 !endif
|
|
312
|
|
313 !if $(HAVE_MSW)
|
231
|
314 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
|
276
|
315 MSW_INCLUDES=
|
|
316 MSW_LIBS=
|
263
|
317 !if $(HAVE_MSW_C_DIRED)
|
276
|
318 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
|
263
|
319 MSW_C_DIRED_SRC=$(XEMACS)\src\dired-msw.c
|
|
320 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
|
|
321 !endif
|
276
|
322 !if $(HAVE_XPM)
|
|
323 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
|
278
|
324 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
|
|
325 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
|
276
|
326 !endif
|
373
|
327 !if $(HAVE_GIF)
|
|
328 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
|
|
329 MSW_GIF_SRC=$(XEMACS)\src\dgif_lib.c $(XEMACS)\src\gif_io.c
|
|
330 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
|
|
331 !endif
|
|
332 !if $(HAVE_PNG)
|
|
333 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
|
|
334 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
|
|
335 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
|
|
336 !endif
|
|
337 !if $(HAVE_TIFF)
|
|
338 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
|
|
339 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
|
|
340 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
341 !endif
|
|
342 !if $(HAVE_JPEG)
|
|
343 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
|
|
344 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
|
|
345 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
|
|
346 !endif
|
276
|
347 !if $(HAVE_TOOLBARS)
|
|
348 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
|
|
349 MSW_TOOLBAR_SRC=$(XEMACS)\src\toolbar.c $(XEMACS)\src\toolbar-msw.c
|
|
350 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
|
|
351 MSW_LIBS=$(MSW_LIBS) comctl32.lib
|
|
352 !endif
|
286
|
353 !if $(HAVE_DIALOGS)
|
|
354 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
|
|
355 MSW_DIALOG_SRC=$(XEMACS)\src\dialog.c $(XEMACS)\src\dialog-msw.c
|
|
356 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
|
|
357 !endif
|
298
|
358 !if $(HAVE_NATIVE_SOUND)
|
|
359 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
|
|
360 !endif
|
213
|
361 !endif
|
|
362
|
|
363 !if $(HAVE_MULE)
|
|
364 MULE_DEFINES=-DMULE
|
|
365 !endif
|
|
366
|
219
|
367 !if $(DEBUG_XEMACS)
|
282
|
368 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
|
223
|
369 DEBUG_FLAGS= -debugtype:both -debug:full
|
219
|
370 !endif
|
|
371
|
282
|
372 !if $(USE_MINIMAL_TAGBITS)
|
|
373 TAGBITS_DEFINES=-DUSE_MINIMAL_TAGBITS
|
|
374 !endif
|
|
375 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
376 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
|
|
377 !endif
|
|
378 !if $(USE_UNION_TYPE)
|
|
379 UNION_DEFINES=-DUSE_UNION_TYPE
|
|
380 !endif
|
|
381
|
288
|
382 # Hard-coded paths
|
|
383
|
|
384 !if $(INFODOCK)
|
|
385 PATH_PREFIX=../..
|
|
386 !else
|
|
387 PATH_PREFIX=..
|
|
388 !endif
|
|
389
|
|
390 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
|
|
391
|
118
|
392 # Generic variables
|
|
393
|
278
|
394 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib
|
213
|
395
|
276
|
396 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
|
282
|
397 $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
|
265
|
398 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
|
288
|
399 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
|
118
|
400
|
|
401 OUTDIR=obj
|
|
402
|
382
|
403 #
|
|
404 # Creating simplified versions of Installation and Installation.el
|
|
405 #
|
|
406 # Some values cannot be written on the same line with
|
|
407 # their key, since they cannot be put inside an echo command.
|
|
408 # Macro substitution (:"=\", :\=\\) can be performed on values in order
|
|
409 # to create a legal string in LISP for Installation.el.
|
|
410 #
|
|
411 !if [echo OS: $(OS)>Installation] ||\
|
|
412 [echo XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for ^`$(EMACS_CONFIGURATION)^'.>>Installation] ||\
|
|
413 [echo Where should the build process find the source code?>>Installation] ||\
|
|
414 [echo $(MAKEDIR:\=\\)>>Installation]
|
|
415 !endif
|
|
416 # Compiler Information
|
|
417 !if defined(CCV) &&\
|
|
418 [echo What compiler should XEmacs be built with?>>Installation] &&\
|
|
419 [echo $(CCV)>>Installation]
|
|
420 !endif
|
|
421 # Window System Information
|
|
422 !if [echo What window system should XEmacs use?>>Installation]
|
|
423 !endif
|
|
424 !if (defined (HAVE_X) && $(HAVE_X) == 1)
|
|
425 !if [echo X11>>Installation]
|
|
426 !endif
|
|
427 !endif
|
|
428 !if (defined (HAVE_MSW) && $(HAVE_MSW) == 1)
|
|
429 !if [echo MS Windows>>Installation]
|
|
430 !endif
|
|
431 !endif
|
|
432 !if (!defined (HAVE_MSW) && !defined (HAVE_X))
|
|
433 !if [echo Please specify at least one HAVE_MSW^=1 and^/or HAVE_X^=1>>Installation]
|
|
434 !endif
|
|
435 !endif
|
|
436 # Creation of Installation.el
|
|
437 !if [type Installation] ||\
|
|
438 [echo (setq Installation-string ^">Installation.el] ||\
|
|
439 [type Installation >>Installation.el] ||\
|
|
440 [echo ^")>>Installation.el]
|
|
441 !endif
|
|
442
|
|
443
|
118
|
444 #------------------------------------------------------------------------------
|
|
445
|
213
|
446 default: $(OUTDIR)\nul all
|
118
|
447
|
213
|
448 $(OUTDIR)\nul:
|
118
|
449 -@mkdir $(OUTDIR)
|
|
450
|
183
|
451 XEMACS_INCLUDES=\
|
|
452 $(XEMACS)\src\config.h \
|
|
453 $(XEMACS)\src\Emacs.ad.h \
|
223
|
454 $(XEMACS)\src\paths.h \
|
|
455 $(XEMACS)\src\puresize-adjust.h
|
183
|
456
|
219
|
457 $(XEMACS)\src\config.h: config.h
|
278
|
458 copy config.h $(XEMACS)\src
|
219
|
459
|
|
460 $(XEMACS)\src\Emacs.ad.h: Emacs.ad.h
|
278
|
461 copy Emacs.ad.h $(XEMACS)\src
|
219
|
462
|
|
463 $(XEMACS)\src\paths.h: paths.h
|
278
|
464 copy paths.h $(XEMACS)\src
|
183
|
465
|
223
|
466 $(XEMACS)\src\puresize-adjust.h: puresize-adjust.h
|
278
|
467 copy puresize-adjust.h $(XEMACS)\src
|
223
|
468
|
183
|
469 #------------------------------------------------------------------------------
|
|
470
|
288
|
471 # lib-src programs
|
|
472
|
|
473 LIB_SRC = $(XEMACS)\lib-src
|
|
474 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32 -DWINDOWSNT
|
|
475
|
382
|
476 #
|
|
477 # Creating config.values to be used by config.el
|
|
478 #
|
|
479 CONFIG_VALUES = $(LIB_SRC)\config.values
|
|
480 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
|
|
481 !endif
|
|
482 # MAKEDIR has to be made into a string.
|
|
483 !if [echo blddir>>$(CONFIG_VALUES) && echo ^"$(MAKEDIR:\=\\)\\..^">>$(CONFIG_VALUES)]
|
|
484 !endif
|
|
485 !if [echo CC>>$(CONFIG_VALUES) && echo ^"$(CC:\=\\)^">>$(CONFIG_VALUES)]
|
|
486 !endif
|
|
487 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo ^"$(CFLAGS:\=\\)^">>$(CONFIG_VALUES)]
|
|
488 !endif
|
|
489 !if [echo CPP>>$(CONFIG_VALUES) && echo ^"$(CPP:\=\\)^">>$(CONFIG_VALUES)]
|
|
490 !endif
|
|
491 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo ^"$(CPPFLAGS:\=\\)^">>$(CONFIG_VALUES)]
|
|
492 !endif
|
|
493 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo ^"$(MAKEDIR:\=\\)\\$(LISP:\=\\)^">>$(CONFIG_VALUES)]
|
|
494 !endif
|
|
495 # PATH_PACKAGEPATH is already a quoted string.
|
|
496 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
|
|
497 !endif
|
|
498
|
288
|
499 # Inferred rule
|
|
500 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
|
|
501 @cd $(LIB_SRC)
|
|
502 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) -O2 -W3 -Fe$@ $**
|
304
|
503 @cd $(NT)
|
288
|
504
|
|
505 # Individual dependencies
|
|
506 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
|
|
507 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
|
382
|
508 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
|
384
|
509 @cd $(LIB_SRC)
|
|
510 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) -O2 -W3 -Fe$@ $** wsock32.lib
|
|
511 @cd $(NT)
|
288
|
512
|
|
513 LIB_SRC_TOOLS = \
|
|
514 $(LIB_SRC)/make-docfile.exe \
|
|
515 $(LIB_SRC)/hexl.exe \
|
|
516 $(LIB_SRC)/movemail.exe \
|
|
517 $(LIB_SRC)/mmencode.exe \
|
|
518 $(LIB_SRC)/sorted-doc.exe \
|
|
519 $(LIB_SRC)/wakeup.exe \
|
|
520 $(LIB_SRC)/etags.exe
|
|
521
|
298
|
522 #------------------------------------------------------------------------------
|
|
523
|
|
524 # runemacs proglet
|
|
525
|
|
526 RUNEMACS = $(XEMACS)\src\runemacs.exe
|
|
527
|
|
528 $(RUNEMACS): $(NT)\runemacs.c $(NT)\xemacs.res
|
|
529 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc -O2 -W3 -Fe$@ $** kernel32.lib user32.lib
|
118
|
530
|
288
|
531 #------------------------------------------------------------------------------
|
|
532
|
298
|
533 # LASTFILE Library
|
|
534
|
183
|
535 LASTFILE=$(OUTDIR)\lastfile.lib
|
|
536 LASTFILE_SRC=$(XEMACS)\src
|
288
|
537 LASTFILE_FLAGS=$(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) -Fo$@ -c
|
118
|
538 LASTFILE_OBJS= \
|
183
|
539 $(OUTDIR)\lastfile.obj
|
179
|
540
|
215
|
541 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
183
|
542 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
118
|
543
|
183
|
544 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
278
|
545 $(CCV) $(LASTFILE_FLAGS) $**
|
118
|
546
|
|
547 #------------------------------------------------------------------------------
|
|
548
|
213
|
549 !if $(HAVE_X)
|
|
550
|
118
|
551 # LWLIB Library
|
|
552
|
183
|
553 LWLIB=$(OUTDIR)\lwlib.lib
|
|
554 LWLIB_SRC=$(XEMACS)\lwlib
|
288
|
555 LWLIB_FLAGS=$(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) $(DEFINES) \
|
213
|
556 -DNEED_ATHENA -DNEED_LUCID \
|
|
557 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
|
|
558 -Fo$@ -c
|
118
|
559 LWLIB_OBJS= \
|
213
|
560 $(OUTDIR)\lwlib-config.obj \
|
|
561 $(OUTDIR)\lwlib-utils.obj \
|
|
562 $(OUTDIR)\lwlib-Xaw.obj \
|
|
563 $(OUTDIR)\lwlib-Xlw.obj \
|
|
564 $(OUTDIR)\lwlib.obj \
|
|
565 $(OUTDIR)\xlwmenu.obj \
|
|
566 $(OUTDIR)\xlwscrollbar.obj
|
118
|
567
|
215
|
568 $(LWLIB): $(LWLIB_OBJS)
|
223
|
569 link.exe -lib -nologo $(DEBUG_FLAGS) -out:$@ $(LWLIB_OBJS)
|
118
|
570
|
183
|
571 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRC)\lwlib-config.c
|
278
|
572 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
573
|
183
|
574 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRC)\lwlib-utils.c
|
278
|
575 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
576
|
183
|
577 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRC)\lwlib-Xaw.c
|
278
|
578 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
579
|
183
|
580 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRC)\lwlib-Xlw.c
|
278
|
581 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
582
|
183
|
583 $(OUTDIR)\lwlib.obj: $(LWLIB_SRC)\lwlib.c
|
278
|
584 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
585
|
183
|
586 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRC)\xlwmenu.c
|
278
|
587 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
588
|
183
|
589 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRC)\xlwscrollbar.c
|
278
|
590 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
591
|
213
|
592 !endif
|
118
|
593 #------------------------------------------------------------------------------
|
|
594
|
183
|
595 DOC=$(LIB_SRC)\DOC
|
195
|
596 DOC_SRC1=\
|
183
|
597 $(XEMACS)\src\abbrev.c \
|
|
598 $(XEMACS)\src\alloc.c \
|
|
599 $(XEMACS)\src\alloca.c \
|
|
600 $(XEMACS)\src\blocktype.c \
|
|
601 $(XEMACS)\src\buffer.c \
|
|
602 $(XEMACS)\src\bytecode.c \
|
|
603 $(XEMACS)\src\callint.c \
|
|
604 $(XEMACS)\src\callproc.c \
|
|
605 $(XEMACS)\src\casefiddle.c \
|
|
606 $(XEMACS)\src\casetab.c \
|
|
607 $(XEMACS)\src\chartab.c \
|
|
608 $(XEMACS)\src\cmdloop.c \
|
|
609 $(XEMACS)\src\cmds.c \
|
|
610 $(XEMACS)\src\console-stream.c \
|
|
611 $(XEMACS)\src\console.c \
|
|
612 $(XEMACS)\src\data.c \
|
267
|
613 $(XEMACS)\src\device.c
|
195
|
614 DOC_SRC2=\
|
183
|
615 $(XEMACS)\src\dired.c \
|
|
616 $(XEMACS)\src\doc.c \
|
|
617 $(XEMACS)\src\doprnt.c \
|
284
|
618 $(XEMACS)\src\dragdrop.c \
|
183
|
619 $(XEMACS)\src\dynarr.c \
|
|
620 $(XEMACS)\src\editfns.c \
|
|
621 $(XEMACS)\src\elhash.c \
|
|
622 $(XEMACS)\src\emacs.c \
|
|
623 $(XEMACS)\src\eval.c \
|
|
624 $(XEMACS)\src\event-stream.c \
|
|
625 $(XEMACS)\src\events.c \
|
|
626 $(XEMACS)\src\extents.c \
|
|
627 $(XEMACS)\src\faces.c \
|
267
|
628 $(XEMACS)\src\file-coding.c \
|
183
|
629 $(XEMACS)\src\fileio.c \
|
|
630 $(XEMACS)\src\filemode.c \
|
|
631 $(XEMACS)\src\floatfns.c \
|
213
|
632 $(XEMACS)\src\fns.c
|
|
633 DOC_SRC3=\
|
183
|
634 $(XEMACS)\src\font-lock.c \
|
|
635 $(XEMACS)\src\frame.c \
|
|
636 $(XEMACS)\src\free-hook.c \
|
|
637 $(XEMACS)\src\general.c \
|
|
638 $(XEMACS)\src\glyphs.c \
|
280
|
639 $(XEMACS)\src\glyphs-eimage.c \
|
183
|
640 $(XEMACS)\src\gmalloc.c \
|
213
|
641 $(XEMACS)\src\gui.c \
|
183
|
642 $(XEMACS)\src\hash.c \
|
269
|
643 $(XEMACS)\src\imgproc.c \
|
183
|
644 $(XEMACS)\src\indent.c \
|
|
645 $(XEMACS)\src\insdel.c \
|
|
646 $(XEMACS)\src\intl.c \
|
|
647 $(XEMACS)\src\keymap.c \
|
213
|
648 $(XEMACS)\src\line-number.c \
|
183
|
649 $(XEMACS)\src\lread.c \
|
|
650 $(XEMACS)\src\lstream.c \
|
|
651 $(XEMACS)\src\macros.c \
|
213
|
652 $(XEMACS)\src\marker.c
|
|
653 DOC_SRC4=\
|
183
|
654 $(XEMACS)\src\md5.c \
|
231
|
655 $(XEMACS)\src\menubar.c \
|
183
|
656 $(XEMACS)\src\minibuf.c \
|
|
657 $(XEMACS)\src\nt.c \
|
|
658 $(XEMACS)\src\ntheap.c \
|
298
|
659 $(XEMACS)\src\ntplay.c \
|
183
|
660 $(XEMACS)\src\ntproc.c \
|
|
661 $(XEMACS)\src\objects.c \
|
213
|
662 $(XEMACS)\src\opaque.c \
|
183
|
663 $(XEMACS)\src\print.c \
|
|
664 $(XEMACS)\src\process.c \
|
274
|
665 $(XEMACS)\src\process-nt.c \
|
223
|
666 $(XEMACS)\src\profile.c \
|
183
|
667 $(XEMACS)\src\rangetab.c \
|
|
668 $(XEMACS)\src\realpath.c \
|
|
669 $(XEMACS)\src\redisplay-output.c \
|
|
670 $(XEMACS)\src\redisplay.c \
|
|
671 $(XEMACS)\src\regex.c \
|
|
672 $(XEMACS)\src\scrollbar.c \
|
225
|
673 $(XEMACS)\src\scrollbar-msw.c \
|
183
|
674 $(XEMACS)\src\search.c \
|
|
675 $(XEMACS)\src\signal.c \
|
213
|
676 $(XEMACS)\src\sound.c
|
|
677 DOC_SRC5=\
|
183
|
678 $(XEMACS)\src\specifier.c \
|
|
679 $(XEMACS)\src\strftime.c \
|
|
680 $(XEMACS)\src\symbols.c \
|
|
681 $(XEMACS)\src\syntax.c \
|
|
682 $(XEMACS)\src\sysdep.c \
|
213
|
683 $(XEMACS)\src\termcap.c \
|
183
|
684 $(XEMACS)\src\tparam.c \
|
|
685 $(XEMACS)\src\undo.c \
|
|
686 $(XEMACS)\src\unexnt.c \
|
|
687 $(XEMACS)\src\vm-limit.c \
|
|
688 $(XEMACS)\src\window.c \
|
213
|
689 $(XEMACS)\src\widget.c
|
|
690
|
|
691 !if $(HAVE_X)
|
|
692 DOC_SRC6=\
|
|
693 $(XEMACS)\src\balloon_help.c \
|
|
694 $(XEMACS)\src\console-x.c \
|
|
695 $(XEMACS)\src\device-x.c \
|
|
696 $(XEMACS)\src\dialog-x.c \
|
|
697 $(XEMACS)\src\EmacsFrame.c \
|
|
698 $(XEMACS)\src\EmacsManager.c \
|
|
699 $(XEMACS)\src\EmacsShell-sub.c\
|
|
700 $(XEMACS)\src\EmacsShell.c \
|
|
701 $(XEMACS)\src\event-Xt.c \
|
|
702 $(XEMACS)\src\frame-x.c \
|
|
703 $(XEMACS)\src\glyphs-x.c \
|
|
704 $(XEMACS)\src\gui-x.c \
|
|
705 $(XEMACS)\src\menubar.c \
|
|
706 $(XEMACS)\src\menubar-x.c \
|
|
707 $(XEMACS)\src\objects-x.c \
|
|
708 $(XEMACS)\src\redisplay-x.c \
|
|
709 $(XEMACS)\src\scrollbar-x.c \
|
|
710 $(XEMACS)\src\balloon-x.c \
|
183
|
711 $(XEMACS)\src\xgccache.c \
|
|
712 $(XEMACS)\src\xmu.c \
|
213
|
713 $(XEMACS)\src\xselect.c
|
|
714 !endif
|
|
715
|
|
716 !if $(HAVE_MSW)
|
219
|
717 DOC_SRC7=\
|
213
|
718 $(XEMACS)\src\console-msw.c \
|
|
719 $(XEMACS)\src\device-msw.c \
|
|
720 $(XEMACS)\src\event-msw.c \
|
|
721 $(XEMACS)\src\frame-msw.c \
|
269
|
722 $(XEMACS)\src\glyphs-msw.c \
|
231
|
723 $(XEMACS)\src\menubar-msw.c \
|
213
|
724 $(XEMACS)\src\objects-msw.c \
|
|
725 $(XEMACS)\src\redisplay-msw.c \
|
231
|
726 $(XEMACS)\src\scrollbar-msw.c \
|
263
|
727 $(XEMACS)\src\select-msw.c \
|
276
|
728 $(MSW_C_DIRED_SRC) \
|
286
|
729 $(MSW_TOOLBAR_SRC) \
|
373
|
730 $(MSW_DIALOG_SRC) \
|
|
731 $(MSW_GIF_SRC)
|
213
|
732 !endif
|
|
733
|
267
|
734 !if $(HAVE_MULE)
|
265
|
735 DOC_SRC8=\
|
183
|
736 $(XEMACS)\src\input-method-xlib.c \
|
|
737 $(XEMACS)\src\mule.c \
|
|
738 $(XEMACS)\src\mule-charset.c \
|
|
739 $(XEMACS)\src\mule-ccl.c \
|
213
|
740 $(XEMACS)\src\mule-coding.c
|
|
741 !endif
|
118
|
742
|
219
|
743 !if $(DEBUG_XEMACS)
|
267
|
744 DOC_SRC9=\
|
219
|
745 $(XEMACS)\src\debug.c
|
|
746 !endif
|
|
747
|
118
|
748 #------------------------------------------------------------------------------
|
|
749
|
|
750 # TEMACS Executable
|
|
751
|
294
|
752 # This may not exist
|
371
|
753 !if "$(emacs_beta_version)" != ""
|
294
|
754 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
|
|
755 !ENDIF
|
|
756
|
183
|
757 TEMACS_DIR=$(XEMACS)\src
|
|
758 TEMACS=$(TEMACS_DIR)\temacs.exe
|
213
|
759 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
|
183
|
760 TEMACS_SRC=$(XEMACS)\src
|
276
|
761 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
|
|
762 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib \
|
|
763 shell32.lib ole32.lib oleaut32.lib uuid.lib wsock32.lib winmm.lib libc.lib
|
223
|
764 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
|
213
|
765 -stack:0x800000 -entry:_start -subsystem:console\
|
223
|
766 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
|
219
|
767 -heap:0x00100000 -out:$@
|
231
|
768 TEMACS_CPP_FLAGS= $(WARN_CPP_FLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
|
183
|
769 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
770 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
294
|
771 $(EMACS_BETA_VERSION) \
|
183
|
772 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
|
298
|
773 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
|
269
|
774 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
|
219
|
775
|
288
|
776 TEMACS_FLAGS=-ML $(WARN_CPP_FALGS) $(OPT) -c $(TEMACS_CPP_FLAGS)
|
118
|
777
|
213
|
778 !if $(HAVE_X)
|
|
779 TEMACS_X_OBJS=\
|
|
780 $(OUTDIR)\balloon-x.obj \
|
|
781 $(OUTDIR)\balloon_help.obj \
|
|
782 $(OUTDIR)\console-x.obj \
|
|
783 $(OUTDIR)\device-x.obj \
|
|
784 $(OUTDIR)\dialog-x.obj \
|
|
785 $(OUTDIR)\EmacsFrame.obj \
|
|
786 $(OUTDIR)\EmacsManager.obj \
|
|
787 $(OUTDIR)\EmacsShell.obj \
|
|
788 $(OUTDIR)\TopLevelEmacsShell.obj\
|
|
789 $(OUTDIR)\TransientEmacsShell.obj\
|
|
790 $(OUTDIR)\event-Xt.obj \
|
|
791 $(OUTDIR)\frame-x.obj \
|
|
792 $(OUTDIR)\glyphs-x.obj \
|
|
793 $(OUTDIR)\gui-x.obj \
|
|
794 $(OUTDIR)\menubar-x.obj \
|
|
795 $(OUTDIR)\objects-x.obj \
|
|
796 $(OUTDIR)\redisplay-x.obj \
|
|
797 $(OUTDIR)\scrollbar-x.obj \
|
|
798 $(OUTDIR)\xgccache.obj \
|
|
799 $(OUTDIR)\xmu.obj \
|
|
800 $(OUTDIR)\xselect.obj
|
|
801 !endif
|
|
802
|
|
803 !if $(HAVE_MSW)
|
|
804 TEMACS_MSW_OBJS=\
|
|
805 $(OUTDIR)\console-msw.obj \
|
|
806 $(OUTDIR)\device-msw.obj \
|
|
807 $(OUTDIR)\event-msw.obj \
|
|
808 $(OUTDIR)\frame-msw.obj \
|
269
|
809 $(OUTDIR)\glyphs-msw.obj \
|
231
|
810 $(OUTDIR)\menubar-msw.obj \
|
213
|
811 $(OUTDIR)\objects-msw.obj \
|
|
812 $(OUTDIR)\redisplay-msw.obj \
|
231
|
813 $(OUTDIR)\scrollbar-msw.obj \
|
263
|
814 $(OUTDIR)\select-msw.obj \
|
276
|
815 $(MSW_C_DIRED_OBJ) \
|
286
|
816 $(MSW_TOOLBAR_OBJ) \
|
373
|
817 $(MSW_DIALOG_OBJ) \
|
|
818 $(MSW_GIF_OBJ)
|
213
|
819 !endif
|
|
820
|
|
821 !if $(HAVE_MULE)
|
|
822 TEMACS_MULE_OBJS=\
|
|
823 $(OUTDIR)\input-method-xlib.obj \
|
|
824 $(OUTDIR)\mule.obj \
|
|
825 $(OUTDIR)\mule-charset.obj \
|
|
826 $(OUTDIR)\mule-ccl.obj \
|
219
|
827 $(OUTDIR)\mule-coding.obj
|
|
828 !endif
|
|
829
|
|
830 !if $(DEBUG_XEMACS)
|
|
831 TEMACS_DEBUG_OBJS=\
|
|
832 $(OUTDIR)\debug.obj
|
213
|
833 !endif
|
|
834
|
118
|
835 TEMACS_OBJS= \
|
213
|
836 $(TEMACS_X_OBJS)\
|
|
837 $(TEMACS_MSW_OBJS)\
|
265
|
838 $(TEMACS_CODING_OBJS)\
|
213
|
839 $(TEMACS_MULE_OBJS)\
|
219
|
840 $(TEMACS_DEBUG_OBJS)\
|
183
|
841 $(OUTDIR)\abbrev.obj \
|
|
842 $(OUTDIR)\alloc.obj \
|
|
843 $(OUTDIR)\alloca.obj \
|
|
844 $(OUTDIR)\blocktype.obj \
|
|
845 $(OUTDIR)\buffer.obj \
|
|
846 $(OUTDIR)\bytecode.obj \
|
|
847 $(OUTDIR)\callint.obj \
|
|
848 $(OUTDIR)\callproc.obj \
|
|
849 $(OUTDIR)\casefiddle.obj \
|
|
850 $(OUTDIR)\casetab.obj \
|
|
851 $(OUTDIR)\chartab.obj \
|
|
852 $(OUTDIR)\cmdloop.obj \
|
|
853 $(OUTDIR)\cmds.obj \
|
|
854 $(OUTDIR)\console-stream.obj \
|
|
855 $(OUTDIR)\console.obj \
|
|
856 $(OUTDIR)\data.obj \
|
|
857 $(OUTDIR)\device.obj \
|
|
858 $(OUTDIR)\dired.obj \
|
|
859 $(OUTDIR)\doc.obj \
|
|
860 $(OUTDIR)\doprnt.obj \
|
284
|
861 $(OUTDIR)\dragdrop.obj \
|
183
|
862 $(OUTDIR)\dynarr.obj \
|
|
863 $(OUTDIR)\editfns.obj \
|
|
864 $(OUTDIR)\elhash.obj \
|
|
865 $(OUTDIR)\emacs.obj \
|
|
866 $(OUTDIR)\eval.obj \
|
|
867 $(OUTDIR)\event-stream.obj \
|
|
868 $(OUTDIR)\events.obj \
|
|
869 $(OUTDIR)\extents.obj \
|
|
870 $(OUTDIR)\faces.obj \
|
267
|
871 $(OUTDIR)\file-coding.obj \
|
183
|
872 $(OUTDIR)\fileio.obj \
|
|
873 $(OUTDIR)\filemode.obj \
|
|
874 $(OUTDIR)\floatfns.obj \
|
|
875 $(OUTDIR)\fns.obj \
|
|
876 $(OUTDIR)\font-lock.obj \
|
|
877 $(OUTDIR)\frame.obj \
|
|
878 $(OUTDIR)\free-hook.obj \
|
|
879 $(OUTDIR)\general.obj \
|
|
880 $(OUTDIR)\glyphs.obj \
|
280
|
881 $(OUTDIR)\glyphs-eimage.obj \
|
183
|
882 $(OUTDIR)\gmalloc.obj \
|
|
883 $(OUTDIR)\gui.obj \
|
|
884 $(OUTDIR)\hash.obj \
|
|
885 $(OUTDIR)\indent.obj \
|
269
|
886 $(OUTDIR)\imgproc.obj \
|
183
|
887 $(OUTDIR)\insdel.obj \
|
|
888 $(OUTDIR)\intl.obj \
|
|
889 $(OUTDIR)\keymap.obj \
|
213
|
890 $(OUTDIR)\line-number.obj \
|
183
|
891 $(OUTDIR)\lread.obj \
|
|
892 $(OUTDIR)\lstream.obj \
|
|
893 $(OUTDIR)\macros.obj \
|
231
|
894 $(OUTDIR)\menubar.obj \
|
183
|
895 $(OUTDIR)\marker.obj \
|
|
896 $(OUTDIR)\md5.obj \
|
|
897 $(OUTDIR)\minibuf.obj \
|
|
898 $(OUTDIR)\nt.obj \
|
|
899 $(OUTDIR)\ntheap.obj \
|
298
|
900 $(OUTDIR)\ntplay.obj \
|
183
|
901 $(OUTDIR)\ntproc.obj \
|
|
902 $(OUTDIR)\objects.obj \
|
|
903 $(OUTDIR)\opaque.obj \
|
|
904 $(OUTDIR)\print.obj \
|
|
905 $(OUTDIR)\process.obj \
|
274
|
906 $(OUTDIR)\process-nt.obj \
|
223
|
907 $(OUTDIR)\profile.obj \
|
183
|
908 $(OUTDIR)\rangetab.obj \
|
|
909 $(OUTDIR)\realpath.obj \
|
|
910 $(OUTDIR)\redisplay-output.obj \
|
|
911 $(OUTDIR)\redisplay.obj \
|
|
912 $(OUTDIR)\regex.obj \
|
225
|
913 $(OUTDIR)\scrollbar.obj \
|
183
|
914 $(OUTDIR)\search.obj \
|
|
915 $(OUTDIR)\signal.obj \
|
|
916 $(OUTDIR)\sound.obj \
|
|
917 $(OUTDIR)\specifier.obj \
|
|
918 $(OUTDIR)\strftime.obj \
|
|
919 $(OUTDIR)\symbols.obj \
|
|
920 $(OUTDIR)\syntax.obj \
|
|
921 $(OUTDIR)\sysdep.obj \
|
|
922 $(OUTDIR)\tparam.obj \
|
|
923 $(OUTDIR)\undo.obj \
|
|
924 $(OUTDIR)\unexnt.obj \
|
|
925 $(OUTDIR)\vm-limit.obj \
|
197
|
926 $(OUTDIR)\widget.obj \
|
227
|
927 $(OUTDIR)\window.obj \
|
304
|
928 $(NT)\xemacs.res
|
155
|
929
|
213
|
930 # Rules
|
118
|
931
|
213
|
932 .SUFFIXES:
|
371
|
933 .SUFFIXES: .c
|
118
|
934
|
213
|
935 # nmake rule
|
|
936 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
278
|
937 $(CCV) $(TEMACS_FLAGS) $< -Fo$@ -Fr$*.sbr
|
118
|
938
|
183
|
939 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
278
|
940 $(CCV) $(TEMACS_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
|
118
|
941
|
183
|
942 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
278
|
943 $(CCV) $(TEMACS_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
|
118
|
944
|
382
|
945 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c $(TEMACS_SRC)\puresize-adjust.h
|
223
|
946
|
183
|
947 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
|
|
948 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
|
118
|
949
|
183
|
950 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
|
|
951 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
|
118
|
952
|
213
|
953 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
|
|
954 link.exe @<<
|
|
955 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
|
|
956 <<
|
|
957
|
304
|
958 $(NT)\xemacs.res: xemacs.rc
|
227
|
959 rc xemacs.rc
|
|
960
|
213
|
961 # MSDEV Source Broswer file. "*.sbr" is too inclusive but this is harmless
|
|
962 $(TEMACS_BROWSE): $(TEMACS_OBJS)
|
267
|
963 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
|
278
|
964 bscmake -nologo -o$@ @bscmake.tmp
|
267
|
965 @del bscmake.tmp
|
213
|
966
|
118
|
967 #------------------------------------------------------------------------------
|
|
968
|
|
969 # LISP bits 'n bobs
|
|
970
|
213
|
971 LOADPATH=$(LISP)
|
|
972
|
217
|
973 $(DOC): $(LIB_SRC)\make-docfile.exe
|
215
|
974 -del $(DOC)
|
278
|
975 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
|
|
976 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
|
|
977 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
|
|
978 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
|
|
979 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
|
|
980 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
|
|
981 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
|
|
982 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
|
|
983 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
|
|
984 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
|
183
|
985
|
265
|
986 $(LISP)\Installation.el: Installation.el
|
|
987 copy Installation.el $(LISP)
|
|
988
|
|
989 update-elc: $(LISP)\Installation.el
|
269
|
990 set EMACSBOOTSTRAPLOADPATH=$(LISP)
|
278
|
991 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
|
223
|
992
|
278
|
993 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
|
|
994 # requirements has changed.
|
223
|
995 dump-xemacs: $(TEMACS)
|
278
|
996 @echo >$(TEMACS_DIR)\SATISFIED
|
269
|
997 cd $(TEMACS_DIR)
|
|
998 set EMACSBOOTSTRAPLOADPATH=$(LISP)
|
278
|
999 -1 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\loadup.el dump
|
304
|
1000 @cd $(NT)
|
278
|
1001 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
|
118
|
1002
|
|
1003 #------------------------------------------------------------------------------
|
|
1004
|
|
1005 # use this rule to build the complete system
|
298
|
1006 all: $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(LIB_SRC_TOOLS) $(RUNEMACS) \
|
371
|
1007 $(TEMACS) $(TEMACS_BROWSE) update-elc $(DOC) dump-xemacs
|
118
|
1008
|
278
|
1009 temacs: $(TEMACS)
|
231
|
1010
|
118
|
1011 # use this rule to install the system
|
373
|
1012 install: all
|
|
1013 @echo Installing in $(INSTALL_DIR) ...
|
384
|
1014 @echo PlaceHolder > PlaceHolder
|
373
|
1015 @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
|
384
|
1016 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
|
|
1017 @del "$(INSTALL_DIR)\lock\PlaceHolder"
|
298
|
1018 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
|
373
|
1019 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
382
|
1020 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
373
|
1021 @copy $(XEMACS)\src\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
|
1022 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
298
|
1023 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
|
|
1024 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
|
|
1025 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
|
384
|
1026 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
|
|
1027 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
|
|
1028 @del "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
|
|
1029 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
|
|
1030 @del "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
|
|
1031 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
|
|
1032 @del "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
|
|
1033 @del PlaceHolder
|
371
|
1034
|
213
|
1035 distclean:
|
|
1036 del *.bak
|
|
1037 del *.orig
|
|
1038 del *.rej
|
|
1039 del *.pdb
|
|
1040 del *.tmp
|
|
1041 cd $(OUTDIR)
|
|
1042 del *.obj
|
|
1043 del *.sbr
|
|
1044 del *.lib
|
286
|
1045 cd $(XEMACS)\$(TEMACS_DIR)
|
294
|
1046 del puresize-adjust.h
|
213
|
1047 del config.h
|
|
1048 del paths.h
|
215
|
1049 del Emacs.ad.h
|
213
|
1050 del *.bak
|
|
1051 del *.orig
|
|
1052 del *.rej
|
|
1053 del *.exe
|
|
1054 del *.map
|
|
1055 del *.bsc
|
|
1056 del *.pdb
|
|
1057 cd $(LIB_SRC)
|
|
1058 del DOC
|
|
1059 del *.bak
|
|
1060 del *.orig
|
|
1061 del *.rej
|
|
1062 del *.exe
|
382
|
1063 del $(CONFIG_VALUES)
|
213
|
1064 cd $(LISP)
|
|
1065 -del /s /q *.bak *.elc *.orig *.rej
|
|
1066
|
|
1067 depend:
|
267
|
1068 mkdepend -f xemacs.mak -p$(OUTDIR)\ -o.obj -w9999 -- $(TEMACS_CPP_FLAGS) -- $(DOC_SRC1) $(DOC_SRC2) $(DOC_SRC3) $(DOC_SRC4) $(DOC_SRC5) $(DOC_SRC6) $(DOC_SRC7) $(DOC_SRC8) $(DOC_SRC9) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c .\runemacs.c
|
213
|
1069
|
|
1070 # DO NOT DELETE THIS LINE -- make depend depends on it.
|
267
|
1071
|