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