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