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
|
404
|
29 LIB_SRC=$(XEMACS)\lib-src
|
388
|
30 MODULES=$(XEMACS)\modules
|
304
|
31 NT=$(XEMACS)\nt
|
396
|
32 OUTDIR=$(NT)\obj
|
404
|
33 SRC=$(XEMACS)\src
|
|
34 MAKEDIRSTRING=$(MAKEDIR:\=\\)
|
|
35 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
|
|
36
|
274
|
37
|
398
|
38 # Define a variable for the 'del' command to use
|
|
39 DEL=-del
|
|
40
|
298
|
41 # Program name and version
|
|
42
|
|
43 !include "..\version.sh"
|
|
44
|
404
|
45 !include "config.inc"
|
|
46
|
298
|
47 !if !defined(INFODOCK)
|
|
48 INFODOCK=0
|
|
49 !endif
|
|
50
|
|
51 !if $(INFODOCK)
|
|
52 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
|
|
53 PROGRAM_DEFINES=-DINFODOCK \
|
|
54 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
|
55 -DPATH_PROGNAME=\"infodock\" \
|
|
56 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
|
|
57 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
|
|
58 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
|
|
59 !else
|
371
|
60 !if "$(emacs_beta_version)" != ""
|
298
|
61 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)-b$(emacs_beta_version)
|
|
62 !else
|
371
|
63 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
|
298
|
64 !endif
|
|
65 PROGRAM_DEFINES= \
|
|
66 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
|
67 -DPATH_PROGNAME=\"xemacs\"
|
|
68 !endif
|
|
69
|
274
|
70 #
|
|
71 # Command line options defaults
|
|
72 #
|
298
|
73 !if !defined(INSTALL_DIR)
|
|
74 ! if $(INFODOCK)
|
|
75 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
|
|
76 ! else
|
|
77 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
|
|
78 ! endif
|
|
79 !endif
|
396
|
80 !if !defined(HAVE_MULE)
|
|
81 HAVE_MULE=0
|
|
82 !endif
|
384
|
83 !if !defined(PACKAGE_PATH)
|
|
84 ! if !defined(PACKAGE_PREFIX)
|
|
85 PACKAGE_PREFIX=c:\Program Files\XEmacs
|
|
86 ! endif
|
396
|
87 ! if $(HAVE_MULE)
|
384
|
88 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
396
|
89 ! else
|
|
90 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
|
91 ! endif
|
274
|
92 !endif
|
384
|
93 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
|
274
|
94 !if !defined(HAVE_MSW)
|
286
|
95 HAVE_MSW=1
|
274
|
96 !endif
|
|
97 !if !defined(HAVE_X)
|
213
|
98 HAVE_X=0
|
274
|
99 !endif
|
276
|
100 !if !defined(HAVE_XPM)
|
|
101 HAVE_XPM=0
|
|
102 !endif
|
373
|
103 !if !defined(HAVE_PNG)
|
|
104 HAVE_PNG=0
|
|
105 !endif
|
|
106 !if !defined(HAVE_TIFF)
|
|
107 HAVE_TIFF=0
|
|
108 !endif
|
|
109 !if !defined(HAVE_JPEG)
|
|
110 HAVE_JPEG=0
|
|
111 !endif
|
394
|
112 !if !defined(HAVE_XFACE)
|
|
113 HAVE_XFACE=0
|
|
114 !endif
|
373
|
115 !if !defined(HAVE_GIF)
|
|
116 HAVE_GIF=1
|
|
117 !endif
|
276
|
118 !if !defined(HAVE_TOOLBARS)
|
|
119 HAVE_TOOLBARS=$(HAVE_XPM)
|
|
120 !endif
|
286
|
121 !if !defined(HAVE_DIALOGS)
|
|
122 HAVE_DIALOGS=1
|
|
123 !endif
|
274
|
124 !if !defined(HAVE_MSW_C_DIRED)
|
|
125 HAVE_MSW_C_DIRED=1
|
|
126 !endif
|
298
|
127 !if !defined(HAVE_NATIVE_SOUND)
|
|
128 HAVE_NATIVE_SOUND=1
|
|
129 !endif
|
398
|
130 !if !defined(HAVE_WIDGETS)
|
|
131 HAVE_WIDGETS=1
|
|
132 !endif
|
274
|
133 !if !defined(DEBUG_XEMACS)
|
298
|
134 DEBUG_XEMACS=0
|
274
|
135 !endif
|
|
136 !if !defined(USE_UNION_TYPE)
|
|
137 USE_UNION_TYPE=0
|
|
138 !endif
|
398
|
139 !if !defined(USE_MINITAR)
|
|
140 USE_MINITAR=1
|
|
141 !endif
|
274
|
142 !if !defined(USE_MINIMAL_TAGBITS)
|
|
143 USE_MINIMAL_TAGBITS=0
|
|
144 !endif
|
|
145 !if !defined(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
146 USE_INDEXED_LRECORD_IMPLEMENTATION=0
|
|
147 !endif
|
398
|
148 !if !defined(USE_PORTABLE_DUMPER)
|
|
149 USE_PORTABLE_DUMPER=0
|
|
150 !endif
|
|
151 !if !defined(GUNG_HO)
|
|
152 GUNG_HO=0
|
|
153 !endif
|
|
154
|
|
155 # A little bit of adhockery. Default to use system malloc and
|
|
156 # DLL version of the C runtime library when using portable
|
|
157 # dumping. These are the optimal settings.
|
|
158 !if !defined(USE_SYSTEM_MALLOC)
|
|
159 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
|
|
160 !endif
|
|
161 !if !defined(USE_CRTDLL)
|
|
162 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
|
|
163 !endif
|
298
|
164
|
|
165 #
|
|
166 # System configuration
|
|
167 #
|
396
|
168 !if !defined(OS)
|
|
169 OS=Windows_95/98
|
388
|
170 EMACS_CONFIGURATION=i586-pc-win32
|
298
|
171 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
388
|
172 EMACS_CONFIGURATION=i586-pc-win32
|
298
|
173 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
|
|
174 EMACS_CONFIGURATION=mips-pc-win32
|
|
175 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
|
|
176 EMACS_CONFIGURATION=alpha-pc-win32
|
|
177 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
|
|
178 EMACS_CONFIGURATION=ppc-pc-win32
|
|
179 !else
|
|
180 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
|
288
|
181 !endif
|
213
|
182
|
274
|
183 #
|
|
184 # Conf error checks
|
|
185 #
|
278
|
186 CONFIG_ERROR=0
|
288
|
187 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
|
|
188 !message Cannot build InfoDock without InfoDock sources
|
|
189 CONFIG_ERROR=1
|
|
190 !endif
|
398
|
191 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
|
|
192 !message Cannot use system allocator when dumping old way, use portable dumper.
|
|
193 CONFIG_ERROR=1
|
|
194 !endif
|
|
195 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
|
|
196 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
|
|
197 CONFIG_ERROR=1
|
|
198 !endif
|
|
199 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
|
|
200 !message GNU malloc currently cannot be used with CRT DLL.
|
|
201 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
|
|
202 CONFIG_ERROR=1
|
|
203 !endif
|
274
|
204 !if !$(HAVE_MSW) && !$(HAVE_X)
|
278
|
205 !message Please specify at least one HAVE_MSW=1 and/or HAVE_X=1
|
|
206 CONFIG_ERROR=1
|
274
|
207 !endif
|
|
208 !if $(HAVE_X) && !defined(X11_DIR)
|
278
|
209 !message Please specify root directory for your X11 installation: X11_DIR=path
|
|
210 CONFIG_ERROR=1
|
|
211 !endif
|
|
212 !if $(HAVE_X) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
|
|
213 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
|
|
214 CONFIG_ERROR=1
|
274
|
215 !endif
|
276
|
216 !if $(HAVE_MSW) && $(HAVE_XPM) && !defined(XPM_DIR)
|
278
|
217 !message Please specify root directory for your XPM installation: XPM_DIR=path
|
|
218 CONFIG_ERROR=1
|
|
219 !endif
|
294
|
220 !if $(HAVE_MSW) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
|
|
221 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
|
278
|
222 CONFIG_ERROR=1
|
276
|
223 !endif
|
373
|
224 !if $(HAVE_MSW) && $(HAVE_PNG) && !defined(PNG_DIR)
|
|
225 !message Please specify root directory for your PNG installation: PNG_DIR=path
|
|
226 CONFIG_ERROR=1
|
|
227 !endif
|
|
228 !if $(HAVE_MSW) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
|
|
229 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
|
|
230 CONFIG_ERROR=1
|
|
231 !endif
|
|
232 !if $(HAVE_MSW) && $(HAVE_PNG) && !defined(ZLIB_DIR)
|
|
233 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
|
|
234 CONFIG_ERROR=1
|
|
235 !endif
|
|
236 !if $(HAVE_MSW) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
|
|
237 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
|
|
238 CONFIG_ERROR=1
|
|
239 !endif
|
|
240 !if $(HAVE_MSW) && $(HAVE_TIFF) && !defined(TIFF_DIR)
|
|
241 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
|
|
242 CONFIG_ERROR=1
|
|
243 !endif
|
|
244 !if $(HAVE_MSW) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
|
|
245 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
246 CONFIG_ERROR=1
|
|
247 !endif
|
|
248 !if $(HAVE_MSW) && $(HAVE_JPEG) && !defined(JPEG_DIR)
|
|
249 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
|
|
250 CONFIG_ERROR=1
|
|
251 !endif
|
|
252 !if $(HAVE_MSW) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
|
|
253 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
|
|
254 CONFIG_ERROR=1
|
|
255 !endif
|
394
|
256 !if $(HAVE_MSW) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
|
|
257 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
|
|
258 CONFIG_ERROR=1
|
|
259 !endif
|
|
260 !if $(HAVE_MSW) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
|
|
261 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
|
|
262 CONFIG_ERROR=1
|
|
263 !endif
|
276
|
264 !if $(HAVE_MSW) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
|
396
|
265 !message Toolbars require XPM support
|
278
|
266 CONFIG_ERROR=1
|
|
267 !endif
|
|
268 !if $(CONFIG_ERROR)
|
|
269 !error Configuration error(s) found
|
276
|
270 !endif
|
274
|
271
|
|
272 #
|
|
273 # Handle GUNG_HO
|
|
274 #
|
|
275 !if defined(GUNG_HO)
|
|
276 USE_MINIMAL_TAGBITS=$(GUNG_HO)
|
|
277 USE_INDEXED_LRECORD_IMPLEMENTATION=$(GUNG_HO)
|
|
278 !endif
|
219
|
279
|
274
|
280 #
|
398
|
281 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
|
278
|
282 #
|
|
283 !if !defined(VERBOSECC)
|
|
284 VERBOSECC=0
|
|
285 !endif
|
|
286 !if $(VERBOSECC)
|
388
|
287 CCV=$(CC)
|
278
|
288 !else
|
388
|
289 CCV=@$(CC)
|
278
|
290 !endif
|
|
291
|
219
|
292 !if $(DEBUG_XEMACS)
|
183
|
293 OPT=-Od -Zi
|
219
|
294 !else
|
396
|
295 OPT=-O2 -G5
|
219
|
296 !endif
|
183
|
297
|
398
|
298 !if $(USE_CRTDLL)
|
|
299 !if $(DEBUG_XEMACS)
|
|
300 C_LIBFLAG=-MDd
|
|
301 LIBC_LIB=msvcrtd.lib
|
|
302 !else
|
|
303 C_LIBFLAG=-MD
|
|
304 LIBC_LIB=msvcrt.lib
|
|
305 !endif
|
|
306 !else
|
|
307 C_LIBFLAG=-ML
|
|
308 LIBC_LIB=libc.lib
|
|
309 !endif
|
|
310
|
|
311 CFLAGS=-nologo -W3 $(OPT) $(C_LIBFLAG)
|
231
|
312
|
213
|
313 !if $(HAVE_X)
|
|
314 X_DEFINES=-DHAVE_X_WINDOWS
|
274
|
315 X_INCLUDES=-I$(X11_DIR)\include
|
|
316 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
|
213
|
317 !endif
|
|
318
|
|
319 !if $(HAVE_MSW)
|
231
|
320 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS
|
276
|
321 MSW_INCLUDES=
|
|
322 MSW_LIBS=
|
263
|
323 !if $(HAVE_MSW_C_DIRED)
|
276
|
324 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MSW_C_DIRED
|
404
|
325 MSW_C_DIRED_SRC=$(SRC)\dired-msw.c
|
263
|
326 MSW_C_DIRED_OBJ=$(OUTDIR)\dired-msw.obj
|
|
327 !endif
|
276
|
328 !if $(HAVE_XPM)
|
|
329 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
|
278
|
330 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
|
|
331 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
|
276
|
332 !endif
|
373
|
333 !if $(HAVE_GIF)
|
|
334 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
|
404
|
335 MSW_GIF_SRC=$(SRC)\dgif_lib.c $(SRC)\gif_io.c
|
373
|
336 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
|
|
337 !endif
|
|
338 !if $(HAVE_PNG)
|
|
339 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
|
|
340 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
|
|
341 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
|
|
342 !endif
|
|
343 !if $(HAVE_TIFF)
|
|
344 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
|
|
345 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
|
|
346 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
347 !endif
|
|
348 !if $(HAVE_JPEG)
|
|
349 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
|
|
350 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
|
|
351 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
|
|
352 !endif
|
394
|
353 !if $(HAVE_XFACE)
|
|
354 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
|
|
355 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
|
|
356 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
|
|
357 !endif
|
276
|
358 !if $(HAVE_TOOLBARS)
|
|
359 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
|
404
|
360 MSW_TOOLBAR_SRC=$(SRC)\toolbar.c $(SRC)\toolbar-msw.c
|
276
|
361 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
|
|
362 MSW_LIBS=$(MSW_LIBS) comctl32.lib
|
|
363 !endif
|
286
|
364 !if $(HAVE_DIALOGS)
|
|
365 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
|
404
|
366 MSW_DIALOG_SRC=$(SRC)\dialog.c $(SRC)\dialog-msw.c
|
286
|
367 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
|
|
368 !endif
|
398
|
369 !if $(HAVE_WIDGETS)
|
|
370 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
|
|
371 !endif
|
298
|
372 !if $(HAVE_NATIVE_SOUND)
|
|
373 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
|
|
374 !endif
|
213
|
375 !endif
|
|
376
|
|
377 !if $(HAVE_MULE)
|
|
378 MULE_DEFINES=-DMULE
|
|
379 !endif
|
|
380
|
219
|
381 !if $(DEBUG_XEMACS)
|
282
|
382 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
|
396
|
383 DEBUG_FLAGS=-debug:full
|
219
|
384 !endif
|
|
385
|
282
|
386 !if $(USE_MINIMAL_TAGBITS)
|
|
387 TAGBITS_DEFINES=-DUSE_MINIMAL_TAGBITS
|
|
388 !endif
|
|
389 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
390 LRECORD_DEFINES=-DUSE_INDEXED_LRECORD_IMPLEMENTATION
|
|
391 !endif
|
|
392 !if $(USE_UNION_TYPE)
|
|
393 UNION_DEFINES=-DUSE_UNION_TYPE
|
|
394 !endif
|
|
395
|
398
|
396 !if $(USE_PORTABLE_DUMPER)
|
|
397 DUMPER_DEFINES=-DPDUMP
|
|
398 !endif
|
|
399
|
|
400 !if $(USE_SYSTEM_MALLOC)
|
|
401 MALLOC_DEFINES=-DSYSTEM_MALLOC
|
|
402 !else
|
|
403 MALLOC_DEFINES=-DGNU_MALLOC
|
|
404 !endif
|
|
405
|
288
|
406 # Hard-coded paths
|
|
407
|
|
408 !if $(INFODOCK)
|
|
409 PATH_PREFIX=../..
|
|
410 !else
|
|
411 PATH_PREFIX=..
|
|
412 !endif
|
|
413
|
|
414 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
|
|
415
|
118
|
416 # Generic variables
|
|
417
|
404
|
418 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(XEMACS)\lwlib
|
213
|
419
|
276
|
420 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
|
282
|
421 $(TAGBITS_DEFINES) $(LRECORD_DEFINES) $(UNION_DEFINES) \
|
398
|
422 $(DUMPER_DEFINES) $(MALLOC_DEFINES) \
|
265
|
423 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
|
288
|
424 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
|
118
|
425
|
|
426 #------------------------------------------------------------------------------
|
|
427
|
213
|
428 default: $(OUTDIR)\nul all
|
118
|
429
|
213
|
430 $(OUTDIR)\nul:
|
118
|
431 -@mkdir $(OUTDIR)
|
|
432
|
183
|
433 XEMACS_INCLUDES=\
|
404
|
434 $(SRC)\config.h \
|
|
435 $(SRC)\Emacs.ad.h \
|
|
436 $(SRC)\paths.h
|
183
|
437
|
404
|
438 $(SRC)\config.h: config.h
|
|
439 copy config.h $(SRC)
|
219
|
440
|
404
|
441 $(SRC)\Emacs.ad.h: Emacs.ad.h
|
|
442 copy Emacs.ad.h $(SRC)
|
219
|
443
|
404
|
444 $(SRC)\paths.h: paths.h
|
|
445 copy paths.h $(SRC)
|
183
|
446
|
|
447 #------------------------------------------------------------------------------
|
|
448
|
288
|
449 # lib-src programs
|
|
450
|
|
451 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32 -DWINDOWSNT
|
|
452
|
382
|
453 #
|
|
454 # Creating config.values to be used by config.el
|
|
455 #
|
|
456 CONFIG_VALUES = $(LIB_SRC)\config.values
|
|
457 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
|
|
458 !endif
|
|
459 # MAKEDIR has to be made into a string.
|
398
|
460 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
|
|
461 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
|
382
|
462 !endif
|
398
|
463 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
|
382
|
464 !endif
|
398
|
465 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
|
466 !endif
|
|
467 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
|
382
|
468 !endif
|
398
|
469 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
382
|
470 !endif
|
398
|
471 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
|
382
|
472 !endif
|
|
473 # PATH_PACKAGEPATH is already a quoted string.
|
|
474 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
|
|
475 !endif
|
|
476
|
288
|
477 # Inferred rule
|
|
478 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
|
398
|
479 cd $(LIB_SRC)
|
404
|
480 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** -link -incremental:no setargv.obj
|
398
|
481 cd $(NT)
|
288
|
482
|
|
483 # Individual dependencies
|
|
484 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(LIB_SRC)/../src/regex.c
|
|
485 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
|
382
|
486 $(LIB_SRC)/movemail.exe: $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
|
398
|
487 cd $(LIB_SRC)
|
396
|
488 $(CCV) -I. -I$(XEMACS)/src -I$(XEMACS)/nt/inc $(LIB_SRC_DEFINES) $(CFLAGS) -Fe$@ $** wsock32.lib -link -incremental:no
|
398
|
489 cd $(NT)
|
|
490 $(LIB_SRC)/minitar.exe : $(NT)/minitar.mak $(NT)/minitar.c
|
|
491 nmake -nologo -f minitar.mak ZLIB="$(ZLIB_DIR)" NT="$(NT)" LIB_SRC="$(LIB_SRC)"
|
288
|
492
|
|
493 LIB_SRC_TOOLS = \
|
|
494 $(LIB_SRC)/make-docfile.exe \
|
|
495 $(LIB_SRC)/hexl.exe \
|
|
496 $(LIB_SRC)/movemail.exe \
|
|
497 $(LIB_SRC)/mmencode.exe \
|
|
498 $(LIB_SRC)/sorted-doc.exe \
|
|
499 $(LIB_SRC)/wakeup.exe \
|
|
500 $(LIB_SRC)/etags.exe
|
398
|
501 !if $(USE_MINITAR)
|
|
502 LIB_SRC_TOOLS = \
|
|
503 $(LIB_SRC_TOOLS) \
|
|
504 $(LIB_SRC)/minitar.exe
|
|
505 !endif
|
404
|
506 !if $(USE_PORTABLE_DUMPER)
|
|
507 LIB_SRC_TOOLS = \
|
|
508 $(XEMACS_INCLUDES) \
|
|
509 $(LIB_SRC_TOOLS)
|
|
510 !endif
|
398
|
511
|
|
512 # Shorthand target
|
|
513 minitar: $(LIB_SRC)/minitar.exe
|
288
|
514
|
298
|
515 #------------------------------------------------------------------------------
|
|
516
|
388
|
517 # runxemacs proglet
|
|
518
|
404
|
519 RUNEMACS = $(SRC)\runxemacs.exe
|
298
|
520
|
388
|
521 $(RUNEMACS): $(LIB_SRC)\run.c $(LIB_SRC)\run.res
|
396
|
522 $(CCV) -I$(LIB_SRC) $(CFLAGS) -Fe$@ -Fo$(LIB_SRC) -Fd$(LIB_SRC)\ $** kernel32.lib user32.lib -link -incremental:no
|
298
|
523
|
388
|
524 $(LIB_SRC)\run.res: $(LIB_SRC)\run.rc
|
396
|
525 rc -I$(LIB_SRC) -Fo$@ $**
|
118
|
526
|
288
|
527 #------------------------------------------------------------------------------
|
|
528
|
298
|
529 # LASTFILE Library
|
|
530
|
398
|
531 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
|
|
532
|
183
|
533 LASTFILE=$(OUTDIR)\lastfile.lib
|
404
|
534 LASTFILE_SRC=$(SRC)
|
396
|
535 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
|
118
|
536 LASTFILE_OBJS= \
|
183
|
537 $(OUTDIR)\lastfile.obj
|
179
|
538
|
215
|
539 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
183
|
540 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
118
|
541
|
183
|
542 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
278
|
543 $(CCV) $(LASTFILE_FLAGS) $**
|
118
|
544
|
398
|
545 !endif
|
|
546
|
118
|
547 #------------------------------------------------------------------------------
|
|
548
|
213
|
549 !if $(HAVE_X)
|
|
550
|
118
|
551 # LWLIB Library
|
|
552
|
183
|
553 LWLIB=$(OUTDIR)\lwlib.lib
|
|
554 LWLIB_SRC=$(XEMACS)\lwlib
|
388
|
555 LWLIB_FLAGS=$(CFLAGS) $(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)
|
396
|
569 link.exe -lib -nologo -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=\
|
404
|
597 $(SRC)\abbrev.c \
|
|
598 $(SRC)\alloc.c \
|
|
599 $(SRC)\alloca.c \
|
|
600 $(SRC)\blocktype.c \
|
|
601 $(SRC)\buffer.c \
|
|
602 $(SRC)\bytecode.c \
|
|
603 $(SRC)\callint.c \
|
|
604 $(SRC)\callproc.c \
|
|
605 $(SRC)\casefiddle.c \
|
|
606 $(SRC)\casetab.c \
|
|
607 $(SRC)\chartab.c \
|
|
608 $(SRC)\cmdloop.c \
|
|
609 $(SRC)\cmds.c \
|
|
610 $(SRC)\console-stream.c \
|
|
611 $(SRC)\console.c \
|
|
612 $(SRC)\data.c \
|
|
613 $(SRC)\device.c
|
195
|
614 DOC_SRC2=\
|
404
|
615 $(SRC)\dired.c \
|
|
616 $(SRC)\doc.c \
|
|
617 $(SRC)\doprnt.c \
|
|
618 $(SRC)\dragdrop.c \
|
|
619 $(SRC)\dynarr.c \
|
|
620 $(SRC)\editfns.c \
|
|
621 $(SRC)\elhash.c \
|
|
622 $(SRC)\emacs.c \
|
|
623 $(SRC)\eval.c \
|
|
624 $(SRC)\event-stream.c \
|
|
625 $(SRC)\events.c \
|
|
626 $(SRC)\extents.c \
|
|
627 $(SRC)\faces.c \
|
|
628 $(SRC)\file-coding.c \
|
|
629 $(SRC)\fileio.c \
|
|
630 $(SRC)\filemode.c \
|
|
631 $(SRC)\floatfns.c \
|
|
632 $(SRC)\fns.c
|
213
|
633 DOC_SRC3=\
|
404
|
634 $(SRC)\font-lock.c \
|
|
635 $(SRC)\frame.c \
|
|
636 $(SRC)\general.c \
|
|
637 $(SRC)\glyphs.c \
|
|
638 $(SRC)\glyphs-eimage.c \
|
|
639 $(SRC)\glyphs-widget.c \
|
|
640 $(SRC)\gui.c \
|
|
641 $(SRC)\gutter.c \
|
|
642 $(SRC)\hash.c \
|
|
643 $(SRC)\imgproc.c \
|
|
644 $(SRC)\indent.c \
|
|
645 $(SRC)\insdel.c \
|
|
646 $(SRC)\intl.c \
|
|
647 $(SRC)\keymap.c \
|
|
648 $(SRC)\line-number.c \
|
|
649 $(SRC)\lread.c \
|
|
650 $(SRC)\lstream.c \
|
|
651 $(SRC)\macros.c \
|
|
652 $(SRC)\marker.c
|
213
|
653 DOC_SRC4=\
|
404
|
654 $(SRC)\md5.c \
|
|
655 $(SRC)\menubar.c \
|
|
656 $(SRC)\minibuf.c \
|
|
657 $(SRC)\nt.c \
|
|
658 $(SRC)\ntplay.c \
|
|
659 $(SRC)\ntproc.c \
|
|
660 $(SRC)\objects.c \
|
|
661 $(SRC)\opaque.c \
|
|
662 $(SRC)\print.c \
|
|
663 $(SRC)\process.c \
|
|
664 $(SRC)\process-nt.c \
|
|
665 $(SRC)\profile.c \
|
|
666 $(SRC)\rangetab.c \
|
|
667 $(SRC)\realpath.c \
|
|
668 $(SRC)\redisplay-output.c \
|
|
669 $(SRC)\redisplay.c \
|
|
670 $(SRC)\regex.c \
|
|
671 $(SRC)\scrollbar.c \
|
|
672 $(SRC)\search.c \
|
|
673 $(SRC)\select.c \
|
|
674 $(SRC)\signal.c \
|
|
675 $(SRC)\sound.c
|
213
|
676 DOC_SRC5=\
|
404
|
677 $(SRC)\specifier.c \
|
|
678 $(SRC)\strftime.c \
|
|
679 $(SRC)\symbols.c \
|
|
680 $(SRC)\syntax.c \
|
|
681 $(SRC)\sysdep.c \
|
|
682 $(SRC)\termcap.c \
|
|
683 $(SRC)\tparam.c \
|
|
684 $(SRC)\undo.c \
|
|
685 $(SRC)\window.c \
|
|
686 $(SRC)\widget.c
|
213
|
687
|
|
688 !if $(HAVE_X)
|
|
689 DOC_SRC6=\
|
404
|
690 $(SRC)\balloon_help.c \
|
|
691 $(SRC)\console-x.c \
|
|
692 $(SRC)\device-x.c \
|
|
693 $(SRC)\dialog-x.c \
|
|
694 $(SRC)\EmacsFrame.c \
|
|
695 $(SRC)\EmacsManager.c \
|
|
696 $(SRC)\EmacsShell-sub.c\
|
|
697 $(SRC)\EmacsShell.c \
|
|
698 $(SRC)\event-Xt.c \
|
|
699 $(SRC)\frame-x.c \
|
|
700 $(SRC)\glyphs-x.c \
|
|
701 $(SRC)\gui-x.c \
|
|
702 $(SRC)\menubar.c \
|
|
703 $(SRC)\menubar-x.c \
|
|
704 $(SRC)\objects-x.c \
|
|
705 $(SRC)\redisplay-x.c \
|
|
706 $(SRC)\scrollbar-x.c \
|
|
707 $(SRC)\balloon-x.c \
|
|
708 $(SRC)\xgccache.c \
|
|
709 $(SRC)\xmu.c \
|
|
710 $(SRC)\select-x.c
|
213
|
711 !endif
|
|
712
|
|
713 !if $(HAVE_MSW)
|
219
|
714 DOC_SRC7=\
|
404
|
715 $(SRC)\console-msw.c \
|
|
716 $(SRC)\device-msw.c \
|
|
717 $(SRC)\event-msw.c \
|
|
718 $(SRC)\frame-msw.c \
|
|
719 $(SRC)\glyphs-msw.c \
|
|
720 $(SRC)\gui-msw.c \
|
|
721 $(SRC)\menubar-msw.c \
|
|
722 $(SRC)\objects-msw.c \
|
|
723 $(SRC)\redisplay-msw.c \
|
|
724 $(SRC)\scrollbar-msw.c \
|
|
725 $(SRC)\select-msw.c \
|
276
|
726 $(MSW_C_DIRED_SRC) \
|
286
|
727 $(MSW_TOOLBAR_SRC) \
|
373
|
728 $(MSW_DIALOG_SRC) \
|
|
729 $(MSW_GIF_SRC)
|
213
|
730 !endif
|
|
731
|
267
|
732 !if $(HAVE_MULE)
|
265
|
733 DOC_SRC8=\
|
404
|
734 $(SRC)\mule.c \
|
|
735 $(SRC)\mule-charset.c \
|
|
736 $(SRC)\mule-ccl.c
|
388
|
737 ! if $(HAVE_X)
|
404
|
738 DOC_SRC8=$(DOC_SRC8) $(SRC)\input-method-xlib.c
|
388
|
739 ! endif
|
213
|
740 !endif
|
118
|
741
|
219
|
742 !if $(DEBUG_XEMACS)
|
267
|
743 DOC_SRC9=\
|
404
|
744 $(SRC)\debug.c \
|
|
745 $(SRC)\tests.c
|
398
|
746 !endif
|
|
747
|
|
748 !if !$(USE_SYSTEM_MALLOC)
|
|
749 DOC_SRC10=\
|
404
|
750 $(SRC)\free-hook.c \
|
|
751 $(SRC)\gmalloc.c \
|
|
752 $(SRC)\ntheap.c \
|
|
753 $(SRC)\vm-limit.c
|
398
|
754 !endif
|
|
755
|
|
756 !if !$(USE_PORTABLE_DUMPER)
|
|
757 DOC_SRC11=\
|
404
|
758 $(SRC)\unexnt.c
|
219
|
759 !endif
|
|
760
|
118
|
761 #------------------------------------------------------------------------------
|
|
762
|
|
763 # TEMACS Executable
|
|
764
|
294
|
765 # This may not exist
|
371
|
766 !if "$(emacs_beta_version)" != ""
|
294
|
767 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
|
|
768 !ENDIF
|
|
769
|
398
|
770 !if !$(USE_PORTABLE_DUMPER)
|
404
|
771 TEMACS_ENTRYPOINT=-entry:_start
|
|
772 !else
|
|
773 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
|
398
|
774 !endif
|
|
775
|
404
|
776 TEMACS_DIR=$(SRC)
|
183
|
777 TEMACS=$(TEMACS_DIR)\temacs.exe
|
213
|
778 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
|
404
|
779 TEMACS_SRC=$(SRC)
|
276
|
780 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
|
398
|
781 oldnames.lib kernel32.lib user32.lib gdi32.lib advapi32.lib \
|
404
|
782 shell32.lib wsock32.lib winmm.lib winspool.lib ole32.lib uuid.lib $(LIBC_LIB)
|
223
|
783 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
|
404
|
784 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
|
223
|
785 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
|
404
|
786 -heap:0x00100000 -nodefaultlib -incremental:no
|
398
|
787 TEMACS_CPP_FLAGS=-c \
|
396
|
788 $(CFLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
|
183
|
789 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
790 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
294
|
791 $(EMACS_BETA_VERSION) \
|
183
|
792 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
|
298
|
793 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
|
269
|
794 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
|
219
|
795
|
213
|
796 !if $(HAVE_X)
|
|
797 TEMACS_X_OBJS=\
|
|
798 $(OUTDIR)\balloon-x.obj \
|
|
799 $(OUTDIR)\balloon_help.obj \
|
|
800 $(OUTDIR)\console-x.obj \
|
|
801 $(OUTDIR)\device-x.obj \
|
|
802 $(OUTDIR)\dialog-x.obj \
|
|
803 $(OUTDIR)\EmacsFrame.obj \
|
|
804 $(OUTDIR)\EmacsManager.obj \
|
|
805 $(OUTDIR)\EmacsShell.obj \
|
|
806 $(OUTDIR)\TopLevelEmacsShell.obj\
|
|
807 $(OUTDIR)\TransientEmacsShell.obj\
|
|
808 $(OUTDIR)\event-Xt.obj \
|
|
809 $(OUTDIR)\frame-x.obj \
|
|
810 $(OUTDIR)\glyphs-x.obj \
|
|
811 $(OUTDIR)\gui-x.obj \
|
|
812 $(OUTDIR)\menubar-x.obj \
|
|
813 $(OUTDIR)\objects-x.obj \
|
|
814 $(OUTDIR)\redisplay-x.obj \
|
|
815 $(OUTDIR)\scrollbar-x.obj \
|
|
816 $(OUTDIR)\xgccache.obj \
|
|
817 $(OUTDIR)\xmu.obj \
|
398
|
818 $(OUTDIR)\select-x.obj
|
213
|
819 !endif
|
|
820
|
|
821 !if $(HAVE_MSW)
|
|
822 TEMACS_MSW_OBJS=\
|
|
823 $(OUTDIR)\console-msw.obj \
|
|
824 $(OUTDIR)\device-msw.obj \
|
|
825 $(OUTDIR)\event-msw.obj \
|
|
826 $(OUTDIR)\frame-msw.obj \
|
269
|
827 $(OUTDIR)\glyphs-msw.obj \
|
388
|
828 $(OUTDIR)\gui-msw.obj \
|
231
|
829 $(OUTDIR)\menubar-msw.obj \
|
213
|
830 $(OUTDIR)\objects-msw.obj \
|
|
831 $(OUTDIR)\redisplay-msw.obj \
|
231
|
832 $(OUTDIR)\scrollbar-msw.obj \
|
263
|
833 $(OUTDIR)\select-msw.obj \
|
276
|
834 $(MSW_C_DIRED_OBJ) \
|
286
|
835 $(MSW_TOOLBAR_OBJ) \
|
373
|
836 $(MSW_DIALOG_OBJ) \
|
|
837 $(MSW_GIF_OBJ)
|
213
|
838 !endif
|
|
839
|
|
840 !if $(HAVE_MULE)
|
|
841 TEMACS_MULE_OBJS=\
|
|
842 $(OUTDIR)\mule.obj \
|
|
843 $(OUTDIR)\mule-charset.obj \
|
398
|
844 $(OUTDIR)\mule-ccl.obj
|
388
|
845 ! if $(HAVE_X)
|
|
846 TEMACS_MULE_OBJS=\
|
|
847 $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
|
|
848 ! endif
|
219
|
849 !endif
|
|
850
|
|
851 !if $(DEBUG_XEMACS)
|
|
852 TEMACS_DEBUG_OBJS=\
|
398
|
853 $(OUTDIR)\debug.obj \
|
|
854 $(OUTDIR)\tests.obj
|
|
855 !endif
|
|
856
|
|
857 !if !$(USE_SYSTEM_MALLOC)
|
|
858 TEMACS_ALLOC_OBJS=\
|
|
859 $(OUTDIR)\free-hook.obj \
|
|
860 $(OUTDIR)\gmalloc.obj \
|
|
861 $(OUTDIR)\ntheap.obj \
|
|
862 $(OUTDIR)\vm-limit.obj
|
|
863 !endif
|
|
864
|
|
865 !if !$(USE_PORTABLE_DUMPER)
|
|
866 TEMACS_DUMP_OBJS=\
|
|
867 $(OUTDIR)\unexnt.obj
|
213
|
868 !endif
|
|
869
|
118
|
870 TEMACS_OBJS= \
|
213
|
871 $(TEMACS_X_OBJS)\
|
|
872 $(TEMACS_MSW_OBJS)\
|
265
|
873 $(TEMACS_CODING_OBJS)\
|
213
|
874 $(TEMACS_MULE_OBJS)\
|
219
|
875 $(TEMACS_DEBUG_OBJS)\
|
398
|
876 $(TEMACS_ALLOC_OBJS)\
|
|
877 $(TEMACS_DUMP_OBJS)\
|
183
|
878 $(OUTDIR)\abbrev.obj \
|
|
879 $(OUTDIR)\alloc.obj \
|
|
880 $(OUTDIR)\alloca.obj \
|
|
881 $(OUTDIR)\blocktype.obj \
|
|
882 $(OUTDIR)\buffer.obj \
|
|
883 $(OUTDIR)\bytecode.obj \
|
|
884 $(OUTDIR)\callint.obj \
|
|
885 $(OUTDIR)\callproc.obj \
|
|
886 $(OUTDIR)\casefiddle.obj \
|
|
887 $(OUTDIR)\casetab.obj \
|
|
888 $(OUTDIR)\chartab.obj \
|
|
889 $(OUTDIR)\cmdloop.obj \
|
|
890 $(OUTDIR)\cmds.obj \
|
|
891 $(OUTDIR)\console-stream.obj \
|
|
892 $(OUTDIR)\console.obj \
|
|
893 $(OUTDIR)\data.obj \
|
|
894 $(OUTDIR)\device.obj \
|
|
895 $(OUTDIR)\dired.obj \
|
|
896 $(OUTDIR)\doc.obj \
|
|
897 $(OUTDIR)\doprnt.obj \
|
284
|
898 $(OUTDIR)\dragdrop.obj \
|
183
|
899 $(OUTDIR)\dynarr.obj \
|
|
900 $(OUTDIR)\editfns.obj \
|
|
901 $(OUTDIR)\elhash.obj \
|
|
902 $(OUTDIR)\emacs.obj \
|
|
903 $(OUTDIR)\eval.obj \
|
|
904 $(OUTDIR)\event-stream.obj \
|
|
905 $(OUTDIR)\events.obj \
|
|
906 $(OUTDIR)\extents.obj \
|
|
907 $(OUTDIR)\faces.obj \
|
267
|
908 $(OUTDIR)\file-coding.obj \
|
183
|
909 $(OUTDIR)\fileio.obj \
|
|
910 $(OUTDIR)\filemode.obj \
|
|
911 $(OUTDIR)\floatfns.obj \
|
|
912 $(OUTDIR)\fns.obj \
|
|
913 $(OUTDIR)\font-lock.obj \
|
|
914 $(OUTDIR)\frame.obj \
|
|
915 $(OUTDIR)\general.obj \
|
|
916 $(OUTDIR)\glyphs.obj \
|
280
|
917 $(OUTDIR)\glyphs-eimage.obj \
|
388
|
918 $(OUTDIR)\glyphs-widget.obj \
|
183
|
919 $(OUTDIR)\gui.obj \
|
398
|
920 $(OUTDIR)\gutter.obj \
|
183
|
921 $(OUTDIR)\hash.obj \
|
|
922 $(OUTDIR)\indent.obj \
|
269
|
923 $(OUTDIR)\imgproc.obj \
|
183
|
924 $(OUTDIR)\insdel.obj \
|
|
925 $(OUTDIR)\intl.obj \
|
|
926 $(OUTDIR)\keymap.obj \
|
213
|
927 $(OUTDIR)\line-number.obj \
|
183
|
928 $(OUTDIR)\lread.obj \
|
|
929 $(OUTDIR)\lstream.obj \
|
|
930 $(OUTDIR)\macros.obj \
|
231
|
931 $(OUTDIR)\menubar.obj \
|
183
|
932 $(OUTDIR)\marker.obj \
|
|
933 $(OUTDIR)\md5.obj \
|
|
934 $(OUTDIR)\minibuf.obj \
|
|
935 $(OUTDIR)\nt.obj \
|
298
|
936 $(OUTDIR)\ntplay.obj \
|
183
|
937 $(OUTDIR)\ntproc.obj \
|
|
938 $(OUTDIR)\objects.obj \
|
|
939 $(OUTDIR)\opaque.obj \
|
|
940 $(OUTDIR)\print.obj \
|
|
941 $(OUTDIR)\process.obj \
|
274
|
942 $(OUTDIR)\process-nt.obj \
|
223
|
943 $(OUTDIR)\profile.obj \
|
183
|
944 $(OUTDIR)\rangetab.obj \
|
|
945 $(OUTDIR)\realpath.obj \
|
|
946 $(OUTDIR)\redisplay-output.obj \
|
|
947 $(OUTDIR)\redisplay.obj \
|
|
948 $(OUTDIR)\regex.obj \
|
225
|
949 $(OUTDIR)\scrollbar.obj \
|
183
|
950 $(OUTDIR)\search.obj \
|
398
|
951 $(OUTDIR)\select.obj \
|
183
|
952 $(OUTDIR)\signal.obj \
|
|
953 $(OUTDIR)\sound.obj \
|
|
954 $(OUTDIR)\specifier.obj \
|
|
955 $(OUTDIR)\strftime.obj \
|
|
956 $(OUTDIR)\symbols.obj \
|
|
957 $(OUTDIR)\syntax.obj \
|
|
958 $(OUTDIR)\sysdep.obj \
|
|
959 $(OUTDIR)\tparam.obj \
|
|
960 $(OUTDIR)\undo.obj \
|
197
|
961 $(OUTDIR)\widget.obj \
|
404
|
962 $(OUTDIR)\window.obj
|
155
|
963
|
213
|
964 # Rules
|
118
|
965
|
213
|
966 .SUFFIXES:
|
398
|
967 .SUFFIXES: .c .obj .texi .info
|
118
|
968
|
213
|
969 # nmake rule
|
396
|
970 !if $(DEBUG_XEMACS)
|
213
|
971 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
396
|
972 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ -Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
|
|
973 !else
|
|
974 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
|
975 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@
|
|
976 !endif
|
118
|
977
|
183
|
978 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
388
|
979 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
|
118
|
980
|
183
|
981 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
388
|
982 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
|
118
|
983
|
398
|
984 $(OUTDIR)\alloc.obj: $(TEMACS_SRC)\alloc.c
|
223
|
985
|
183
|
986 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
|
|
987 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
|
118
|
988
|
183
|
989 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
|
|
990 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
|
118
|
991
|
404
|
992 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS) $(OUTDIR)\xemacs.res
|
396
|
993 !if $(DEBUG_XEMACS)
|
|
994 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
|
|
995 bscmake -nologo -o$(TEMACS_BROWSE) @bscmake.tmp
|
398
|
996 @$(DEL) bscmake.tmp
|
|
997 !endif
|
|
998 !if $(USE_PORTABLE_DUMPER)
|
|
999 @if exist $(TEMACS_DIR)\xemacs.dmp del $(TEMACS_DIR)\xemacs.dmp
|
213
|
1000 link.exe @<<
|
404
|
1001 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS)
|
213
|
1002 <<
|
404
|
1003 !else
|
|
1004 link.exe @<<
|
|
1005 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS)
|
|
1006 <<
|
|
1007 !endif
|
213
|
1008
|
396
|
1009 $(OUTDIR)\xemacs.res: xemacs.rc
|
|
1010 rc -Fo$@ xemacs.rc
|
213
|
1011
|
398
|
1012 # Section handling automated tests starts here
|
|
1013
|
404
|
1014 PROGNAME=$(SRC)\xemacs.exe
|
398
|
1015 blddir=$(MAKEDIR:\=\\)\\..
|
404
|
1016 temacs_loadup=$(TEMACS) -batch -l $(LISP)/loadup.el
|
398
|
1017 dump_temacs = $(temacs_loadup) dump
|
|
1018 run_temacs = $(temacs_loadup) run-temacs
|
|
1019 ## We have automated tests!!
|
|
1020 testdir=../tests/automated
|
|
1021 batch_test_emacs=-batch -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
|
|
1022
|
|
1023 # .PHONY: check check-temacs
|
|
1024
|
|
1025 check:
|
404
|
1026 cd $(SRC)
|
398
|
1027 $(PROGNAME) $(batch_test_emacs)
|
|
1028
|
|
1029 check-temacs:
|
404
|
1030 cd $(SRC)
|
398
|
1031 set EMACSBOOTSTRAPLOADPATH=$(LISP)
|
|
1032 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
|
|
1033 $(run_temacs) $(batch_test_emacs)
|
|
1034
|
|
1035 # Section handling automated tests ends here
|
|
1036
|
404
|
1037 # Section handling tags starts here
|
|
1038
|
|
1039 tagslisp=lisp
|
|
1040
|
|
1041 tags:
|
|
1042 @echo If you don't have a copy of etags around, then do 'make lib-src' first.
|
|
1043 @echo To make use of the tags file, put the following in your .emacs:
|
|
1044 @echo (setq tag-table-alist
|
|
1045 @echo '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
|
|
1046 cd $(XEMACS)
|
|
1047 $(DEL) TAGS
|
|
1048 set PATH=lib-src;%PATH%
|
|
1049 # argh!!! we need two ^^'s to get one ^, but only before a backslash.
|
|
1050 # i have no idea why. probably some obscure nmake quoting convention.
|
|
1051 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
|
|
1052 etags -a -l none -r "/^(def\(var\|un\|alias\|const\|macro\|subst\|struct\|face\|group\|custom\|ine-\(function\|compiler-macro\|[a-z-]+alias\)\)[ ]+'?\([^ ]+\)/\3/" $(tagslisp)\*.el
|
|
1053
|
|
1054 # Section handling tags ends here
|
|
1055
|
398
|
1056 # Section handling info starts here
|
|
1057
|
|
1058 !if !defined(MAKEINFO)
|
|
1059 MAKEINFO=$(PROGNAME) -vanilla -batch -l texinfmt -f batch-texinfo-format
|
|
1060 !endif
|
|
1061
|
|
1062 MANDIR = $(XEMACS)\man
|
|
1063 INFODIR = $(XEMACS)\info
|
|
1064 INFO_FILES= \
|
|
1065 $(INFODIR)\cl.info \
|
|
1066 $(INFODIR)\custom.info \
|
|
1067 $(INFODIR)\emodules.info \
|
|
1068 $(INFODIR)\external-widget.info \
|
|
1069 $(INFODIR)\info.info \
|
|
1070 $(INFODIR)\standards.info \
|
|
1071 $(INFODIR)\term.info \
|
|
1072 $(INFODIR)\termcap.info \
|
|
1073 $(INFODIR)\texinfo.info \
|
|
1074 $(INFODIR)\widget.info \
|
|
1075 $(INFODIR)\xemacs-faq.info \
|
|
1076 $(INFODIR)\xemacs.info \
|
|
1077 $(INFODIR)\lispref.info \
|
|
1078 $(INFODIR)\new-users-guide.info \
|
|
1079 $(INFODIR)\internals.info
|
|
1080
|
|
1081 {$(MANDIR)}.texi{$(INFODIR)}.info:
|
|
1082 cd $(MANDIR)
|
|
1083 $(MAKEINFO) $**
|
|
1084
|
|
1085 XEMACS_SRCS = \
|
|
1086 $(MANDIR)\xemacs\abbrevs.texi \
|
|
1087 $(MANDIR)\xemacs\basic.texi \
|
|
1088 $(MANDIR)\xemacs\buffers.texi \
|
|
1089 $(MANDIR)\xemacs\building.texi \
|
|
1090 $(MANDIR)\xemacs\calendar.texi \
|
|
1091 $(MANDIR)\xemacs\cmdargs.texi \
|
|
1092 $(MANDIR)\xemacs\custom.texi \
|
|
1093 $(MANDIR)\xemacs\display.texi \
|
|
1094 $(MANDIR)\xemacs\entering.texi \
|
|
1095 $(MANDIR)\xemacs\files.texi \
|
|
1096 $(MANDIR)\xemacs\fixit.texi \
|
|
1097 $(MANDIR)\xemacs\frame.texi \
|
|
1098 $(MANDIR)\xemacs\glossary.texi \
|
|
1099 $(MANDIR)\xemacs\gnu.texi \
|
|
1100 $(MANDIR)\xemacs\help.texi \
|
|
1101 $(MANDIR)\xemacs\indent.texi \
|
|
1102 $(MANDIR)\xemacs\keystrokes.texi \
|
|
1103 $(MANDIR)\xemacs\killing.texi \
|
|
1104 $(MANDIR)\xemacs\m-x.texi \
|
|
1105 $(MANDIR)\xemacs\major.texi \
|
|
1106 $(MANDIR)\xemacs\mark.texi \
|
|
1107 $(MANDIR)\xemacs\menus.texi \
|
|
1108 $(MANDIR)\xemacs\mini.texi \
|
|
1109 $(MANDIR)\xemacs\misc.texi \
|
|
1110 $(MANDIR)\xemacs\mouse.texi \
|
|
1111 $(MANDIR)\xemacs\mule.texi \
|
|
1112 $(MANDIR)\xemacs\new.texi \
|
|
1113 $(MANDIR)\xemacs\packages.texi \
|
|
1114 $(MANDIR)\xemacs\picture.texi \
|
|
1115 $(MANDIR)\xemacs\programs.texi \
|
|
1116 $(MANDIR)\xemacs\reading.texi \
|
|
1117 $(MANDIR)\xemacs\regs.texi \
|
|
1118 $(MANDIR)\xemacs\search.texi \
|
|
1119 $(MANDIR)\xemacs\sending.texi \
|
|
1120 $(MANDIR)\xemacs\startup.texi \
|
|
1121 $(MANDIR)\xemacs\text.texi \
|
|
1122 $(MANDIR)\xemacs\trouble.texi \
|
|
1123 $(MANDIR)\xemacs\undo.texi \
|
|
1124 $(MANDIR)\xemacs\windows.texi \
|
|
1125 $(MANDIR)\xemacs\xemacs.texi
|
|
1126
|
|
1127 LISPREF_SRCS = \
|
|
1128 $(MANDIR)\lispref\abbrevs.texi \
|
|
1129 $(MANDIR)\lispref\annotations.texi \
|
|
1130 $(MANDIR)\lispref\back.texi \
|
|
1131 $(MANDIR)\lispref\backups.texi \
|
|
1132 $(MANDIR)\lispref\buffers.texi \
|
|
1133 $(MANDIR)\lispref\building.texi \
|
|
1134 $(MANDIR)\lispref\commands.texi \
|
|
1135 $(MANDIR)\lispref\compile.texi \
|
|
1136 $(MANDIR)\lispref\consoles-devices.texi \
|
|
1137 $(MANDIR)\lispref\control.texi \
|
|
1138 $(MANDIR)\lispref\customize.texi \
|
|
1139 $(MANDIR)\lispref\databases.texi \
|
|
1140 $(MANDIR)\lispref\debugging.texi \
|
|
1141 $(MANDIR)\lispref\dialog.texi \
|
|
1142 $(MANDIR)\lispref\display.texi \
|
|
1143 $(MANDIR)\lispref\dragndrop.texi \
|
|
1144 $(MANDIR)\lispref\edebug-inc.texi \
|
|
1145 $(MANDIR)\lispref\edebug.texi \
|
|
1146 $(MANDIR)\lispref\errors.texi \
|
|
1147 $(MANDIR)\lispref\eval.texi \
|
|
1148 $(MANDIR)\lispref\extents.texi \
|
|
1149 $(MANDIR)\lispref\faces.texi \
|
|
1150 $(MANDIR)\lispref\files.texi \
|
|
1151 $(MANDIR)\lispref\frames.texi \
|
|
1152 $(MANDIR)\lispref\functions.texi \
|
|
1153 $(MANDIR)\lispref\glyphs.texi \
|
|
1154 $(MANDIR)\lispref\hash-tables.texi \
|
|
1155 $(MANDIR)\lispref\help.texi \
|
|
1156 $(MANDIR)\lispref\hooks.texi \
|
|
1157 $(MANDIR)\lispref\index.texi \
|
|
1158 $(MANDIR)\lispref\internationalization.texi \
|
|
1159 $(MANDIR)\lispref\intro.texi \
|
|
1160 $(MANDIR)\lispref\keymaps.texi \
|
|
1161 $(MANDIR)\lispref\ldap.texi \
|
|
1162 $(MANDIR)\lispref\lispref.texi \
|
|
1163 $(MANDIR)\lispref\lists.texi \
|
|
1164 $(MANDIR)\lispref\loading.texi \
|
|
1165 $(MANDIR)\lispref\locals.texi \
|
|
1166 $(MANDIR)\lispref\macros.texi \
|
|
1167 $(MANDIR)\lispref\maps.texi \
|
|
1168 $(MANDIR)\lispref\markers.texi \
|
|
1169 $(MANDIR)\lispref\menus.texi \
|
|
1170 $(MANDIR)\lispref\minibuf.texi \
|
|
1171 $(MANDIR)\lispref\modes.texi \
|
|
1172 $(MANDIR)\lispref\mouse.texi \
|
|
1173 $(MANDIR)\lispref\mule.texi \
|
|
1174 $(MANDIR)\lispref\numbers.texi \
|
|
1175 $(MANDIR)\lispref\objects.texi \
|
|
1176 $(MANDIR)\lispref\os.texi \
|
|
1177 $(MANDIR)\lispref\positions.texi \
|
|
1178 $(MANDIR)\lispref\processes.texi \
|
|
1179 $(MANDIR)\lispref\range-tables.texi \
|
|
1180 $(MANDIR)\lispref\scrollbars.texi \
|
|
1181 $(MANDIR)\lispref\searching.texi \
|
|
1182 $(MANDIR)\lispref\sequences.texi \
|
|
1183 $(MANDIR)\lispref\specifiers.texi \
|
|
1184 $(MANDIR)\lispref\streams.texi \
|
|
1185 $(MANDIR)\lispref\strings.texi \
|
|
1186 $(MANDIR)\lispref\symbols.texi \
|
|
1187 $(MANDIR)\lispref\syntax.texi \
|
|
1188 $(MANDIR)\lispref\text.texi \
|
|
1189 $(MANDIR)\lispref\tips.texi \
|
|
1190 $(MANDIR)\lispref\toolbar.texi \
|
|
1191 $(MANDIR)\lispref\tooltalk.texi \
|
|
1192 $(MANDIR)\lispref\variables.texi \
|
|
1193 $(MANDIR)\lispref\windows.texi \
|
|
1194 $(MANDIR)\lispref\x-windows.texi
|
|
1195
|
|
1196 INTERNALS_SRCS = \
|
|
1197 $(MANDIR)\internals\internals.texi \
|
|
1198 $(MANDIR)\internals\index.texi
|
|
1199
|
|
1200 NEW_USERS_GUIDE_SRCS = \
|
|
1201 $(MANDIR)\new-users-guide\custom1.texi \
|
|
1202 $(MANDIR)\new-users-guide\custom2.texi \
|
|
1203 $(MANDIR)\new-users-guide\edit.texi \
|
|
1204 $(MANDIR)\new-users-guide\enter.texi \
|
|
1205 $(MANDIR)\new-users-guide\files.texi \
|
|
1206 $(MANDIR)\new-users-guide\help.texi \
|
|
1207 $(MANDIR)\new-users-guide\modes.texi \
|
|
1208 $(MANDIR)\new-users-guide\new-users-guide.texi \
|
|
1209 $(MANDIR)\new-users-guide\region.texi \
|
|
1210 $(MANDIR)\new-users-guide\search.texi \
|
|
1211 $(MANDIR)\new-users-guide\xmenu.texi
|
|
1212
|
|
1213 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
|
|
1214 cd $(MANDIR)\xemacs
|
|
1215 $(MAKEINFO) xemacs.texi
|
|
1216 cd ..
|
|
1217
|
|
1218
|
|
1219 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
|
|
1220 cd $(MANDIR)\lispref
|
|
1221 $(MAKEINFO) lispref.texi
|
|
1222 cd ..
|
|
1223
|
|
1224 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
|
|
1225 cd $(MANDIR)\internals
|
|
1226 $(MAKEINFO) internals.texi
|
|
1227 cd ..
|
|
1228
|
|
1229 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
|
|
1230 cd $(MANDIR)\new-users-guide
|
|
1231 $(MAKEINFO) new-users-guide.texi
|
|
1232 cd ..
|
|
1233
|
|
1234 info: makeinfo-test $(INFO_FILES)
|
|
1235
|
|
1236 makeinfo-test:
|
|
1237 @<<makeinfo_test.bat
|
|
1238 @echo off
|
|
1239 if exist "$(MAKEINFO)" goto test_done
|
|
1240 @"$(PROGNAME)" -batch -vanilla -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
|
|
1241 @if not errorlevel 1 goto suggest_makeinfo
|
|
1242 @echo XEmacs `info' cannot be built!
|
|
1243 @echo Install XEmacs package `texinfo' (see README.packages).
|
|
1244 :suggest_makeinfo
|
|
1245 @echo Consider specifying path to makeinfo program: MAKEINFO=path
|
|
1246 @echo as this will build info docs faster than XEmacs using `texinfo'.
|
|
1247 @if errorlevel 1 exit 1
|
|
1248 :test_done
|
|
1249 <<NOKEEP
|
|
1250
|
|
1251 # Section handling info ends here
|
|
1252
|
118
|
1253 #------------------------------------------------------------------------------
|
|
1254
|
|
1255 # LISP bits 'n bobs
|
|
1256
|
213
|
1257 LOADPATH=$(LISP)
|
|
1258
|
398
|
1259 # Rebuild docfile target
|
|
1260 docfile ::
|
|
1261 if exist $(DOC) del $(DOC)
|
|
1262 docfile :: $(DOC)
|
|
1263
|
217
|
1264 $(DOC): $(LIB_SRC)\make-docfile.exe
|
398
|
1265 if exist $(DOC) del $(DOC)
|
|
1266 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
|
|
1267 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
|
278
|
1268 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
|
|
1269 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
|
|
1270 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
|
|
1271 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
|
|
1272 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
|
|
1273 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
|
|
1274 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
|
|
1275 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
|
|
1276 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
|
|
1277 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
|
398
|
1278 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC10)
|
|
1279 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC11)
|
183
|
1280
|
398
|
1281 update-elc:
|
388
|
1282 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
|
|
1283 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
|
278
|
1284 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
|
223
|
1285
|
278
|
1286 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
|
398
|
1287 # requirements have changed.
|
|
1288 dump-xemacs: temacs
|
278
|
1289 @echo >$(TEMACS_DIR)\SATISFIED
|
269
|
1290 cd $(TEMACS_DIR)
|
388
|
1291 set EMACSBOOTSTRAPLOADPATH=$(LISP);$(PACKAGE_PATH)
|
398
|
1292 set EMACSBOOTSTRAPMODULEPATH=$(MODULES)
|
278
|
1293 -1 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\loadup.el dump
|
398
|
1294 !if $(USE_PORTABLE_DUMPER)
|
404
|
1295 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
|
|
1296 link.exe @<<
|
|
1297 $(TEMACS_LFLAGS) -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS)
|
|
1298 <<
|
|
1299 # Make the resource section read/write since almost all of it is the dump
|
|
1300 # data which needs to be writable. This avoids having to copy it.
|
|
1301 editbin -nologo -section:.rsrc,rw xemacs.exe
|
|
1302 del $(TEMACS_DIR)\xemacs.dmp
|
398
|
1303 !endif
|
|
1304 cd $(NT)
|
278
|
1305 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
|
118
|
1306 #------------------------------------------------------------------------------
|
|
1307
|
|
1308 # use this rule to build the complete system
|
404
|
1309 all: installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
|
398
|
1310 $(LIB_SRC_TOOLS) $(RUNEMACS) $(TEMACS) update-elc $(DOC) dump-xemacs \
|
|
1311 $(LISP)/auto-autoloads.el $(LISP)/custom-load.el info
|
118
|
1312
|
398
|
1313 temacs: $(LASTFILE) $(TEMACS)
|
231
|
1314
|
118
|
1315 # use this rule to install the system
|
373
|
1316 install: all
|
398
|
1317 cd $(NT)
|
373
|
1318 @echo Installing in $(INSTALL_DIR) ...
|
384
|
1319 @echo PlaceHolder > PlaceHolder
|
373
|
1320 @xcopy /q PROBLEMS "$(INSTALL_DIR)\"
|
384
|
1321 @xcopy /q PlaceHolder "$(INSTALL_DIR)\lock\"
|
398
|
1322 @$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
|
298
|
1323 @xcopy /q $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
|
373
|
1324 @copy $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
382
|
1325 @copy $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
404
|
1326 @copy $(SRC)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
373
|
1327 @copy $(RUNEMACS) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
298
|
1328 @xcopy /e /q $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
|
|
1329 @xcopy /e /q $(XEMACS)\info "$(INSTALL_DIR)\info\"
|
|
1330 @xcopy /e /q $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
|
384
|
1331 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
|
|
1332 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
|
398
|
1333 @$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
|
384
|
1334 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
|
398
|
1335 @$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
|
384
|
1336 @xcopy /q PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
|
398
|
1337 @$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
|
|
1338 @$(DEL) PlaceHolder
|
371
|
1339
|
213
|
1340 distclean:
|
398
|
1341 $(DEL) *.bak
|
|
1342 $(DEL) *.orig
|
|
1343 $(DEL) *.rej
|
|
1344 $(DEL) *.tmp
|
|
1345 $(DEL) $(XEMACS)\Installation
|
213
|
1346 cd $(OUTDIR)
|
398
|
1347 $(DEL) *.lib
|
|
1348 $(DEL) *.obj
|
|
1349 $(DEL) *.pdb
|
|
1350 $(DEL) *.res
|
|
1351 $(DEL) *.sbr
|
286
|
1352 cd $(XEMACS)\$(TEMACS_DIR)
|
398
|
1353 $(DEL) config.h
|
|
1354 $(DEL) paths.h
|
|
1355 $(DEL) Emacs.ad.h
|
|
1356 $(DEL) *.bak
|
|
1357 $(DEL) *.orig
|
|
1358 $(DEL) *.rej
|
|
1359 $(DEL) *.exe
|
|
1360 $(DEL) *.map
|
|
1361 $(DEL) *.bsc
|
|
1362 $(DEL) *.pdb
|
213
|
1363 cd $(LIB_SRC)
|
398
|
1364 $(DEL) DOC
|
|
1365 $(DEL) *.bak
|
|
1366 $(DEL) *.orig
|
|
1367 $(DEL) *.rej
|
|
1368 $(DEL) *.exe
|
|
1369 $(DEL) *.obj
|
|
1370 $(DEL) *.pdb
|
|
1371 $(DEL) *.res
|
|
1372 $(DEL) $(CONFIG_VALUES)
|
213
|
1373 cd $(LISP)
|
398
|
1374 $(DEL) /s /q *.bak *.elc *.orig *.rej
|
|
1375 cd $(INFODIR)
|
|
1376 $(DEL) *.info*
|
213
|
1377
|
|
1378 depend:
|
398
|
1379 cd $(SRCDIR)
|
|
1380 perl ./make-src-depend > depend.tmp
|
|
1381 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
|
|
1382
|
404
|
1383 $(XEMACS)\Installation:: installation
|
398
|
1384
|
404
|
1385 installation::
|
398
|
1386 @type > $(XEMACS)\Installation <<
|
|
1387 !if defined(OS)
|
|
1388 OS: $(OS)
|
|
1389 !endif
|
|
1390
|
|
1391 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
|
|
1392
|
|
1393 Building XEmacs in \"$(MAKEDIR:\=\\)\".
|
|
1394 !if defined(CCV)
|
|
1395 Using compiler \"$(CC) $(CFLAGS)\".
|
|
1396 !endif
|
|
1397 Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
|
|
1398 Package path is $(PATH_PACKAGEPATH:"=\").
|
|
1399 !if $(INFODOCK)
|
|
1400 Building InfoDock.
|
|
1401 !endif
|
|
1402 !if $(HAVE_MSW)
|
|
1403 Compiling in support for Microsoft Windows native GUI.
|
|
1404 !endif
|
|
1405 !if $(HAVE_X)
|
|
1406 Compiling in support for X-Windows.
|
|
1407 !endif
|
|
1408 !if $(HAVE_MULE)
|
|
1409 Compiling in MULE.
|
|
1410 !endif
|
|
1411 !if $(HAVE_XPM)
|
|
1412 Compiling in support for XPM images.
|
|
1413 !else
|
|
1414 --------------------------------------------------------------------
|
|
1415 WARNING: Compiling without XPM support.
|
|
1416 WARNING: You should strongly consider installing XPM.
|
|
1417 WARNING: Otherwise toolbars and other graphics will look suboptimal.
|
|
1418 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
|
|
1419 --------------------------------------------------------------------
|
|
1420 !endif
|
|
1421 !if $(HAVE_GIF)
|
|
1422 Compiling in support for GIF images.
|
|
1423 !endif
|
|
1424 !if $(HAVE_PNG)
|
|
1425 Compiling in support for PNG images.
|
|
1426 !else
|
|
1427 --------------------------------------------------------------------
|
|
1428 WARNING: Compiling without PNG image support.
|
|
1429 WARNING: You should strongly consider installing the PNG libraries.
|
|
1430 WARNING: Otherwise certain images and glyphs may not display.
|
|
1431 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
|
|
1432 --------------------------------------------------------------------
|
|
1433 !endif
|
|
1434 !if $(HAVE_TIFF)
|
|
1435 Compiling in support for TIFF images.
|
|
1436 !endif
|
|
1437 !if $(HAVE_JPEG)
|
|
1438 Compiling in support for JPEG images.
|
|
1439 !endif
|
|
1440 !if $(HAVE_XFACE)
|
|
1441 Compiling in support for X-Face message headers.
|
|
1442 !endif
|
|
1443 !if $(HAVE_TOOLBARS)
|
|
1444 Compiling in support for toolbars.
|
|
1445 !endif
|
|
1446 !if $(HAVE_DIALOGS)
|
|
1447 Compiling in support for dialogs.
|
|
1448 !endif
|
|
1449 !if $(HAVE_WIDGETS)
|
|
1450 Compiling in support for widgets.
|
|
1451 !endif
|
|
1452 !if $(HAVE_NATIVE_SOUND)
|
|
1453 Compiling in support for native sounds.
|
|
1454 !endif
|
|
1455 !if $(HAVE_MSW_C_DIRED)
|
|
1456 Compiling in fast dired implementation.
|
|
1457 !else
|
|
1458 --------------------------------------------------------------------
|
|
1459 WARNING: Define HAVE_MSW_C_DIRED to be non-zero if you want XEmacs
|
|
1460 WARNING: to use C primitives to significantly speed up dired, at the
|
|
1461 WARNING: expense of an additional ~4KB of code.
|
|
1462 --------------------------------------------------------------------
|
|
1463 !endif
|
|
1464 !if $(USE_MINIMAL_TAGBITS)
|
|
1465 Using minimal tagbits.
|
|
1466 !endif
|
|
1467 !if $(USE_INDEXED_LRECORD_IMPLEMENTATION)
|
|
1468 Using indexed lrecord implementation.
|
|
1469 !endif
|
|
1470 !if $(USE_UNION_TYPE)
|
|
1471 Using union type for Lisp object storage.
|
|
1472 !endif
|
|
1473 !if $(USE_PORTABLE_DUMPER)
|
|
1474 Using portable dumper.
|
|
1475 !endif
|
|
1476 !if $(USE_SYSTEM_MALLOC)
|
|
1477 Using system malloc.
|
|
1478 !endif
|
|
1479 !if $(USE_CRTDLL)
|
|
1480 Using DLL version of C runtime library
|
|
1481 !endif
|
|
1482 !if $(DEBUG_XEMACS)
|
|
1483 Compiling in extra debug checks. XEmacs will be slow!
|
|
1484 !endif
|
|
1485 <<NOKEEP
|
|
1486 @echo --------------------------------------------------------------------
|
|
1487 @type $(XEMACS)\Installation
|
|
1488 @echo --------------------------------------------------------------------
|
|
1489
|
|
1490 # Update auto-autoloads.el and custom-load.el similar to what
|
|
1491 # XEmacs.rules does for xemacs-packages.
|
|
1492 VANILLA=-vanilla
|
|
1493 FORCE:
|
|
1494 $(LISP)\auto-autoloads.el: FORCE
|
|
1495 @$(DEL) $(LISP)\auto-autoloads.el
|
|
1496 $(PROGNAME) $(VANILLA) -batch \
|
|
1497 -l autoload -f batch-update-directory $(LISP)
|
|
1498 $(PROGNAME) $(VANILLA) -batch \
|
|
1499 -f batch-byte-compile $@
|
|
1500 @$(DEL) $(LISP)\auto-autoloads.el~
|
|
1501
|
|
1502 $(LISP)\custom-load.el: FORCE
|
|
1503 $(PROGNAME) $(VANILLA) -batch -l cus-dep \
|
|
1504 -f Custom-make-dependencies $(LISP)
|
213
|
1505
|
|
1506 # DO NOT DELETE THIS LINE -- make depend depends on it.
|
267
|
1507
|