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