795
|
1 # Makefile for Microsoft NMAKE -*- Makefile -*-
|
|
2 #
|
428
|
3 # Copyright (C) 1995 Board of Trustees, University of Illinois.
|
776
|
4 # Copyright (C) 1995, 1996, 2000, 2001, 2002 Ben Wing.
|
795
|
5 # Copyright (C) 1997, 1998, 2000 Jonathan Harris.
|
428
|
6 # Copyright (C) 1995 Sun Microsystems, Inc.
|
|
7 # Copyright (C) 1998 Free Software Foundation, Inc.
|
|
8 #
|
|
9 # This file is part of XEmacs.
|
|
10 #
|
|
11 # XEmacs is free software; you can redistribute it and/or modify it
|
|
12 # under the terms of the GNU General Public License as published by the
|
|
13 # Free Software Foundation; either version 2, or (at your option) any
|
|
14 # later version.
|
|
15 #
|
|
16 # XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
17 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
18 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
19 # for more details.
|
|
20 #
|
|
21 # You should have received a copy of the GNU General Public License
|
|
22 # along with XEmacs; see the file COPYING. If not, write to
|
|
23 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
24 # Boston, MA 02111-1307, USA.
|
|
25 #
|
|
26 # Synched up with: Not in FSF.
|
|
27 #
|
|
28
|
442
|
29 default: all
|
|
30
|
444
|
31 # APA: Since there seems to be no way to determine the directory where
|
|
32 # xemacs.mak is located (from within nmake) we just insist on the user
|
|
33 # to invoke nmake in the directory where xemacs.mak is.
|
|
34 !if !exist("$(MAKEDIR)\xemacs.mak")
|
|
35 !error Please run nmake from the directory of this makefile (xemacs\nt).
|
|
36 !endif
|
|
37
|
|
38 XEMACS=$(MAKEDIR)\..
|
428
|
39 LISP=$(XEMACS)\lisp
|
442
|
40 LIB_SRC=$(XEMACS)\lib-src
|
428
|
41 MODULES=$(XEMACS)\modules
|
795
|
42 NT=$(MAKEDIR)
|
428
|
43 OUTDIR=$(NT)\obj
|
442
|
44 SRC=$(XEMACS)\src
|
|
45 LWLIB_SRCDIR=$(XEMACS)\lwlib
|
|
46 MAKEDIRSTRING=$(MAKEDIR:\=\\)
|
|
47 XEMACSDIRSTRING=$(MAKEDIRSTRING:\\nt=)
|
|
48
|
428
|
49
|
637
|
50 # Common operations
|
|
51
|
|
52 # Note that some versions of some commands are deficient.
|
428
|
53
|
637
|
54 # Define the 'del' command to use
|
|
55 # WinME's DEL command can only handle one argument and only has the /P flag.
|
|
56 # So only delete one glob at a time. Override flags in config.inc.
|
|
57 DEL=del
|
|
58
|
|
59 # Define the 'copy' command to use
|
583
|
60 # Suppress confirmation for overwriting files
|
669
|
61 # Use /r (instead of /y), which exists on Windows NT 4 and 5.
|
771
|
62 COPY=xcopy /q /y
|
|
63 COPYDIR=xcopy /q /y /e
|
583
|
64
|
428
|
65 # Program name and version
|
|
66
|
442
|
67 !include "$(XEMACS)\version.sh"
|
|
68
|
|
69 !include "config.inc"
|
428
|
70
|
|
71 !if !defined(INFODOCK)
|
|
72 INFODOCK=0
|
|
73 !endif
|
|
74
|
|
75 !if $(INFODOCK)
|
|
76 INFODOCK_VERSION_STRING=$(infodock_major_version).$(infodock_minor_version).$(infodock_build_version)
|
|
77 PROGRAM_DEFINES=-DINFODOCK \
|
|
78 -DPATH_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
|
79 -DPATH_PROGNAME=\"infodock\" \
|
442
|
80 -DEMACS_PROGNAME=\"infodock\" \
|
|
81 -DEMACS_VERSION=\"$(INFODOCK_VERSION_STRING)\" \
|
428
|
82 -DINFODOCK_MAJOR_VERSION=$(infodock_major_version) \
|
|
83 -DINFODOCK_MINOR_VERSION=$(infodock_minor_version) \
|
|
84 -DINFODOCK_BUILD_VERSION=$(infodock_build_version)
|
|
85 !else
|
496
|
86 XEMACS_VERSION_STRING=$(emacs_major_version).$(emacs_minor_version)
|
|
87 !if "$(emacs_beta_version)" != ""
|
488
|
88 !if "$(emacs_is_beta)" != ""
|
496
|
89 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING)-b$(emacs_beta_version)
|
428
|
90 !else
|
496
|
91 XEMACS_VERSION_STRING=$(XEMACS_VERSION_STRING).$(emacs_beta_version)
|
|
92 !endif
|
428
|
93 !endif
|
|
94 PROGRAM_DEFINES= \
|
|
95 -DPATH_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
442
|
96 -DPATH_PROGNAME=\"xemacs\" \
|
|
97 -DEMACS_VERSION=\"$(XEMACS_VERSION_STRING)\" \
|
|
98 -DEMACS_PROGNAME=\"xemacs\"
|
428
|
99 !endif
|
|
100
|
|
101 #
|
|
102 # Command line options defaults
|
|
103 #
|
|
104 !if !defined(INSTALL_DIR)
|
|
105 ! if $(INFODOCK)
|
|
106 INSTALL_DIR=c:\Program Files\Infodock\Infodock-$(INFODOCK_VERSION_STRING)
|
|
107 ! else
|
|
108 INSTALL_DIR=c:\Program Files\XEmacs\XEmacs-$(XEMACS_VERSION_STRING)
|
|
109 ! endif
|
|
110 !endif
|
771
|
111 !if !defined(MULE)
|
|
112 MULE=0
|
428
|
113 !endif
|
|
114 !if !defined(PACKAGE_PATH)
|
|
115 ! if !defined(PACKAGE_PREFIX)
|
|
116 PACKAGE_PREFIX=c:\Program Files\XEmacs
|
|
117 ! endif
|
771
|
118 ! if $(MULE)
|
428
|
119 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\mule-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
|
120 ! else
|
|
121 PACKAGE_PATH=~\.xemacs;;$(PACKAGE_PREFIX)\site-packages;$(PACKAGE_PREFIX)\xemacs-packages
|
|
122 ! endif
|
|
123 !endif
|
|
124 PATH_PACKAGEPATH="$(PACKAGE_PATH:\=\\)"
|
442
|
125 !if !defined(HAVE_MS_WINDOWS)
|
|
126 HAVE_MS_WINDOWS=1
|
428
|
127 !endif
|
442
|
128 !if !defined(HAVE_X_WINDOWS)
|
|
129 HAVE_X_WINDOWS=0
|
428
|
130 !endif
|
|
131 !if !defined(HAVE_XPM)
|
|
132 HAVE_XPM=0
|
|
133 !endif
|
|
134 !if !defined(HAVE_PNG)
|
|
135 HAVE_PNG=0
|
|
136 !endif
|
632
|
137 !if !defined(HAVE_ZLIB)
|
|
138 HAVE_ZLIB=$(HAVE_PNG)
|
|
139 !endif
|
428
|
140 !if !defined(HAVE_TIFF)
|
|
141 HAVE_TIFF=0
|
|
142 !endif
|
|
143 !if !defined(HAVE_JPEG)
|
|
144 HAVE_JPEG=0
|
|
145 !endif
|
|
146 !if !defined(HAVE_XFACE)
|
|
147 HAVE_XFACE=0
|
|
148 !endif
|
|
149 !if !defined(HAVE_GIF)
|
|
150 HAVE_GIF=1
|
|
151 !endif
|
488
|
152 !if !defined(HAVE_GTK)
|
|
153 HAVE_GTK=0
|
|
154 !endif
|
827
|
155 !if !defined(HAVE_MENUBARS)
|
|
156 HAVE_MENUBARS=1
|
|
157 !endif
|
|
158 !if !defined(HAVE_SCROLLBARS)
|
|
159 HAVE_SCROLLBARS=1
|
|
160 !endif
|
428
|
161 !if !defined(HAVE_TOOLBARS)
|
|
162 HAVE_TOOLBARS=$(HAVE_XPM)
|
|
163 !endif
|
|
164 !if !defined(HAVE_DIALOGS)
|
|
165 HAVE_DIALOGS=1
|
|
166 !endif
|
|
167 !if !defined(HAVE_NATIVE_SOUND)
|
|
168 HAVE_NATIVE_SOUND=1
|
|
169 !endif
|
|
170 !if !defined(HAVE_WIDGETS)
|
|
171 HAVE_WIDGETS=1
|
|
172 !endif
|
872
|
173 !if !defined(OPTIMIZED_BUILD)
|
|
174 OPTIMIZED_BUILD=1
|
|
175 !endif
|
|
176 !if !defined(USE_FASTCALL)
|
|
177 # #### Change to 1 when I check in the ws with support for fastcall
|
|
178 USE_FASTCALL=0
|
|
179 !endif
|
|
180 !if !defined(PROFILE_SUPPORT)
|
|
181 PROFILE_SUPPORT=0
|
|
182 !endif
|
428
|
183 !if !defined(DEBUG_XEMACS)
|
|
184 DEBUG_XEMACS=0
|
|
185 !endif
|
872
|
186 !if !defined(HAVE_VC6)
|
|
187 HAVE_VC6=1
|
834
|
188 !endif
|
800
|
189 !if !defined(ERROR_CHECK_ALL)
|
|
190 # Turn off when not a beta XEmacs.
|
|
191 ERROR_CHECK_ALL=1
|
|
192 !endif
|
442
|
193 !if !defined(QUICK_BUILD)
|
|
194 QUICK_BUILD=0
|
|
195 !endif
|
872
|
196 !if !defined(VERBOSECC)
|
|
197 VERBOSECC=0
|
|
198 !endif
|
|
199 !if !defined(DEPEND)
|
|
200 DEPEND=0
|
|
201 !endif
|
|
202 !if !defined(USE_PORTABLE_DUMPER)
|
|
203 USE_PORTABLE_DUMPER=1
|
|
204 !endif
|
428
|
205 !if !defined(USE_UNION_TYPE)
|
|
206 USE_UNION_TYPE=0
|
|
207 !endif
|
438
|
208 !if !defined(USE_MINITAR)
|
632
|
209 USE_MINITAR=$(HAVE_ZLIB)
|
438
|
210 !endif
|
942
|
211 !if !defined(USE_KKCC)
|
|
212 USE_KKCC=1
|
|
213 !endif
|
428
|
214
|
440
|
215 # A little bit of adhockery. Default to use system malloc and
|
|
216 # DLL version of the C runtime library when using portable
|
|
217 # dumping. These are the optimal settings.
|
|
218 !if !defined(USE_SYSTEM_MALLOC)
|
|
219 USE_SYSTEM_MALLOC=$(USE_PORTABLE_DUMPER)
|
|
220 !endif
|
|
221 !if !defined(USE_CRTDLL)
|
|
222 USE_CRTDLL=$(USE_PORTABLE_DUMPER)
|
|
223 !endif
|
|
224
|
428
|
225 #
|
|
226 # System configuration
|
|
227 #
|
|
228 !if !defined(OS)
|
|
229 OS=Windows_95/98
|
|
230 EMACS_CONFIGURATION=i586-pc-win32
|
|
231 !else if "$(PROCESSOR_ARCHITECTURE)" == "x86"
|
|
232 EMACS_CONFIGURATION=i586-pc-win32
|
|
233 !else if "$(PROCESSOR_ARCHITECTURE)" == "MIPS"
|
|
234 EMACS_CONFIGURATION=mips-pc-win32
|
|
235 !else if "$(PROCESSOR_ARCHITECTURE)" == "ALPHA"
|
|
236 EMACS_CONFIGURATION=alpha-pc-win32
|
|
237 !else if "$(PROCESSOR_ARCHITECTURE)" == "PPC"
|
|
238 EMACS_CONFIGURATION=ppc-pc-win32
|
|
239 !else
|
|
240 ! error Unknown processor architecture type $(PROCESSOR_ARCHITECTURE)
|
|
241 !endif
|
794
|
242 STACK_TRACE_EYE_CATCHER=$(XEMACS_VERSION_STRING:.=_)
|
|
243 STACK_TRACE_EYE_CATCHER=xemacs_$(STACK_TRACE_EYE_CATCHER:-=_)_$(EMACS_CONFIGURATION:-=_)
|
|
244 PROGRAM_DEFINES=$(PROGRAM_DEFINES) -DSTACK_TRACE_EYE_CATCHER=$(STACK_TRACE_EYE_CATCHER)
|
428
|
245
|
|
246 #
|
|
247 # Conf error checks
|
|
248 #
|
|
249 CONFIG_ERROR=0
|
|
250 !if $(INFODOCK) && !exist("..\..\Infodock.rules")
|
|
251 !message Cannot build InfoDock without InfoDock sources
|
|
252 CONFIG_ERROR=1
|
|
253 !endif
|
440
|
254 !if !$(USE_PORTABLE_DUMPER) && $(USE_SYSTEM_MALLOC)
|
|
255 !message Cannot use system allocator when dumping old way, use portable dumper.
|
|
256 CONFIG_ERROR=1
|
|
257 !endif
|
|
258 !if !$(USE_PORTABLE_DUMPER) && $(USE_CRTDLL)
|
|
259 !message Cannot use C runtime DLL when dumping old way, use portable dumper.
|
|
260 CONFIG_ERROR=1
|
|
261 !endif
|
|
262 !if !$(USE_SYSTEM_MALLOC) && $(USE_CRTDLL)
|
|
263 !message GNU malloc currently cannot be used with CRT DLL.
|
|
264 !message [[[Developer note: If you want to fix it, read Q112297 first]]] ####
|
|
265 CONFIG_ERROR=1
|
|
266 !endif
|
442
|
267 !if !$(HAVE_MS_WINDOWS) && !$(HAVE_X_WINDOWS)
|
|
268 !message Please specify at least one HAVE_MS_WINDOWS=1 and/or HAVE_X_WINDOWS=1
|
428
|
269 CONFIG_ERROR=1
|
|
270 !endif
|
442
|
271 !if $(HAVE_X_WINDOWS) && !defined(X11_DIR)
|
428
|
272 !message Please specify root directory for your X11 installation: X11_DIR=path
|
|
273 CONFIG_ERROR=1
|
|
274 !endif
|
442
|
275 !if $(HAVE_X_WINDOWS) && defined(X11_DIR) && !exist("$(X11_DIR)\LIB\X11.LIB")
|
428
|
276 !message Specified X11 directory does not contain "$(X11_DIR)\LIB\X11.LIB"
|
|
277 CONFIG_ERROR=1
|
|
278 !endif
|
488
|
279 !if $(HAVE_MS_WINDOWS) && $(HAVE_GTK) && !defined(GTK_DIR)
|
|
280 !message Please specify root directory for your GTK installation: GTK_DIR=path
|
|
281 CONFIG_ERROR=1
|
|
282 !endif
|
442
|
283 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && !defined(XPM_DIR)
|
428
|
284 !message Please specify root directory for your XPM installation: XPM_DIR=path
|
|
285 CONFIG_ERROR=1
|
|
286 !endif
|
442
|
287 !if $(HAVE_MS_WINDOWS) && $(HAVE_XPM) && defined(XPM_DIR) && !exist("$(XPM_DIR)\lib\Xpm.lib")
|
428
|
288 !message Specified XPM directory does not contain "$(XPM_DIR)\lib\Xpm.lib"
|
|
289 CONFIG_ERROR=1
|
|
290 !endif
|
442
|
291 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(PNG_DIR)
|
428
|
292 !message Please specify root directory for your PNG installation: PNG_DIR=path
|
|
293 CONFIG_ERROR=1
|
|
294 !endif
|
442
|
295 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(PNG_DIR) && !exist("$(PNG_DIR)\libpng.lib")
|
428
|
296 !message Specified PNG directory does not contain "$(PNG_DIR)\libpng.lib"
|
|
297 CONFIG_ERROR=1
|
|
298 !endif
|
442
|
299 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && !defined(ZLIB_DIR)
|
428
|
300 !message Please specify root directory for your ZLIB installation: ZLIB_DIR=path
|
|
301 CONFIG_ERROR=1
|
|
302 !endif
|
442
|
303 !if $(HAVE_MS_WINDOWS) && $(HAVE_PNG) && defined(ZLIB_DIR) && !exist("$(ZLIB_DIR)\zlib.lib")
|
428
|
304 !message Specified ZLIB directory does not contain "$(ZLIB_DIR)\zlib.lib"
|
|
305 CONFIG_ERROR=1
|
|
306 !endif
|
442
|
307 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !defined(TIFF_DIR)
|
428
|
308 !message Please specify root directory for your TIFF installation: TIFF_DIR=path
|
|
309 CONFIG_ERROR=1
|
|
310 !endif
|
442
|
311 !if $(HAVE_MS_WINDOWS) && $(HAVE_TIFF) && !exist("$(TIFF_DIR)\libtiff\libtiff.lib")
|
428
|
312 !message Specified TIFF directory does not contain "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
313 CONFIG_ERROR=1
|
|
314 !endif
|
442
|
315 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !defined(JPEG_DIR)
|
428
|
316 !message Please specify root directory for your JPEG installation: JPEG_DIR=path
|
|
317 CONFIG_ERROR=1
|
|
318 !endif
|
442
|
319 !if $(HAVE_MS_WINDOWS) && $(HAVE_JPEG) && !exist("$(JPEG_DIR)\libjpeg.lib")
|
428
|
320 !message Specified JPEG directory does not contain "$(JPEG_DIR)\libjpeg.lib"
|
|
321 CONFIG_ERROR=1
|
|
322 !endif
|
442
|
323 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !defined(COMPFACE_DIR)
|
428
|
324 !message Please specify root directory for your COMPFACE installation: COMPFACE_DIR=path
|
|
325 CONFIG_ERROR=1
|
|
326 !endif
|
442
|
327 !if $(HAVE_MS_WINDOWS) && $(HAVE_XFACE) && !exist("$(COMPFACE_DIR)\libcompface.lib")
|
428
|
328 !message Specified COMPFACE directory does not contain "$(COMPFACE_DIR)\libcompface.lib"
|
|
329 CONFIG_ERROR=1
|
|
330 !endif
|
442
|
331 !if $(HAVE_MS_WINDOWS) && $(HAVE_TOOLBARS) && !$(HAVE_XPM)
|
428
|
332 !message Toolbars require XPM support
|
|
333 CONFIG_ERROR=1
|
|
334 !endif
|
|
335 !if $(CONFIG_ERROR)
|
|
336 !error Configuration error(s) found
|
|
337 !endif
|
|
338
|
|
339 #
|
442
|
340 # Whether to use dependency information generated by make-src-depend
|
|
341 #
|
771
|
342 !if $(DEPEND) && exist("$(SRC)\depend")
|
442
|
343 ! if [if not exist $(OUTDIR)\nul mkdir "$(OUTDIR)"]
|
|
344 ! endif
|
795
|
345 # This perl script used to be inline but that caused too many quoting problems
|
|
346 ! if [perl .\make-nt-depend -s=$(SRC) -c=$(NT) -o=$(OUTDIR) < $(SRC)\depend > $(OUTDIR)\depend.tmp]
|
442
|
347 ! endif
|
|
348 ! include "$(OUTDIR)\depend.tmp"
|
|
349 !else
|
|
350 ! if [echo WARNING: Compiling without dependency information.]
|
|
351 ! endif
|
|
352 !endif
|
|
353
|
|
354 #
|
428
|
355 # Compiler command echo control. Define VERBOSECC=1 to get verbose compilation.
|
|
356 #
|
|
357 !if $(VERBOSECC)
|
|
358 CCV=$(CC)
|
|
359 !else
|
|
360 CCV=@$(CC)
|
|
361 !endif
|
|
362
|
|
363 !if $(DEBUG_XEMACS)
|
814
|
364
|
872
|
365 # ---- Debugging support ----
|
|
366 ! if $(HAVE_VC6)
|
|
367 # support edit-and-continue
|
|
368 DEBUG_FLAGS_COMPILE=-ZI
|
|
369 ! else
|
|
370 DEBUG_FLAGS_COMPILE=-Zi
|
|
371 ! endif
|
|
372 DEBUG_FLAGS_LINK=-debug:full
|
|
373 DEBUG_DEFINES=-DDEBUG_XEMACS -D_DEBUG
|
|
374 #BROWSERFLAGS=-Fr -Fd$(OUTDIR)\temacs.pdb
|
|
375 BROWSERFLAGS=-Fr$*.sbr -Fd$(OUTDIR)\temacs.pdb
|
|
376
|
814
|
377 !else
|
872
|
378
|
|
379 # ---- No debugging support ----
|
|
380 DEBUG_FLAGS_COMPILE=
|
|
381 DEBUG_FLAGS_LINK=-incremental:no
|
882
|
382 DEBUG_DEFINES=
|
872
|
383 BROWSERFLAGS=
|
|
384
|
428
|
385 !endif
|
|
386
|
440
|
387 !if $(USE_CRTDLL)
|
872
|
388 ! if $(DEBUG_XEMACS)
|
440
|
389 C_LIBFLAG=-MDd
|
|
390 LIBC_LIB=msvcrtd.lib
|
872
|
391 ! else
|
440
|
392 C_LIBFLAG=-MD
|
|
393 LIBC_LIB=msvcrt.lib
|
872
|
394 ! endif
|
440
|
395 !else
|
|
396 C_LIBFLAG=-ML
|
|
397 LIBC_LIB=libc.lib
|
|
398 !endif
|
|
399
|
872
|
400 !if $(OPTIMIZED_BUILD)
|
|
401 # -G5 means optimize for Pentium. (According to the code-optimization
|
|
402 # article, -GB is the same as -G5, and -G6, i.e. optimze for Pentium Pro,
|
|
403 # gains you little over -G5 for PPro's but causes big slowdowns for
|
|
404 # Pentiums.) -GF means put strings in read-only memory; -Gr means use
|
|
405 # fastcall convention. Another possible addition: -Ob2 -- allows inlining
|
|
406 # of any function, not just those declared inline. Potential code size
|
|
407 # increase, though.
|
|
408 #
|
|
409 # #### Note: fastcall doesn't actually seem to make any difference, at least
|
|
410 # not using the (admittedly unscientific) test of (hanoi 6). The
|
|
411 # optimization article claims 1-2% improvement in both speed and size.
|
|
412 OPTFLAGS_FASTCALL =-O2 -G5 -Gr -Ob2
|
|
413 OPTFLAGS_CDECL =-O2 -G5 -Ob2
|
|
414 !else
|
|
415 OPTFLAGS_FASTCALL =-Od
|
|
416 OPTFLAGS_CDECL =-Od
|
|
417 !endif
|
|
418
|
|
419 !if $(USE_FASTCALL)
|
|
420 OPTFLAGS = $(OPTFLAGS_FASTCALL)
|
|
421 !else
|
|
422 OPTFLAGS = $(OPTFLAGS_CDECL)
|
|
423 !endif
|
|
424
|
|
425 !if $(PROFILE_SUPPORT)
|
|
426 PROFILE_FLAGS=-profile
|
|
427 !else
|
|
428 PROFILE_FLAGS=
|
|
429 !endif
|
|
430
|
|
431 CFLAGS_NO_OPT=-nologo -W3 -DSTRICT $(DEBUG_FLAGS_COMPILE)
|
|
432
|
|
433 CFLAGS_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS)
|
826
|
434 CFLAGS=$(CFLAGS_NO_LIB) $(C_LIBFLAG)
|
|
435
|
872
|
436 CFLAGS_CDECL_NO_LIB=$(CFLAGS_NO_OPT) $(OPTFLAGS_CDECL)
|
|
437 CFLAGS_CDECL=$(CFLAGS_CDECL_NO_LIB) $(C_LIBFLAG)
|
|
438
|
442
|
439 !if $(HAVE_X_WINDOWS)
|
428
|
440 X_DEFINES=-DHAVE_X_WINDOWS
|
|
441 X_INCLUDES=-I$(X11_DIR)\include
|
|
442 X_LIBS=-libpath:$(X11_DIR)\lib Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
|
|
443 !endif
|
|
444
|
442
|
445 !if $(HAVE_MS_WINDOWS)
|
827
|
446 MSW_DEFINES=-DHAVE_MS_WINDOWS
|
428
|
447 MSW_INCLUDES=
|
827
|
448 MSW_LIBS=comctl32.lib
|
|
449
|
428
|
450 !if $(HAVE_XPM)
|
|
451 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XPM -DFOR_MSW
|
|
452 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(XPM_DIR)" -I"$(XPM_DIR)\lib"
|
|
453 MSW_LIBS=$(MSW_LIBS) "$(XPM_DIR)\lib\Xpm.lib"
|
|
454 !endif
|
|
455 !if $(HAVE_GIF)
|
|
456 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_GIF
|
|
457 MSW_GIF_OBJ=$(OUTDIR)\dgif_lib.obj $(OUTDIR)\gif_io.obj
|
|
458 !endif
|
|
459 !if $(HAVE_PNG)
|
|
460 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_PNG
|
|
461 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(PNG_DIR)" -I"$(ZLIB_DIR)"
|
|
462 MSW_LIBS=$(MSW_LIBS) "$(PNG_DIR)\libpng.lib" "$(ZLIB_DIR)\zlib.lib"
|
|
463 !endif
|
|
464 !if $(HAVE_TIFF)
|
|
465 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TIFF
|
|
466 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(TIFF_DIR)\libtiff"
|
|
467 MSW_LIBS=$(MSW_LIBS) "$(TIFF_DIR)\libtiff\libtiff.lib"
|
|
468 !endif
|
|
469 !if $(HAVE_JPEG)
|
|
470 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_JPEG
|
|
471 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(JPEG_DIR)"
|
|
472 MSW_LIBS=$(MSW_LIBS) "$(JPEG_DIR)\libjpeg.lib"
|
|
473 !endif
|
|
474 !if $(HAVE_XFACE)
|
|
475 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_XFACE
|
|
476 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(COMPFACE_DIR)"
|
|
477 MSW_LIBS=$(MSW_LIBS) "$(COMPFACE_DIR)\libcompface.lib"
|
|
478 !endif
|
771
|
479 !if $(HAVE_ZLIB)
|
|
480 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_ZLIB
|
|
481 MSW_INCLUDES=$(MSW_INCLUDES) -I"$(ZLIB_DIR)"
|
|
482 MSW_LIBS=$(MSW_LIBS) "$(ZLIB_DIR)\zlib.lib"
|
|
483 !endif
|
827
|
484 !if $(HAVE_MENUBARS)
|
|
485 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_MENUBARS
|
|
486 MSW_MENUBAR_OBJ=$(OUTDIR)\menubar.obj $(OUTDIR)\menubar-msw.obj
|
|
487 !endif
|
|
488 !if $(HAVE_SCROLLBARS)
|
|
489 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_SCROLLBARS
|
|
490 MSW_SCROLLBAR_OBJ=$(OUTDIR)\scrollbar.obj $(OUTDIR)\scrollbar-msw.obj
|
|
491 !endif
|
428
|
492 !if $(HAVE_TOOLBARS)
|
|
493 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_TOOLBARS
|
|
494 MSW_TOOLBAR_OBJ=$(OUTDIR)\toolbar.obj $(OUTDIR)\toolbar-msw.obj
|
|
495 !endif
|
|
496 !if $(HAVE_WIDGETS)
|
|
497 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_WIDGETS
|
|
498 !endif
|
637
|
499 !if $(HAVE_DIALOGS)
|
|
500 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_DIALOGS
|
|
501 MSW_DIALOG_OBJ=$(OUTDIR)\dialog.obj $(OUTDIR)\dialog-msw.obj
|
|
502 !endif
|
428
|
503 !if $(HAVE_NATIVE_SOUND)
|
|
504 MSW_DEFINES=$(MSW_DEFINES) -DHAVE_NATIVE_SOUND
|
|
505 !endif
|
|
506 !endif
|
|
507
|
771
|
508 !if $(MULE)
|
428
|
509 MULE_DEFINES=-DMULE
|
|
510 !endif
|
|
511
|
442
|
512 !if $(QUICK_BUILD)
|
|
513 QUICK_DEFINES=-DQUICK_BUILD
|
|
514 !endif
|
|
515
|
814
|
516 !if $(ERROR_CHECK_ALL)
|
|
517 ERROR_CHECK_DEFINES=-DERROR_CHECK_ALL
|
428
|
518 !endif
|
814
|
519
|
428
|
520 !if $(USE_UNION_TYPE)
|
440
|
521 UNION_DEFINES=-DUSE_UNION_TYPE
|
|
522 !endif
|
|
523
|
438
|
524 !if $(USE_PORTABLE_DUMPER)
|
|
525 DUMPER_DEFINES=-DPDUMP
|
|
526 !endif
|
|
527
|
440
|
528 !if $(USE_SYSTEM_MALLOC)
|
|
529 MALLOC_DEFINES=-DSYSTEM_MALLOC
|
|
530 !else
|
|
531 MALLOC_DEFINES=-DGNU_MALLOC
|
428
|
532 !endif
|
|
533
|
|
534 # Hard-coded paths
|
|
535
|
|
536 !if $(INFODOCK)
|
|
537 PATH_PREFIX=../..
|
|
538 !else
|
|
539 PATH_PREFIX=..
|
|
540 !endif
|
|
541
|
|
542 PATH_DEFINES=-DPATH_PREFIX=\"$(PATH_PREFIX)\"
|
|
543
|
|
544 # Generic variables
|
|
545
|
442
|
546 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(NT)\inc -I$(SRC) -I$(LWLIB_SRCDIR)
|
428
|
547
|
814
|
548 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) $(UNION_DEFINES) \
|
442
|
549 $(DUMPER_DEFINES) $(MALLOC_DEFINES) $(QUICK_DEFINES) \
|
814
|
550 $(ERROR_CHECK_DEFINES) \
|
442
|
551 -DWIN32_LEAN_AND_MEAN -DWIN32_NATIVE -Demacs \
|
428
|
552 -DHAVE_CONFIG_H $(PROGRAM_DEFINES) $(PATH_DEFINES)
|
|
553
|
|
554 #------------------------------------------------------------------------------
|
|
555
|
|
556 $(OUTDIR)\nul:
|
|
557 -@mkdir $(OUTDIR)
|
|
558
|
|
559 XEMACS_INCLUDES=\
|
442
|
560 $(SRC)\config.h \
|
|
561 $(SRC)\Emacs.ad.h \
|
|
562 $(SRC)\paths.h
|
428
|
563
|
632
|
564 # #### Copying is cheap, we should just force these
|
771
|
565 $(SRC)\config.h: $(SRC)\config.h.in
|
|
566 # #### ms must have hired monkeys to design their shell commands. if
|
|
567 # #### you use xcopy to copy a file from one name to another, it
|
|
568 # #### PROMPTS you to see if you meant the second as a directory! and
|
|
569 # #### no switch to mean "no of course, you idiots, it's a file!"
|
|
570 @copy $(SRC)\config.h.in $(SRC)\config.h
|
428
|
571
|
442
|
572 $(SRC)\Emacs.ad.h: Emacs.ad.h
|
583
|
573 @$(COPY) Emacs.ad.h $(SRC)
|
428
|
574
|
442
|
575 $(SRC)\paths.h: paths.h
|
583
|
576 @$(COPY) paths.h $(SRC)
|
428
|
577
|
|
578 #------------------------------------------------------------------------------
|
|
579
|
|
580 # lib-src programs
|
|
581
|
442
|
582 LIB_SRC_DEFINES = -DHAVE_CONFIG_H -DWIN32_NATIVE
|
428
|
583
|
|
584 #
|
|
585 # Creating config.values to be used by config.el
|
|
586 #
|
|
587 CONFIG_VALUES = $(LIB_SRC)\config.values
|
|
588 !if [echo Creating $(CONFIG_VALUES) && echo ;;; Do not edit this file!>$(CONFIG_VALUES)]
|
|
589 !endif
|
|
590 # MAKEDIR has to be made into a string.
|
|
591 #!if [echo blddir>>$(CONFIG_VALUES) && echo $(ESC)"$(MAKEDIR:\=\\)\\..$(ESC)">>$(CONFIG_VALUES)]
|
|
592 !if [echo blddir>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\..">>$(CONFIG_VALUES)]
|
|
593 !endif
|
|
594 !if [echo CC>>$(CONFIG_VALUES) && echo "$(CC:\=\\)">>$(CONFIG_VALUES)]
|
|
595 !endif
|
|
596 !if [echo CFLAGS>>$(CONFIG_VALUES) && echo "$(CFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
|
597 !endif
|
|
598 !if [echo CPP>>$(CONFIG_VALUES) && echo "$(CPP:\=\\)">>$(CONFIG_VALUES)]
|
|
599 !endif
|
|
600 !if [echo CPPFLAGS>>$(CONFIG_VALUES) && echo "$(CPPFLAGS:\=\\)">>$(CONFIG_VALUES)]
|
|
601 !endif
|
|
602 !if [echo LISPDIR>>$(CONFIG_VALUES) && echo "$(MAKEDIR:\=\\)\\$(LISP:\=\\)">>$(CONFIG_VALUES)]
|
|
603 !endif
|
|
604 # PATH_PACKAGEPATH is already a quoted string.
|
|
605 !if [echo PACKAGE_PATH>>$(CONFIG_VALUES) && echo $(PATH_PACKAGEPATH)>>$(CONFIG_VALUES)]
|
|
606 !endif
|
|
607
|
839
|
608
|
872
|
609 LINK_DEPENDENCY_ARGS = -Fe$@ -Fd$* $** -link $(DEBUG_FLAGS_LINK)
|
839
|
610 LINK_STANDARD_LIBRARY_ARGS = setargv.obj user32.lib wsock32.lib
|
|
611
|
428
|
612 # Inferred rule
|
|
613 {$(LIB_SRC)}.c{$(LIB_SRC)}.exe :
|
430
|
614 cd $(LIB_SRC)
|
839
|
615 $(CCV) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES) $(CFLAGS) $(LINK_DEPENDENCY_ARGS) $(LINK_STANDARD_LIBRARY_ARGS)
|
430
|
616 cd $(NT)
|
428
|
617
|
|
618 # Individual dependencies
|
812
|
619 ETAGS_DEPS = $(LIB_SRC)/getopt.c $(LIB_SRC)/getopt1.c $(SRC)/regex.c
|
428
|
620 $(LIB_SRC)/etags.exe : $(LIB_SRC)/etags.c $(ETAGS_DEPS)
|
839
|
621 cd $(LIB_SRC)
|
|
622 $(CCV) -I$(LIB_SRC) -I$(SRC) $(LIB_SRC_DEFINES) $(CFLAGS) $(LINK_DEPENDENCY_ARGS) -stack:0x800000 $(LINK_STANDARD_LIBRARY_ARGS)
|
|
623 cd $(NT)
|
|
624
|
827
|
625 $(LIB_SRC)/movemail.exe : $(LIB_SRC)/movemail.c $(LIB_SRC)/pop.c $(ETAGS_DEPS)
|
819
|
626
|
872
|
627 # Minitar uses zlib so just use cdecl to simplify things
|
812
|
628 $(LIB_SRC)/minitar.exe : $(NT)/minitar.c
|
827
|
629 cd $(LIB_SRC)
|
872
|
630 $(CCV) -I"$(ZLIB_DIR)" $(LIB_SRC_DEFINES) $(CFLAGS_CDECL_NO_LIB) $(LINK_DEPENDENCY_ARGS) "$(ZLIB_DIR)\zlib.lib"
|
827
|
631 cd $(NT)
|
428
|
632
|
|
633 LIB_SRC_TOOLS = \
|
442
|
634 $(LIB_SRC)/etags.exe \
|
428
|
635 $(LIB_SRC)/hexl.exe \
|
442
|
636 $(LIB_SRC)/i.exe \
|
819
|
637 $(LIB_SRC)/winclient.exe \
|
442
|
638 $(LIB_SRC)/make-docfile.exe \
|
428
|
639 $(LIB_SRC)/mmencode.exe \
|
442
|
640 $(LIB_SRC)/movemail.exe \
|
428
|
641 $(LIB_SRC)/sorted-doc.exe \
|
442
|
642 $(LIB_SRC)/wakeup.exe
|
438
|
643 !if $(USE_MINITAR)
|
|
644 LIB_SRC_TOOLS = \
|
|
645 $(LIB_SRC_TOOLS) \
|
|
646 $(LIB_SRC)/minitar.exe
|
|
647 !endif
|
442
|
648 !if $(USE_PORTABLE_DUMPER)
|
|
649 LIB_SRC_TOOLS = \
|
|
650 $(XEMACS_INCLUDES) \
|
|
651 $(LIB_SRC)/make-dump-id.exe \
|
|
652 $(LIB_SRC_TOOLS)
|
|
653 !endif
|
438
|
654
|
428
|
655 #------------------------------------------------------------------------------
|
|
656
|
|
657 # LASTFILE Library
|
|
658
|
440
|
659 !if !$(USE_SYSTEM_MALLOC) || !$(USE_PORTABLE_DUMPER)
|
|
660
|
428
|
661 LASTFILE=$(OUTDIR)\lastfile.lib
|
442
|
662 LASTFILE_SRC=$(SRC)
|
428
|
663 LASTFILE_FLAGS=$(CFLAGS) $(INCLUDES) -Fo$@ -Fd$* -c
|
|
664 LASTFILE_OBJS= \
|
|
665 $(OUTDIR)\lastfile.obj
|
|
666
|
|
667 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
|
668 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
|
669
|
|
670 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
587
|
671 $(CCV) $(LASTFILE_FLAGS) $(LASTFILE_SRC)\$(@B).c
|
428
|
672
|
440
|
673 !endif
|
|
674
|
428
|
675 #------------------------------------------------------------------------------
|
|
676
|
442
|
677 !if $(HAVE_X_WINDOWS)
|
428
|
678
|
|
679 # LWLIB Library
|
|
680
|
|
681 LWLIB=$(OUTDIR)\lwlib.lib
|
|
682 LWLIB_FLAGS=$(CFLAGS) $(INCLUDES) $(DEFINES) \
|
|
683 -DNEED_ATHENA -DNEED_LUCID \
|
|
684 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
|
|
685 -Fo$@ -c
|
|
686 LWLIB_OBJS= \
|
|
687 $(OUTDIR)\lwlib-utils.obj \
|
|
688 $(OUTDIR)\lwlib-Xaw.obj \
|
|
689 $(OUTDIR)\lwlib-Xlw.obj \
|
|
690 $(OUTDIR)\lwlib.obj \
|
|
691 $(OUTDIR)\xlwmenu.obj \
|
|
692 $(OUTDIR)\xlwscrollbar.obj
|
|
693
|
|
694 $(LWLIB): $(LWLIB_OBJS)
|
|
695 link.exe -lib -nologo -out:$@ $(LWLIB_OBJS)
|
|
696
|
442
|
697 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRCDIR)\lwlib-utils.c
|
587
|
698 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
|
428
|
699
|
442
|
700 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRCDIR)\lwlib-Xaw.c
|
587
|
701 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
|
428
|
702
|
442
|
703 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRCDIR)\lwlib-Xlw.c
|
587
|
704 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
|
428
|
705
|
442
|
706 $(OUTDIR)\lwlib.obj: $(LWLIB_SRCDIR)\lwlib.c
|
587
|
707 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
|
428
|
708
|
442
|
709 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRCDIR)\xlwmenu.c
|
587
|
710 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
|
428
|
711
|
442
|
712 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRCDIR)\xlwscrollbar.c
|
587
|
713 $(CCV) $(LWLIB_FLAGS) $(LWLIB_SRCDIR)\$(@B).c
|
428
|
714
|
|
715 !endif
|
|
716
|
|
717 #------------------------------------------------------------------------------
|
|
718
|
|
719 # TEMACS Executable
|
|
720
|
|
721 # This may not exist
|
|
722 !if "$(emacs_beta_version)" != ""
|
496
|
723 !if "$(emacs_is_beta)" != ""
|
428
|
724 EMACS_BETA_VERSION=-DEMACS_BETA_VERSION=$(emacs_beta_version)
|
496
|
725 !else
|
|
726 EMACS_PATCH_LEVEL=-DEMACS_PATCH_LEVEL=$(emacs_beta_version)
|
|
727 !endif
|
|
728 !endif
|
428
|
729
|
440
|
730 !if !$(USE_PORTABLE_DUMPER)
|
442
|
731 TEMACS_ENTRYPOINT=-entry:_start
|
|
732 !else
|
|
733 TEMACS_ENTRYPOINT=-entry:mainCRTStartup
|
440
|
734 !endif
|
|
735
|
442
|
736 TEMACS_DIR=$(SRC)
|
428
|
737 TEMACS=$(TEMACS_DIR)\temacs.exe
|
|
738 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
|
442
|
739 TEMACS_SRC=$(SRC)
|
428
|
740 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
|
442
|
741 oldnames.lib kernel32.lib user32.lib gdi32.lib comdlg32.lib advapi32.lib \
|
528
|
742 shell32.lib wsock32.lib netapi32.lib winmm.lib winspool.lib ole32.lib \
|
771
|
743 mpr.lib uuid.lib imm32.lib $(LIBC_LIB)
|
872
|
744 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS_LINK) -base:0x1000000\
|
442
|
745 -stack:0x800000 $(TEMACS_ENTRYPOINT) -subsystem:windows\
|
428
|
746 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
|
872
|
747 -heap:0x00100000 -nodefaultlib $(PROFILE_FLAGS) setargv.obj
|
|
748 TEMACS_CPP_FLAGS_NO_CFLAGS=-c $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
|
428
|
749 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
750 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
|
751 $(EMACS_BETA_VERSION) \
|
632
|
752 $(EMACS_PATCH_LEVEL) \
|
442
|
753 -DXEMACS_CODENAME=\"$(xemacs_codename:&=and)\" \
|
428
|
754 -DEMACS_CONFIGURATION=\"$(EMACS_CONFIGURATION)\" \
|
|
755 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
|
872
|
756 TEMACS_CPP_FLAGS=$(CFLAGS) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
|
|
757 TEMACS_CPP_CDECL_FLAGS=$(CFLAGS_CDECL) $(TEMACS_CPP_FLAGS_NO_CFLAGS)
|
428
|
758
|
442
|
759 !if $(HAVE_X_WINDOWS)
|
428
|
760 TEMACS_X_OBJS=\
|
|
761 $(OUTDIR)\balloon-x.obj \
|
|
762 $(OUTDIR)\balloon_help.obj \
|
|
763 $(OUTDIR)\console-x.obj \
|
|
764 $(OUTDIR)\device-x.obj \
|
|
765 $(OUTDIR)\dialog-x.obj \
|
|
766 $(OUTDIR)\EmacsFrame.obj \
|
|
767 $(OUTDIR)\EmacsManager.obj \
|
|
768 $(OUTDIR)\EmacsShell.obj \
|
|
769 $(OUTDIR)\TopLevelEmacsShell.obj\
|
|
770 $(OUTDIR)\TransientEmacsShell.obj\
|
|
771 $(OUTDIR)\event-Xt.obj \
|
|
772 $(OUTDIR)\frame-x.obj \
|
|
773 $(OUTDIR)\glyphs-x.obj \
|
|
774 $(OUTDIR)\gui-x.obj \
|
|
775 $(OUTDIR)\menubar-x.obj \
|
|
776 $(OUTDIR)\objects-x.obj \
|
|
777 $(OUTDIR)\redisplay-x.obj \
|
|
778 $(OUTDIR)\scrollbar-x.obj \
|
|
779 $(OUTDIR)\xgccache.obj \
|
|
780 $(OUTDIR)\xmu.obj \
|
|
781 $(OUTDIR)\select-x.obj
|
|
782 !endif
|
|
783
|
442
|
784 !if $(HAVE_MS_WINDOWS)
|
428
|
785 TEMACS_MSW_OBJS=\
|
|
786 $(OUTDIR)\console-msw.obj \
|
|
787 $(OUTDIR)\device-msw.obj \
|
|
788 $(OUTDIR)\event-msw.obj \
|
|
789 $(OUTDIR)\frame-msw.obj \
|
|
790 $(OUTDIR)\glyphs-msw.obj \
|
|
791 $(OUTDIR)\gui-msw.obj \
|
|
792 $(OUTDIR)\objects-msw.obj \
|
|
793 $(OUTDIR)\redisplay-msw.obj \
|
|
794 $(OUTDIR)\select-msw.obj \
|
872
|
795 $(OUTDIR)\dired-msw.obj \
|
827
|
796 $(MSW_MENUBAR_OBJ) \
|
|
797 $(MSW_SCROLLBAR_OBJ) \
|
428
|
798 $(MSW_TOOLBAR_OBJ) \
|
|
799 $(MSW_DIALOG_OBJ) \
|
|
800 $(MSW_GIF_OBJ)
|
|
801 !endif
|
|
802
|
771
|
803 !if $(MULE)
|
428
|
804 TEMACS_MULE_OBJS=\
|
771
|
805 $(OUTDIR)\mule-ccl.obj \
|
428
|
806 $(OUTDIR)\mule-charset.obj \
|
771
|
807 $(OUTDIR)\mule-coding.obj
|
|
808
|
442
|
809 ! if $(HAVE_X_WINDOWS)
|
428
|
810 TEMACS_MULE_OBJS=\
|
|
811 $(TEMACS_MULE_OBJS) $(OUTDIR)\input-method-xlib.obj
|
|
812 ! endif
|
|
813 !endif
|
|
814
|
|
815 !if $(DEBUG_XEMACS)
|
|
816 TEMACS_DEBUG_OBJS=\
|
440
|
817 $(OUTDIR)\debug.obj \
|
|
818 $(OUTDIR)\tests.obj
|
|
819 !endif
|
|
820
|
|
821 !if !$(USE_SYSTEM_MALLOC)
|
|
822 TEMACS_ALLOC_OBJS=\
|
|
823 $(OUTDIR)\free-hook.obj \
|
|
824 $(OUTDIR)\gmalloc.obj \
|
|
825 $(OUTDIR)\ntheap.obj \
|
|
826 $(OUTDIR)\vm-limit.obj
|
|
827 !endif
|
|
828
|
|
829 !if !$(USE_PORTABLE_DUMPER)
|
|
830 TEMACS_DUMP_OBJS=\
|
|
831 $(OUTDIR)\unexnt.obj
|
442
|
832 !else
|
|
833 TEMACS_DUMP_OBJS=\
|
|
834 $(OUTDIR)\dumper.obj
|
428
|
835 !endif
|
|
836
|
|
837 TEMACS_OBJS= \
|
|
838 $(TEMACS_X_OBJS)\
|
|
839 $(TEMACS_MSW_OBJS)\
|
|
840 $(TEMACS_CODING_OBJS)\
|
|
841 $(TEMACS_MULE_OBJS)\
|
|
842 $(TEMACS_DEBUG_OBJS)\
|
440
|
843 $(TEMACS_ALLOC_OBJS)\
|
|
844 $(TEMACS_DUMP_OBJS)\
|
428
|
845 $(OUTDIR)\abbrev.obj \
|
|
846 $(OUTDIR)\alloc.obj \
|
851
|
847 $(OUTDIR)\alloca.obj \
|
428
|
848 $(OUTDIR)\blocktype.obj \
|
|
849 $(OUTDIR)\buffer.obj \
|
|
850 $(OUTDIR)\bytecode.obj \
|
|
851 $(OUTDIR)\callint.obj \
|
|
852 $(OUTDIR)\casefiddle.obj \
|
|
853 $(OUTDIR)\casetab.obj \
|
|
854 $(OUTDIR)\chartab.obj \
|
|
855 $(OUTDIR)\cmdloop.obj \
|
|
856 $(OUTDIR)\cmds.obj \
|
|
857 $(OUTDIR)\console-stream.obj \
|
|
858 $(OUTDIR)\console.obj \
|
|
859 $(OUTDIR)\data.obj \
|
|
860 $(OUTDIR)\device.obj \
|
|
861 $(OUTDIR)\dired.obj \
|
|
862 $(OUTDIR)\doc.obj \
|
|
863 $(OUTDIR)\doprnt.obj \
|
|
864 $(OUTDIR)\dragdrop.obj \
|
|
865 $(OUTDIR)\dynarr.obj \
|
|
866 $(OUTDIR)\editfns.obj \
|
|
867 $(OUTDIR)\elhash.obj \
|
|
868 $(OUTDIR)\emacs.obj \
|
|
869 $(OUTDIR)\eval.obj \
|
|
870 $(OUTDIR)\event-stream.obj \
|
|
871 $(OUTDIR)\events.obj \
|
|
872 $(OUTDIR)\extents.obj \
|
|
873 $(OUTDIR)\faces.obj \
|
|
874 $(OUTDIR)\file-coding.obj \
|
|
875 $(OUTDIR)\fileio.obj \
|
|
876 $(OUTDIR)\filemode.obj \
|
|
877 $(OUTDIR)\floatfns.obj \
|
|
878 $(OUTDIR)\fns.obj \
|
|
879 $(OUTDIR)\font-lock.obj \
|
|
880 $(OUTDIR)\frame.obj \
|
|
881 $(OUTDIR)\general.obj \
|
442
|
882 $(OUTDIR)\getloadavg.obj \
|
428
|
883 $(OUTDIR)\glyphs.obj \
|
|
884 $(OUTDIR)\glyphs-eimage.obj \
|
587
|
885 $(OUTDIR)\glyphs-shared.obj \
|
428
|
886 $(OUTDIR)\glyphs-widget.obj \
|
|
887 $(OUTDIR)\gui.obj \
|
|
888 $(OUTDIR)\gutter.obj \
|
|
889 $(OUTDIR)\hash.obj \
|
|
890 $(OUTDIR)\indent.obj \
|
|
891 $(OUTDIR)\imgproc.obj \
|
|
892 $(OUTDIR)\insdel.obj \
|
|
893 $(OUTDIR)\intl.obj \
|
771
|
894 $(OUTDIR)\intl-win32.obj \
|
|
895 $(OUTDIR)\intl-encap-win32.obj \
|
|
896 $(OUTDIR)\intl-auto-encap-win32.obj \
|
428
|
897 $(OUTDIR)\keymap.obj \
|
872
|
898 $(OUTDIR)\libinterface.obj \
|
428
|
899 $(OUTDIR)\line-number.obj \
|
|
900 $(OUTDIR)\lread.obj \
|
|
901 $(OUTDIR)\lstream.obj \
|
|
902 $(OUTDIR)\macros.obj \
|
|
903 $(OUTDIR)\marker.obj \
|
|
904 $(OUTDIR)\md5.obj \
|
|
905 $(OUTDIR)\minibuf.obj \
|
872
|
906 # #### Leave the next one out when integrating my working ws
|
428
|
907 $(OUTDIR)\nt.obj \
|
|
908 $(OUTDIR)\ntplay.obj \
|
|
909 $(OUTDIR)\objects.obj \
|
|
910 $(OUTDIR)\opaque.obj \
|
|
911 $(OUTDIR)\print.obj \
|
|
912 $(OUTDIR)\process.obj \
|
|
913 $(OUTDIR)\process-nt.obj \
|
|
914 $(OUTDIR)\profile.obj \
|
|
915 $(OUTDIR)\rangetab.obj \
|
|
916 $(OUTDIR)\realpath.obj \
|
|
917 $(OUTDIR)\redisplay-output.obj \
|
|
918 $(OUTDIR)\redisplay.obj \
|
|
919 $(OUTDIR)\regex.obj \
|
|
920 $(OUTDIR)\search.obj \
|
|
921 $(OUTDIR)\select.obj \
|
|
922 $(OUTDIR)\signal.obj \
|
|
923 $(OUTDIR)\sound.obj \
|
|
924 $(OUTDIR)\specifier.obj \
|
|
925 $(OUTDIR)\strftime.obj \
|
|
926 $(OUTDIR)\symbols.obj \
|
|
927 $(OUTDIR)\syntax.obj \
|
|
928 $(OUTDIR)\sysdep.obj \
|
771
|
929 $(OUTDIR)\text.obj \
|
428
|
930 $(OUTDIR)\tparam.obj \
|
|
931 $(OUTDIR)\undo.obj \
|
771
|
932 $(OUTDIR)\unicode.obj \
|
428
|
933 $(OUTDIR)\widget.obj \
|
|
934 $(OUTDIR)\window.obj \
|
442
|
935 $(OUTDIR)\win32.obj
|
428
|
936
|
|
937 # Rules
|
|
938
|
|
939 .SUFFIXES:
|
430
|
940 .SUFFIXES: .c .obj .texi .info
|
428
|
941
|
872
|
942 # nmake rule with batching:
|
|
943 #{$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
|
944 # echo $< >> $(OUTDIR)\listfile.tmp
|
|
945
|
428
|
946 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
872
|
947 $(CCV) $(TEMACS_CPP_FLAGS) $< -Fo$@ $(BROWSERFLAGS)
|
428
|
948
|
872
|
949 # An explicit rule looks like this ($< works only in implicit rules):
|
|
950 # $(OUTDIR)\foo.obj: $(TEMACS_SRC)\foo.c
|
|
951 # $(CCV) $(TEMACS_CPP_FLAGS) $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
442
|
952
|
872
|
953 $(OUTDIR)\emacs.obj: $(XEMACS)\version.sh
|
|
954
|
|
955 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
|
956 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
428
|
957
|
|
958 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
872
|
959 $(CCV) $(TEMACS_CPP_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
|
960
|
|
961 $(OUTDIR)\libinterface.obj: $(TEMACS_SRC)\libinterface.c
|
|
962 $(CCV) $(TEMACS_CPP_CDECL_FLAGS) $(TEMACS_SRC)\$(@B).c -Fo$@ $(BROWSERFLAGS)
|
428
|
963
|
|
964 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
|
|
965 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
|
|
966
|
|
967 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
|
|
968 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
|
|
969
|
872
|
970 create-list-file:
|
|
971 @if exist $(OUTDIR)\listfile.tmp del $(OUTDIR)\listfile.tmp
|
|
972
|
|
973 compile-list-file:
|
|
974 cd $(OUTDIR)
|
|
975 @if exist listfile.tmp $(CC) $(TEMACS_CPP_FLAGS) @listfile.tmp $(BROWSERFLAGS)
|
|
976
|
|
977 $(TEMACS_BROWSE): $(TEMACS_OBJS)
|
795
|
978 @dir /b/s $(OUTDIR)\*.sbr > $(OUTDIR)\bscmake.tmp
|
|
979 bscmake -nologo -o$(TEMACS_BROWSE) @$(OUTDIR)\bscmake.tmp
|
|
980 -$(DEL) $(OUTDIR)\bscmake.tmp
|
872
|
981
|
|
982 # dump-id.c file that contains the dump id
|
|
983
|
|
984 $(OUTDIR)\dump-id.obj : $(SRC)\dump-id.c
|
|
985 cd $(OUTDIR)
|
|
986 $(CCV) $(TEMACS_CPP_FLAGS) $(TEMACS_SRC)\$(@B).c $(BROWSERFLAGS)
|
|
987
|
|
988 $(SRC)\dump-id.c : $(LIB_SRC)/make-dump-id.exe $(TEMACS_OBJS)
|
|
989 cd $(SRC)
|
|
990 $(LIB_SRC)\make-dump-id.exe
|
|
991 cd $(NT)
|
|
992
|
|
993 !if $(USE_PORTABLE_DUMPER)
|
|
994 TEMACS_DUMP_ID_OBJ = $(OUTDIR)\dump-id.obj
|
|
995 !else
|
|
996 TEMACS_DUMP_ID_OBJ =
|
|
997 !endif
|
|
998
|
|
999 !if $(DEBUG_XEMACS)
|
|
1000 $(TEMACS): $(TEMACS_OBJS) $(OUTDIR)\temacs.res $(TEMACS_BROWSE) $(TEMACS_DUMP_ID_OBJ)
|
|
1001 !else
|
|
1002 $(TEMACS): $(TEMACS_OBJS) $(OUTDIR)\temacs.res $(TEMACS_DUMP_ID_OBJ)
|
428
|
1003 !endif
|
440
|
1004 !if $(USE_PORTABLE_DUMPER)
|
872
|
1005 cd $(NT)
|
428
|
1006 link.exe @<<
|
872
|
1007 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(TEMACS_LIBS) $(TEMACS_DUMP_ID_OBJ)
|
428
|
1008 <<
|
442
|
1009 !else
|
|
1010 link.exe @<<
|
872
|
1011 $(TEMACS_LFLAGS) -out:$@ $(TEMACS_OBJS) $(OUTDIR)\temacs.res $(TEMACS_LIBS)
|
442
|
1012 <<
|
|
1013 !endif
|
428
|
1014
|
872
|
1015 $(OUTDIR)\temacs.res: $(NT)\xemacs.rc
|
|
1016 cd $(NT)
|
428
|
1017 rc -Fo$@ xemacs.rc
|
|
1018
|
442
|
1019
|
872
|
1020 PROGNAME=$(TEMACS_DIR)\xemacs.exe
|
776
|
1021 BATCH = -no-packages -batch
|
|
1022 BATCH_PACKAGES = -vanilla -batch
|
|
1023 TEMACS_BATCH = "$(LIB_SRC)\i" "$(TEMACS)" $(BATCH)
|
|
1024 XEMACS_BATCH = "$(LIB_SRC)\i" "$(PROGNAME)" $(BATCH)
|
|
1025 XEMACS_BATCH_PACKAGES = "$(LIB_SRC)\i" "$(PROGNAME)" $(BATCH_PACKAGES)
|
|
1026
|
442
|
1027
|
428
|
1028 # Section handling automated tests starts here
|
|
1029
|
|
1030 blddir=$(MAKEDIR:\=\\)\\..
|
872
|
1031 temacs_loadup=
|
428
|
1032 dump_temacs = $(temacs_loadup) dump
|
|
1033 run_temacs = $(temacs_loadup) run-temacs
|
|
1034 ## We have automated tests!!
|
|
1035 testdir=../tests/automated
|
841
|
1036 batch_test_emacs=$(BATCH_PACKAGES) -l $(testdir)/test-harness.el -f batch-test-emacs $(testdir)
|
428
|
1037
|
|
1038 # .PHONY: check check-temacs
|
|
1039
|
|
1040 check:
|
872
|
1041 cd $(TEMACS_DIR)
|
428
|
1042 $(PROGNAME) $(batch_test_emacs)
|
|
1043
|
|
1044 check-temacs:
|
872
|
1045 cd $(TEMACS_DIR)
|
|
1046 $(TEMACS_BATCH) -l $(LISP)/loadup.el run-temacs $(batch_test_emacs)
|
428
|
1047
|
|
1048 # Section handling automated tests ends here
|
|
1049
|
442
|
1050 # Section handling tags starts here
|
|
1051
|
|
1052 tagslisp=lisp
|
|
1053
|
|
1054 tags:
|
|
1055 @echo If you don't have a copy of etags around, then do 'make lib-src' first.
|
|
1056 @echo To make use of the tags file, put the following in your .emacs:
|
|
1057 @echo (setq tag-table-alist
|
|
1058 @echo '(("$(XEMACSDIRSTRING)\\" . "$(XEMACSDIRSTRING)\\")))
|
|
1059 cd $(XEMACS)
|
637
|
1060 -$(DEL) TAGS
|
442
|
1061 set PATH=lib-src;%PATH%
|
771
|
1062 # we need to double ^, but only in one place, because (according to the
|
|
1063 # nmake manual), a ^ is used to quote certain special characters such as
|
|
1064 # backslash, but is treated literally within double quotes -- and notice
|
|
1065 # carefully the occurrences of double quotes in the first line below!
|
442
|
1066 etags -a -r "/[ ]*DEF\(VAR\|INE\)_[A-Z_]+[ ]*([ ]*\"\([^^\"]+\)\"/\2/" src\*.c src\*.h lwlib\*.c lwlib\*.h lib-src\*.c lib-src\*.h
|
771
|
1067 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 $(tagslisp)\mule\*.el
|
442
|
1068
|
|
1069 # Section handling tags ends here
|
|
1070
|
428
|
1071 # Section handling info starts here
|
430
|
1072
|
|
1073 !if !defined(MAKEINFO)
|
776
|
1074 MAKEINFO=$(XEMACS_BATCH_PACKAGES) -l texinfmt -f batch-texinfo-format
|
430
|
1075 !endif
|
428
|
1076
|
|
1077 MANDIR = $(XEMACS)\man
|
|
1078 INFODIR = $(XEMACS)\info
|
|
1079 INFO_FILES= \
|
|
1080 $(INFODIR)\cl.info \
|
|
1081 $(INFODIR)\custom.info \
|
|
1082 $(INFODIR)\emodules.info \
|
|
1083 $(INFODIR)\external-widget.info \
|
|
1084 $(INFODIR)\info.info \
|
|
1085 $(INFODIR)\standards.info \
|
|
1086 $(INFODIR)\term.info \
|
|
1087 $(INFODIR)\termcap.info \
|
|
1088 $(INFODIR)\texinfo.info \
|
|
1089 $(INFODIR)\widget.info \
|
|
1090 $(INFODIR)\xemacs-faq.info \
|
|
1091 $(INFODIR)\xemacs.info \
|
|
1092 $(INFODIR)\lispref.info \
|
|
1093 $(INFODIR)\new-users-guide.info \
|
|
1094 $(INFODIR)\internals.info
|
|
1095
|
|
1096 {$(MANDIR)}.texi{$(INFODIR)}.info:
|
430
|
1097 cd $(MANDIR)
|
428
|
1098 $(MAKEINFO) $**
|
|
1099
|
430
|
1100 XEMACS_SRCS = \
|
428
|
1101 $(MANDIR)\xemacs\abbrevs.texi \
|
|
1102 $(MANDIR)\xemacs\basic.texi \
|
|
1103 $(MANDIR)\xemacs\buffers.texi \
|
|
1104 $(MANDIR)\xemacs\building.texi \
|
|
1105 $(MANDIR)\xemacs\calendar.texi \
|
|
1106 $(MANDIR)\xemacs\cmdargs.texi \
|
|
1107 $(MANDIR)\xemacs\custom.texi \
|
|
1108 $(MANDIR)\xemacs\display.texi \
|
|
1109 $(MANDIR)\xemacs\entering.texi \
|
|
1110 $(MANDIR)\xemacs\files.texi \
|
|
1111 $(MANDIR)\xemacs\fixit.texi \
|
430
|
1112 $(MANDIR)\xemacs\frame.texi \
|
428
|
1113 $(MANDIR)\xemacs\glossary.texi \
|
|
1114 $(MANDIR)\xemacs\gnu.texi \
|
|
1115 $(MANDIR)\xemacs\help.texi \
|
|
1116 $(MANDIR)\xemacs\indent.texi \
|
|
1117 $(MANDIR)\xemacs\keystrokes.texi \
|
|
1118 $(MANDIR)\xemacs\killing.texi \
|
|
1119 $(MANDIR)\xemacs\m-x.texi \
|
|
1120 $(MANDIR)\xemacs\major.texi \
|
|
1121 $(MANDIR)\xemacs\mark.texi \
|
|
1122 $(MANDIR)\xemacs\menus.texi \
|
|
1123 $(MANDIR)\xemacs\mini.texi \
|
|
1124 $(MANDIR)\xemacs\misc.texi \
|
|
1125 $(MANDIR)\xemacs\mouse.texi \
|
430
|
1126 $(MANDIR)\xemacs\mule.texi \
|
428
|
1127 $(MANDIR)\xemacs\new.texi \
|
430
|
1128 $(MANDIR)\xemacs\packages.texi \
|
428
|
1129 $(MANDIR)\xemacs\picture.texi \
|
|
1130 $(MANDIR)\xemacs\programs.texi \
|
|
1131 $(MANDIR)\xemacs\reading.texi \
|
|
1132 $(MANDIR)\xemacs\regs.texi \
|
|
1133 $(MANDIR)\xemacs\search.texi \
|
|
1134 $(MANDIR)\xemacs\sending.texi \
|
430
|
1135 $(MANDIR)\xemacs\startup.texi \
|
428
|
1136 $(MANDIR)\xemacs\text.texi \
|
|
1137 $(MANDIR)\xemacs\trouble.texi \
|
|
1138 $(MANDIR)\xemacs\undo.texi \
|
430
|
1139 $(MANDIR)\xemacs\windows.texi \
|
|
1140 $(MANDIR)\xemacs\xemacs.texi
|
428
|
1141
|
430
|
1142 LISPREF_SRCS = \
|
428
|
1143 $(MANDIR)\lispref\abbrevs.texi \
|
|
1144 $(MANDIR)\lispref\annotations.texi \
|
|
1145 $(MANDIR)\lispref\back.texi \
|
|
1146 $(MANDIR)\lispref\backups.texi \
|
|
1147 $(MANDIR)\lispref\buffers.texi \
|
|
1148 $(MANDIR)\lispref\building.texi \
|
|
1149 $(MANDIR)\lispref\commands.texi \
|
|
1150 $(MANDIR)\lispref\compile.texi \
|
|
1151 $(MANDIR)\lispref\consoles-devices.texi \
|
|
1152 $(MANDIR)\lispref\control.texi \
|
430
|
1153 $(MANDIR)\lispref\customize.texi \
|
428
|
1154 $(MANDIR)\lispref\databases.texi \
|
|
1155 $(MANDIR)\lispref\debugging.texi \
|
|
1156 $(MANDIR)\lispref\dialog.texi \
|
|
1157 $(MANDIR)\lispref\display.texi \
|
430
|
1158 $(MANDIR)\lispref\dragndrop.texi \
|
428
|
1159 $(MANDIR)\lispref\edebug-inc.texi \
|
|
1160 $(MANDIR)\lispref\edebug.texi \
|
|
1161 $(MANDIR)\lispref\errors.texi \
|
|
1162 $(MANDIR)\lispref\eval.texi \
|
|
1163 $(MANDIR)\lispref\extents.texi \
|
|
1164 $(MANDIR)\lispref\faces.texi \
|
|
1165 $(MANDIR)\lispref\files.texi \
|
|
1166 $(MANDIR)\lispref\frames.texi \
|
|
1167 $(MANDIR)\lispref\functions.texi \
|
|
1168 $(MANDIR)\lispref\glyphs.texi \
|
|
1169 $(MANDIR)\lispref\hash-tables.texi \
|
|
1170 $(MANDIR)\lispref\help.texi \
|
|
1171 $(MANDIR)\lispref\hooks.texi \
|
430
|
1172 $(MANDIR)\lispref\index.texi \
|
428
|
1173 $(MANDIR)\lispref\internationalization.texi \
|
|
1174 $(MANDIR)\lispref\intro.texi \
|
|
1175 $(MANDIR)\lispref\keymaps.texi \
|
|
1176 $(MANDIR)\lispref\ldap.texi \
|
430
|
1177 $(MANDIR)\lispref\lispref.texi \
|
428
|
1178 $(MANDIR)\lispref\lists.texi \
|
|
1179 $(MANDIR)\lispref\loading.texi \
|
|
1180 $(MANDIR)\lispref\locals.texi \
|
|
1181 $(MANDIR)\lispref\macros.texi \
|
|
1182 $(MANDIR)\lispref\maps.texi \
|
|
1183 $(MANDIR)\lispref\markers.texi \
|
|
1184 $(MANDIR)\lispref\menus.texi \
|
|
1185 $(MANDIR)\lispref\minibuf.texi \
|
|
1186 $(MANDIR)\lispref\modes.texi \
|
|
1187 $(MANDIR)\lispref\mouse.texi \
|
|
1188 $(MANDIR)\lispref\mule.texi \
|
|
1189 $(MANDIR)\lispref\numbers.texi \
|
|
1190 $(MANDIR)\lispref\objects.texi \
|
|
1191 $(MANDIR)\lispref\os.texi \
|
|
1192 $(MANDIR)\lispref\positions.texi \
|
|
1193 $(MANDIR)\lispref\processes.texi \
|
|
1194 $(MANDIR)\lispref\range-tables.texi \
|
|
1195 $(MANDIR)\lispref\scrollbars.texi \
|
|
1196 $(MANDIR)\lispref\searching.texi \
|
|
1197 $(MANDIR)\lispref\sequences.texi \
|
|
1198 $(MANDIR)\lispref\specifiers.texi \
|
|
1199 $(MANDIR)\lispref\streams.texi \
|
|
1200 $(MANDIR)\lispref\strings.texi \
|
|
1201 $(MANDIR)\lispref\symbols.texi \
|
|
1202 $(MANDIR)\lispref\syntax.texi \
|
|
1203 $(MANDIR)\lispref\text.texi \
|
|
1204 $(MANDIR)\lispref\tips.texi \
|
|
1205 $(MANDIR)\lispref\toolbar.texi \
|
|
1206 $(MANDIR)\lispref\tooltalk.texi \
|
|
1207 $(MANDIR)\lispref\variables.texi \
|
|
1208 $(MANDIR)\lispref\windows.texi \
|
430
|
1209 $(MANDIR)\lispref\x-windows.texi
|
|
1210
|
|
1211 INTERNALS_SRCS = \
|
|
1212 $(MANDIR)\internals\internals.texi \
|
|
1213 $(MANDIR)\internals\index.texi
|
|
1214
|
|
1215 NEW_USERS_GUIDE_SRCS = \
|
|
1216 $(MANDIR)\new-users-guide\custom1.texi \
|
|
1217 $(MANDIR)\new-users-guide\custom2.texi \
|
|
1218 $(MANDIR)\new-users-guide\edit.texi \
|
|
1219 $(MANDIR)\new-users-guide\enter.texi \
|
|
1220 $(MANDIR)\new-users-guide\files.texi \
|
|
1221 $(MANDIR)\new-users-guide\help.texi \
|
|
1222 $(MANDIR)\new-users-guide\modes.texi \
|
|
1223 $(MANDIR)\new-users-guide\new-users-guide.texi \
|
|
1224 $(MANDIR)\new-users-guide\region.texi \
|
|
1225 $(MANDIR)\new-users-guide\search.texi \
|
|
1226 $(MANDIR)\new-users-guide\xmenu.texi
|
|
1227
|
|
1228 $(INFODIR)\xemacs.info: $(XEMACS_SRCS)
|
|
1229 cd $(MANDIR)\xemacs
|
|
1230 $(MAKEINFO) xemacs.texi
|
|
1231 cd ..
|
428
|
1232
|
|
1233
|
430
|
1234 $(INFODIR)\lispref.info: $(LISPREF_SRCS)
|
|
1235 cd $(MANDIR)\lispref
|
|
1236 $(MAKEINFO) lispref.texi
|
|
1237 cd ..
|
|
1238
|
|
1239 $(INFODIR)\internals.info: $(INTERNALS_SRCS)
|
|
1240 cd $(MANDIR)\internals
|
|
1241 $(MAKEINFO) internals.texi
|
|
1242 cd ..
|
|
1243
|
|
1244 $(INFODIR)\new-users-guide.info: $(NEW_USERS_GUIDE_SRCS)
|
|
1245 cd $(MANDIR)\new-users-guide
|
|
1246 $(MAKEINFO) new-users-guide.texi
|
|
1247 cd ..
|
428
|
1248
|
815
|
1249 info: makeinfo-test $(INFO_FILES)
|
428
|
1250
|
430
|
1251 makeinfo-test:
|
|
1252 @<<makeinfo_test.bat
|
|
1253 @echo off
|
|
1254 if exist "$(MAKEINFO)" goto test_done
|
776
|
1255 @$(XEMACS_BATCH_PACKAGES) -eval "(condition-case nil (require (quote texinfo)) (t (kill-emacs 1)))"
|
430
|
1256 @if not errorlevel 1 goto suggest_makeinfo
|
442
|
1257 @echo XEmacs 'info' cannot be built!
|
|
1258 @echo Install XEmacs package 'texinfo' (see README.packages).
|
430
|
1259 :suggest_makeinfo
|
|
1260 @echo Consider specifying path to makeinfo program: MAKEINFO=path
|
442
|
1261 @echo as this will build info docs faster than XEmacs using 'texinfo'.
|
430
|
1262 @if errorlevel 1 exit 1
|
|
1263 :test_done
|
|
1264 <<NOKEEP
|
428
|
1265
|
|
1266 # Section handling info ends here
|
|
1267
|
|
1268 #------------------------------------------------------------------------------
|
|
1269
|
|
1270 # LISP bits 'n bobs
|
|
1271
|
|
1272 LOADPATH=$(LISP)
|
|
1273
|
440
|
1274 # Rebuild docfile target
|
771
|
1275
|
|
1276 DOC=$(LIB_SRC)\DOC
|
|
1277
|
440
|
1278 docfile ::
|
637
|
1279 if exist $(DOC) $(DEL) $(DOC)
|
440
|
1280 docfile :: $(DOC)
|
|
1281
|
771
|
1282 # This takes 5 seconds on my Pentium 233. If you are running on a
|
|
1283 # much slower machine and are bothered by the time, modify make-docfile.c
|
|
1284 # to contain special code to frob $(OUTDIR)\foo.obj into the right file.
|
|
1285 make-docargs: $(TEMACS_OBJS)
|
|
1286 @echo Creating make-docfile argument file ...
|
795
|
1287 -$(DEL) $(OUTDIR)\make-docfile.tmp
|
|
1288 @!echo $(SRC)\$(**B).c >> $(OUTDIR)\make-docfile.tmp
|
771
|
1289 @echo Done.
|
|
1290
|
|
1291 $(DOC): $(LIB_SRC)\make-docfile.exe make-docargs
|
637
|
1292 if exist $(DOC) $(DEL) $(DOC)
|
872
|
1293 cd $(TEMACS_DIR)
|
|
1294 $(TEMACS_BATCH) -l $(LISP)\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
|
795
|
1295 $(LIB_SRC)\make-docfile.exe -a $(DOC) @$(OUTDIR)\make-docfile.tmp
|
428
|
1296
|
|
1297 update-elc:
|
872
|
1298 cd $(TEMACS_DIR)
|
|
1299 $(TEMACS_BATCH) -l $(LISP)\update-elc.el
|
442
|
1300
|
|
1301 # This file is touched by update-elc.el when redumping is necessary.
|
|
1302 $(TEMACS_DIR)\NEEDTODUMP :
|
|
1303 @echo >$(TEMACS_DIR)\NEEDTODUMP
|
428
|
1304
|
|
1305 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
|
|
1306 # requirements have changed.
|
442
|
1307
|
872
|
1308 $(TEMACS_DIR)\SATISFIED: $(PROGNAME)
|
|
1309
|
442
|
1310 $(PROGNAME) : $(TEMACS) $(TEMACS_DIR)\NEEDTODUMP
|
428
|
1311 @echo >$(TEMACS_DIR)\SATISFIED
|
|
1312 cd $(TEMACS_DIR)
|
872
|
1313 $(TEMACS_BATCH) -l $(LISP)\loadup.el dump
|
440
|
1314 !if $(USE_PORTABLE_DUMPER)
|
442
|
1315 rc -d INCLUDE_DUMP -Fo $(OUTDIR)\xemacs.res $(NT)\xemacs.rc
|
|
1316 # Make the resource section read/write since almost all of it is the dump
|
|
1317 # data which needs to be writable. This avoids having to copy it.
|
545
|
1318 link.exe @<<
|
|
1319 $(TEMACS_LFLAGS) -section:.rsrc,rw -out:xemacs.exe $(TEMACS_OBJS) $(OUTDIR)\xemacs.res $(TEMACS_LIBS) $(OUTDIR)\dump-id.obj
|
|
1320 <<
|
637
|
1321 -$(DEL) $(TEMACS_DIR)\xemacs.dmp
|
440
|
1322 !endif
|
430
|
1323 cd $(NT)
|
872
|
1324 @if not exist $(TEMACS_DIR)\SATISFIED $(MAKE) /$(MAKEFLAGS) -nologo -f xemacs.mak $@
|
428
|
1325 #------------------------------------------------------------------------------
|
|
1326
|
|
1327 # use this rule to build the complete system
|
442
|
1328 all: installation $(OUTDIR)\nul $(LASTFILE) $(LWLIB) \
|
|
1329 $(LIB_SRC_TOOLS) $(TEMACS) update-elc $(DOC) $(PROGNAME) \
|
528
|
1330 update-elc-2 info
|
428
|
1331
|
438
|
1332 temacs: $(LASTFILE) $(TEMACS)
|
428
|
1333
|
|
1334 # use this rule to install the system
|
|
1335 install: all
|
430
|
1336 cd $(NT)
|
428
|
1337 @echo Installing in $(INSTALL_DIR) ...
|
|
1338 @echo PlaceHolder > PlaceHolder
|
583
|
1339 @$(COPY) PROBLEMS "$(INSTALL_DIR)\"
|
|
1340 @$(COPY) PlaceHolder "$(INSTALL_DIR)\lock\"
|
637
|
1341 -$(DEL) "$(INSTALL_DIR)\lock\PlaceHolder"
|
583
|
1342 @$(COPY) $(LIB_SRC)\*.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)\"
|
|
1343 @$(COPY) $(LIB_SRC)\DOC "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
|
1344 @$(COPY) $(CONFIG_VALUES) "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
872
|
1345 @$(COPY) $(TEMACS_DIR)\xemacs.exe "$(INSTALL_DIR)\$(EMACS_CONFIGURATION)"
|
583
|
1346 @$(COPYDIR) $(XEMACS)\etc "$(INSTALL_DIR)\etc\"
|
|
1347 @$(COPYDIR) $(XEMACS)\info "$(INSTALL_DIR)\info\"
|
|
1348 @$(COPYDIR) $(XEMACS)\lisp "$(INSTALL_DIR)\lisp\"
|
428
|
1349 @echo Making skeleton package tree in $(PACKAGE_PREFIX) ...
|
583
|
1350 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\site-packages\"
|
637
|
1351 -$(DEL) "$(PACKAGE_PREFIX)\site-packages\PlaceHolder"
|
583
|
1352 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\mule-packages\"
|
637
|
1353 -$(DEL) "$(PACKAGE_PREFIX)\mule-packages\PlaceHolder"
|
583
|
1354 @$(COPY) PlaceHolder "$(PACKAGE_PREFIX)\xemacs-packages\"
|
637
|
1355 -$(DEL) "$(PACKAGE_PREFIX)\xemacs-packages\PlaceHolder"
|
|
1356 -$(DEL) PlaceHolder
|
428
|
1357
|
442
|
1358 mostlyclean:
|
637
|
1359 -$(DEL) $(XEMACS)\Installation
|
|
1360 -$(DEL) $(OUTDIR)\*.lib
|
|
1361 -$(DEL) $(OUTDIR)\*.obj
|
|
1362 -$(DEL) $(OUTDIR)\*.pdb
|
|
1363 -$(DEL) $(OUTDIR)\*.res
|
|
1364 -$(DEL) $(OUTDIR)\*.sbr
|
872
|
1365 -$(DEL) $(TEMACS_DIR)\*.exe
|
|
1366 -$(DEL) $(TEMACS_DIR)\*.map
|
637
|
1367 -$(DEL) $(SRC)\*.bsc
|
872
|
1368 -$(DEL) $(TEMACS_DIR)\*.pdb
|
637
|
1369 -$(DEL) $(LIB_SRC)\*.exe
|
|
1370 -$(DEL) $(LIB_SRC)\*.obj
|
|
1371 -$(DEL) $(LIB_SRC)\*.pdb
|
|
1372 -$(DEL) $(LIB_SRC)\*.res
|
442
|
1373
|
|
1374 clean: mostlyclean versionclean
|
637
|
1375 -$(DEL) $(XEMACS)\TAGS
|
442
|
1376
|
|
1377 nicenclean: clean
|
637
|
1378 -$(DEL) $(NT)\*.bak
|
|
1379 -$(DEL) $(NT)\*.orig
|
|
1380 -$(DEL) $(NT)\*.rej
|
|
1381 -$(DEL) $(NT)\*.tmp
|
|
1382 -$(DEL) $(LIB_SRC)\*.bak
|
|
1383 -$(DEL) $(LIB_SRC)\*.orig
|
|
1384 -$(DEL) $(LIB_SRC)\*.rej
|
|
1385 -$(DEL) $(LIB_SRC)\*.tmp
|
|
1386 -$(DEL) $(SRC)\*.bak
|
|
1387 -$(DEL) $(SRC)\*.orig
|
|
1388 -$(DEL) $(SRC)\*.rej
|
|
1389 -$(DEL) $(SRC)\*.tmp
|
|
1390 -$(DEL) $(LISP)\*.bak
|
|
1391 -$(DEL) $(LISP)\*.orig
|
|
1392 -$(DEL) $(LISP)\*.rej
|
|
1393 -$(DEL) $(LISP)\*.tmp
|
|
1394
|
|
1395 # Convenience target.
|
|
1396 # Reproducing the configuration is just a matter of copying, and if
|
|
1397 # we use the same directory for Cygwin builds these must go. We don't
|
|
1398 # want to use distclean.
|
|
1399 configclean:
|
|
1400 -$(DEL) $(SRC)\config.h
|
|
1401 -$(DEL) $(SRC)\paths.h
|
|
1402 -$(DEL) $(SRC)\Emacs.ad.h
|
442
|
1403
|
|
1404 ## This is used in making a distribution.
|
|
1405 ## Do not use it on development directories!
|
637
|
1406 distclean: nicenclean configclean
|
|
1407 -$(DEL) $(LIB_SRC)\$(CONFIG_VALUES)
|
|
1408 -$(DEL) $(INFODIR)\*.info*
|
|
1409 -$(DEL) $(LISP)\*.elc
|
|
1410 -$(DEL) $(LISP)\mule\*.elc
|
|
1411 -$(DEL) $(LISP)\term\*.elc
|
442
|
1412
|
|
1413 realclean: distclean
|
|
1414
|
|
1415 versionclean:
|
872
|
1416 -$(DEL) $(TEMACS_DIR)\xemacs.exe
|
637
|
1417 -$(DEL) $(LIB_SRC)\DOC
|
442
|
1418
|
|
1419 #not sure about those wildcards. DOS wildcards are stupid compared to Unix,
|
|
1420 #and could end up deleting *everything* instead of just backup files or
|
637
|
1421 #whatever. So just leave it at "realclean"
|
|
1422 extraclean: realclean
|
|
1423 # -$(DEL) *~
|
|
1424 # -$(DEL) *.*~
|
|
1425 # -$(DEL) #*
|
|
1426 # -$(DEL) m\*~
|
|
1427 # -$(DEL) m\#*
|
|
1428 # -$(DEL) s\*~
|
|
1429 # -$(DEL) s\#*
|
428
|
1430
|
|
1431 depend:
|
442
|
1432 cd $(SRC)
|
432
|
1433 perl ./make-src-depend > depend.tmp
|
|
1434 perl -MFile::Compare -e "compare('depend.tmp', 'depend') && rename('depend.tmp', 'depend') or unlink('depend.tmp')"
|
428
|
1435
|
771
|
1436 unicode-encapsulate:
|
|
1437 cd $(SRC)
|
|
1438 perl ../lib-src/make-mswin-unicode.pl --c-output intl-auto-encap-win32.c --h-output intl-auto-encap-win32.h intl-encap-win32.c
|
|
1439
|
442
|
1440 $(XEMACS)\Installation:: installation
|
440
|
1441
|
442
|
1442 installation::
|
558
|
1443 @echo OS version:>$(XEMACS)\Installation
|
|
1444 @ver >> $(XEMACS)\Installation
|
|
1445 @type >> $(XEMACS)\Installation <<
|
428
|
1446 !if defined(OS)
|
|
1447 OS: $(OS)
|
|
1448 !endif
|
|
1449
|
|
1450 XEmacs $(XEMACS_VERSION_STRING) $(xemacs_codename:"=\") configured for `$(EMACS_CONFIGURATION)'.
|
|
1451
|
872
|
1452 Building XEmacs using \"$(MAKE:\=\\)\".
|
|
1453 Building XEmacs using make flags \"$(MAKEFLAGS)\".
|
428
|
1454 Building XEmacs in \"$(MAKEDIR:\=\\)\".
|
|
1455 !if defined(CCV)
|
|
1456 Using compiler \"$(CC) $(CFLAGS)\".
|
|
1457 !endif
|
|
1458 Installing XEmacs in \"$(INSTALL_DIR:\=\\)\".
|
|
1459 Package path is $(PATH_PACKAGEPATH:"=\").
|
|
1460 !if $(INFODOCK)
|
|
1461 Building InfoDock.
|
|
1462 !endif
|
442
|
1463 !if $(HAVE_MS_WINDOWS)
|
428
|
1464 Compiling in support for Microsoft Windows native GUI.
|
|
1465 !endif
|
442
|
1466 !if $(HAVE_X_WINDOWS)
|
814
|
1467 Compiling in support for X Windows.
|
428
|
1468 !endif
|
771
|
1469 !if $(MULE)
|
|
1470 Compiling in international (MULE) support.
|
428
|
1471 !endif
|
488
|
1472 !if $(HAVE_GTK)
|
|
1473 --------------------------------------------------------------------
|
523
|
1474 WARNING: You specified HAVE_GTK=1, but we are compiling WITHOUT GTK support.
|
|
1475 WARNING: gtk-xemacs is not currently supported on MSWindows (mingw or msvc).
|
|
1476 WARNING: Yes, we know that gtk has been ported to native MSWindows, but
|
|
1477 WARNING: XEmacs is not yet ready to use that port.
|
488
|
1478 --------------------------------------------------------------------
|
|
1479 !endif
|
428
|
1480 !if $(HAVE_XPM)
|
|
1481 Compiling in support for XPM images.
|
|
1482 !else
|
|
1483 --------------------------------------------------------------------
|
|
1484 WARNING: Compiling without XPM support.
|
|
1485 WARNING: You should strongly consider installing XPM.
|
|
1486 WARNING: Otherwise toolbars and other graphics will look suboptimal.
|
|
1487 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux)
|
|
1488 --------------------------------------------------------------------
|
|
1489 !endif
|
|
1490 !if $(HAVE_GIF)
|
|
1491 Compiling in support for GIF images.
|
|
1492 !endif
|
|
1493 !if $(HAVE_PNG)
|
|
1494 Compiling in support for PNG images.
|
|
1495 !else
|
|
1496 --------------------------------------------------------------------
|
|
1497 WARNING: Compiling without PNG image support.
|
|
1498 WARNING: You should strongly consider installing the PNG libraries.
|
|
1499 WARNING: Otherwise certain images and glyphs may not display.
|
|
1500 WARNING: (a copy may be found in ftp://ftp.xemacs.org/pub/xemacs/aux
|
|
1501 --------------------------------------------------------------------
|
|
1502 !endif
|
|
1503 !if $(HAVE_TIFF)
|
|
1504 Compiling in support for TIFF images.
|
|
1505 !endif
|
|
1506 !if $(HAVE_JPEG)
|
|
1507 Compiling in support for JPEG images.
|
|
1508 !endif
|
|
1509 !if $(HAVE_XFACE)
|
|
1510 Compiling in support for X-Face message headers.
|
|
1511 !endif
|
771
|
1512 !if $(HAVE_ZLIB)
|
|
1513 Compiling in support for GZIP compression/decompression.
|
|
1514 !endif
|
428
|
1515 !if $(HAVE_TOOLBARS)
|
|
1516 Compiling in support for toolbars.
|
|
1517 !endif
|
|
1518 !if $(HAVE_DIALOGS)
|
|
1519 Compiling in support for dialogs.
|
|
1520 !endif
|
|
1521 !if $(HAVE_WIDGETS)
|
|
1522 Compiling in support for widgets.
|
|
1523 !endif
|
|
1524 !if $(HAVE_NATIVE_SOUND)
|
|
1525 Compiling in support for native sounds.
|
|
1526 !endif
|
|
1527 !if $(USE_UNION_TYPE)
|
|
1528 Using union type for Lisp object storage.
|
|
1529 !endif
|
438
|
1530 !if $(USE_PORTABLE_DUMPER)
|
|
1531 Using portable dumper.
|
|
1532 !endif
|
440
|
1533 !if $(USE_SYSTEM_MALLOC)
|
|
1534 Using system malloc.
|
|
1535 !endif
|
|
1536 !if $(USE_CRTDLL)
|
942
|
1537 Using DLL version of C runtime library.
|
440
|
1538 !endif
|
814
|
1539 !if $(ERROR_CHECK_ALL)
|
|
1540 Compiling in extra internal error-checking. XEmacs will be slow!
|
|
1541 !endif
|
428
|
1542 !if $(DEBUG_XEMACS)
|
814
|
1543 Compiling in debugging support (no slowdown).
|
|
1544 !endif
|
|
1545 !if $(OPTIMIZED_BUILD)
|
|
1546 Compiling with optimization.
|
428
|
1547 !endif
|
442
|
1548 !if $(QUICK_BUILD)
|
|
1549 Disabling non-essential build actions. Use with care!
|
|
1550 !endif
|
942
|
1551 !if $(USE_KKCC)
|
|
1552 Using new experimental GC algorithms.
|
|
1553 !endif
|
428
|
1554 <<NOKEEP
|
|
1555 @echo --------------------------------------------------------------------
|
|
1556 @type $(XEMACS)\Installation
|
|
1557 @echo --------------------------------------------------------------------
|
|
1558
|
442
|
1559 # Update out-of-date .elcs, other than needed for dumping.
|
|
1560 update-elc-2:
|
|
1561 $(XEMACS_BATCH) -l update-elc-2.el -f batch-update-elc-2 $(LISP)
|
|
1562
|
428
|
1563 # DO NOT DELETE THIS LINE -- make depend depends on it.
|
|
1564
|