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