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