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