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