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)
|
|
204 DEBUG_DEFINES=-DDEBUG_XEMACS
|
223
|
205 DEBUG_FLAGS= -debugtype:both -debug:full
|
219
|
206 !endif
|
|
207
|
183
|
208 !include "..\version.sh"
|
167
|
209
|
118
|
210 # Generic variables
|
|
211
|
278
|
212 INCLUDES=$(X_INCLUDES) $(MSW_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib
|
213
|
213
|
276
|
214 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) \
|
265
|
215 -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs \
|
|
216 -DHAVE_CONFIG_H -D_DEBUG
|
118
|
217
|
|
218 OUTDIR=obj
|
|
219
|
|
220 #------------------------------------------------------------------------------
|
|
221
|
213
|
222 default: $(OUTDIR)\nul all
|
118
|
223
|
213
|
224 $(OUTDIR)\nul:
|
118
|
225 -@mkdir $(OUTDIR)
|
|
226
|
183
|
227 XEMACS_INCLUDES=\
|
|
228 $(XEMACS)\src\config.h \
|
|
229 $(XEMACS)\src\Emacs.ad.h \
|
223
|
230 $(XEMACS)\src\paths.h \
|
|
231 $(XEMACS)\src\puresize-adjust.h
|
183
|
232
|
219
|
233 $(XEMACS)\src\config.h: config.h
|
278
|
234 copy config.h $(XEMACS)\src
|
219
|
235
|
|
236 $(XEMACS)\src\Emacs.ad.h: Emacs.ad.h
|
278
|
237 copy Emacs.ad.h $(XEMACS)\src
|
219
|
238
|
|
239 $(XEMACS)\src\paths.h: paths.h
|
278
|
240 copy paths.h $(XEMACS)\src
|
183
|
241
|
223
|
242 $(XEMACS)\src\puresize-adjust.h: puresize-adjust.h
|
278
|
243 copy puresize-adjust.h $(XEMACS)\src
|
223
|
244
|
183
|
245 #------------------------------------------------------------------------------
|
|
246
|
118
|
247 # LASTFILE Library
|
|
248
|
183
|
249 LASTFILE=$(OUTDIR)\lastfile.lib
|
|
250 LASTFILE_SRC=$(XEMACS)\src
|
231
|
251 LASTFILE_FLAGS=-nologo $(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) -Fo$@ -c
|
118
|
252 LASTFILE_OBJS= \
|
183
|
253 $(OUTDIR)\lastfile.obj
|
179
|
254
|
215
|
255 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
183
|
256 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
118
|
257
|
183
|
258 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
278
|
259 $(CCV) $(LASTFILE_FLAGS) $**
|
118
|
260
|
|
261 #------------------------------------------------------------------------------
|
|
262
|
213
|
263 !if $(HAVE_X)
|
|
264
|
118
|
265 # LWLIB Library
|
|
266
|
183
|
267 LWLIB=$(OUTDIR)\lwlib.lib
|
|
268 LWLIB_SRC=$(XEMACS)\lwlib
|
231
|
269 LWLIB_FLAGS=-nologo $(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) $(DEFINES) \
|
213
|
270 -DNEED_ATHENA -DNEED_LUCID \
|
|
271 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
|
|
272 -Fo$@ -c
|
118
|
273 LWLIB_OBJS= \
|
213
|
274 $(OUTDIR)\lwlib-config.obj \
|
|
275 $(OUTDIR)\lwlib-utils.obj \
|
|
276 $(OUTDIR)\lwlib-Xaw.obj \
|
|
277 $(OUTDIR)\lwlib-Xlw.obj \
|
|
278 $(OUTDIR)\lwlib.obj \
|
|
279 $(OUTDIR)\xlwmenu.obj \
|
|
280 $(OUTDIR)\xlwscrollbar.obj
|
118
|
281
|
215
|
282 $(LWLIB): $(LWLIB_OBJS)
|
223
|
283 link.exe -lib -nologo $(DEBUG_FLAGS) -out:$@ $(LWLIB_OBJS)
|
118
|
284
|
183
|
285 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRC)\lwlib-config.c
|
278
|
286 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
287
|
183
|
288 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRC)\lwlib-utils.c
|
278
|
289 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
290
|
183
|
291 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRC)\lwlib-Xaw.c
|
278
|
292 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
293
|
183
|
294 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRC)\lwlib-Xlw.c
|
278
|
295 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
296
|
183
|
297 $(OUTDIR)\lwlib.obj: $(LWLIB_SRC)\lwlib.c
|
278
|
298 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
299
|
183
|
300 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRC)\xlwmenu.c
|
278
|
301 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
302
|
183
|
303 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRC)\xlwscrollbar.c
|
278
|
304 $(CCV) $(LWLIB_FLAGS) $**
|
118
|
305
|
213
|
306 !endif
|
118
|
307 #------------------------------------------------------------------------------
|
|
308
|
|
309 # lib-src programs
|
|
310
|
183
|
311 LIB_SRC=$(XEMACS)\lib-src
|
213
|
312 LIB_SRC_FLAGS=$(INCLUDES) $(DEFINES) -ML
|
118
|
313 LIB_SRC_LIBS= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
|
213
|
314 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib
|
183
|
315 LIB_SRC_LFLAGS=-nologo $(LIB_SRC_LIBS) -base:0x1000000\
|
223
|
316 -subsystem:console -pdb:none $(DEBUG_FLAGS) -machine:I386\
|
|
317 -nodefaultlib -out:$@
|
167
|
318
|
183
|
319 DOC=$(LIB_SRC)\DOC
|
195
|
320 DOC_SRC1=\
|
183
|
321 $(XEMACS)\src\abbrev.c \
|
|
322 $(XEMACS)\src\alloc.c \
|
|
323 $(XEMACS)\src\alloca.c \
|
|
324 $(XEMACS)\src\blocktype.c \
|
|
325 $(XEMACS)\src\buffer.c \
|
|
326 $(XEMACS)\src\bytecode.c \
|
|
327 $(XEMACS)\src\callint.c \
|
|
328 $(XEMACS)\src\callproc.c \
|
|
329 $(XEMACS)\src\casefiddle.c \
|
|
330 $(XEMACS)\src\casetab.c \
|
|
331 $(XEMACS)\src\chartab.c \
|
|
332 $(XEMACS)\src\cmdloop.c \
|
|
333 $(XEMACS)\src\cmds.c \
|
|
334 $(XEMACS)\src\console-stream.c \
|
|
335 $(XEMACS)\src\console.c \
|
|
336 $(XEMACS)\src\data.c \
|
267
|
337 $(XEMACS)\src\device.c
|
195
|
338 DOC_SRC2=\
|
183
|
339 $(XEMACS)\src\dialog.c \
|
|
340 $(XEMACS)\src\dired.c \
|
|
341 $(XEMACS)\src\doc.c \
|
|
342 $(XEMACS)\src\doprnt.c \
|
|
343 $(XEMACS)\src\dynarr.c \
|
|
344 $(XEMACS)\src\editfns.c \
|
|
345 $(XEMACS)\src\elhash.c \
|
|
346 $(XEMACS)\src\emacs.c \
|
|
347 $(XEMACS)\src\eval.c \
|
|
348 $(XEMACS)\src\event-stream.c \
|
|
349 $(XEMACS)\src\events.c \
|
|
350 $(XEMACS)\src\extents.c \
|
|
351 $(XEMACS)\src\faces.c \
|
267
|
352 $(XEMACS)\src\file-coding.c \
|
183
|
353 $(XEMACS)\src\fileio.c \
|
|
354 $(XEMACS)\src\filelock.c \
|
|
355 $(XEMACS)\src\filemode.c \
|
|
356 $(XEMACS)\src\floatfns.c \
|
213
|
357 $(XEMACS)\src\fns.c
|
|
358 DOC_SRC3=\
|
183
|
359 $(XEMACS)\src\font-lock.c \
|
|
360 $(XEMACS)\src\frame.c \
|
|
361 $(XEMACS)\src\free-hook.c \
|
|
362 $(XEMACS)\src\general.c \
|
|
363 $(XEMACS)\src\glyphs.c \
|
|
364 $(XEMACS)\src\gmalloc.c \
|
213
|
365 $(XEMACS)\src\gui.c \
|
183
|
366 $(XEMACS)\src\hash.c \
|
269
|
367 $(XEMACS)\src\imgproc.c \
|
183
|
368 $(XEMACS)\src\indent.c \
|
|
369 $(XEMACS)\src\inline.c \
|
|
370 $(XEMACS)\src\insdel.c \
|
|
371 $(XEMACS)\src\intl.c \
|
|
372 $(XEMACS)\src\keymap.c \
|
213
|
373 $(XEMACS)\src\line-number.c \
|
183
|
374 $(XEMACS)\src\lread.c \
|
|
375 $(XEMACS)\src\lstream.c \
|
|
376 $(XEMACS)\src\macros.c \
|
213
|
377 $(XEMACS)\src\marker.c
|
|
378 DOC_SRC4=\
|
183
|
379 $(XEMACS)\src\md5.c \
|
231
|
380 $(XEMACS)\src\menubar.c \
|
183
|
381 $(XEMACS)\src\minibuf.c \
|
|
382 $(XEMACS)\src\nt.c \
|
|
383 $(XEMACS)\src\ntheap.c \
|
|
384 $(XEMACS)\src\ntproc.c \
|
|
385 $(XEMACS)\src\objects.c \
|
213
|
386 $(XEMACS)\src\opaque.c \
|
183
|
387 $(XEMACS)\src\print.c \
|
|
388 $(XEMACS)\src\process.c \
|
274
|
389 $(XEMACS)\src\process-nt.c \
|
223
|
390 $(XEMACS)\src\profile.c \
|
183
|
391 $(XEMACS)\src\pure.c \
|
|
392 $(XEMACS)\src\rangetab.c \
|
|
393 $(XEMACS)\src\realpath.c \
|
|
394 $(XEMACS)\src\redisplay-output.c \
|
|
395 $(XEMACS)\src\redisplay.c \
|
|
396 $(XEMACS)\src\regex.c \
|
|
397 $(XEMACS)\src\scrollbar.c \
|
225
|
398 $(XEMACS)\src\scrollbar-msw.c \
|
183
|
399 $(XEMACS)\src\search.c \
|
|
400 $(XEMACS)\src\signal.c \
|
213
|
401 $(XEMACS)\src\sound.c
|
|
402 DOC_SRC5=\
|
183
|
403 $(XEMACS)\src\specifier.c \
|
|
404 $(XEMACS)\src\strftime.c \
|
|
405 $(XEMACS)\src\symbols.c \
|
|
406 $(XEMACS)\src\syntax.c \
|
|
407 $(XEMACS)\src\sysdep.c \
|
213
|
408 $(XEMACS)\src\termcap.c \
|
183
|
409 $(XEMACS)\src\tparam.c \
|
|
410 $(XEMACS)\src\undo.c \
|
|
411 $(XEMACS)\src\unexnt.c \
|
|
412 $(XEMACS)\src\vm-limit.c \
|
|
413 $(XEMACS)\src\window.c \
|
213
|
414 $(XEMACS)\src\widget.c
|
|
415
|
|
416 !if $(HAVE_X)
|
|
417 DOC_SRC6=\
|
|
418 $(XEMACS)\src\balloon_help.c \
|
|
419 $(XEMACS)\src\console-x.c \
|
|
420 $(XEMACS)\src\device-x.c \
|
|
421 $(XEMACS)\src\dialog-x.c \
|
|
422 $(XEMACS)\src\EmacsFrame.c \
|
|
423 $(XEMACS)\src\EmacsManager.c \
|
|
424 $(XEMACS)\src\EmacsShell-sub.c\
|
|
425 $(XEMACS)\src\EmacsShell.c \
|
|
426 $(XEMACS)\src\event-Xt.c \
|
|
427 $(XEMACS)\src\frame-x.c \
|
|
428 $(XEMACS)\src\glyphs-x.c \
|
|
429 $(XEMACS)\src\gui-x.c \
|
|
430 $(XEMACS)\src\menubar.c \
|
|
431 $(XEMACS)\src\menubar-x.c \
|
|
432 $(XEMACS)\src\objects-x.c \
|
|
433 $(XEMACS)\src\redisplay-x.c \
|
|
434 $(XEMACS)\src\scrollbar-x.c \
|
|
435 $(XEMACS)\src\balloon-x.c \
|
183
|
436 $(XEMACS)\src\xgccache.c \
|
|
437 $(XEMACS)\src\xmu.c \
|
213
|
438 $(XEMACS)\src\xselect.c
|
|
439 !endif
|
|
440
|
|
441 !if $(HAVE_MSW)
|
219
|
442 DOC_SRC7=\
|
213
|
443 $(XEMACS)\src\console-msw.c \
|
|
444 $(XEMACS)\src\device-msw.c \
|
|
445 $(XEMACS)\src\event-msw.c \
|
|
446 $(XEMACS)\src\frame-msw.c \
|
269
|
447 $(XEMACS)\src\glyphs-msw.c \
|
231
|
448 $(XEMACS)\src\menubar-msw.c \
|
213
|
449 $(XEMACS)\src\objects-msw.c \
|
|
450 $(XEMACS)\src\redisplay-msw.c \
|
231
|
451 $(XEMACS)\src\scrollbar-msw.c \
|
263
|
452 $(XEMACS)\src\select-msw.c \
|
276
|
453 $(MSW_C_DIRED_SRC) \
|
|
454 $(MSW_TOOLBAR_SRC)
|
213
|
455 !endif
|
|
456
|
267
|
457 !if $(HAVE_MULE)
|
265
|
458 DOC_SRC8=\
|
183
|
459 $(XEMACS)\src\input-method-xlib.c \
|
|
460 $(XEMACS)\src\mule.c \
|
|
461 $(XEMACS)\src\mule-charset.c \
|
|
462 $(XEMACS)\src\mule-ccl.c \
|
213
|
463 $(XEMACS)\src\mule-coding.c
|
|
464 !endif
|
118
|
465
|
219
|
466 !if $(DEBUG_XEMACS)
|
267
|
467 DOC_SRC9=\
|
219
|
468 $(XEMACS)\src\debug.c
|
|
469 !endif
|
|
470
|
195
|
471 MAKE_DOCFILE=$(LIB_SRC)\make-docfile.exe
|
118
|
472
|
|
473 $(MAKE_DOCFILE): $(OUTDIR)\make-docfile.obj
|
183
|
474 link.exe -out:$@ $(LIB_SRC_LFLAGS) $** $(LIB_SRC_LIBS)
|
118
|
475
|
183
|
476 $(OUTDIR)\make-docfile.obj: $(LIB_SRC)\make-docfile.c
|
278
|
477 $(CCV) -nologo $(LIB_SRC_FLAGS) -c $** -Fo$@
|
118
|
478
|
183
|
479 RUNEMACS=$(XEMACS)\src\runemacs.exe
|
167
|
480
|
|
481 $(RUNEMACS): $(OUTDIR)\runemacs.obj
|
267
|
482 link.exe -nologo -out:$@ -subsystem:windows -entry:WinMainCRTStartup \
|
183
|
483 -pdb:none -release -incremental:no $** \
|
179
|
484 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \
|
213
|
485 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib
|
167
|
486
|
183
|
487 $(OUTDIR)\runemacs.obj: $(XEMACS)\nt\runemacs.c
|
278
|
488 $(CCV) -nologo -ML $(WARN_CPP_FLAGS) $(OPT) -c \
|
167
|
489 -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \
|
223
|
490 -D_X86_ -Demacs -DHAVE_CONFIG_H \
|
183
|
491 $** -Fo$@
|
167
|
492
|
|
493 SUPPORT_PROGS=$(MAKE_DOCFILE) $(RUNEMACS)
|
|
494
|
118
|
495 #------------------------------------------------------------------------------
|
|
496
|
|
497 # TEMACS Executable
|
|
498
|
183
|
499 TEMACS_DIR=$(XEMACS)\src
|
|
500 TEMACS=$(TEMACS_DIR)\temacs.exe
|
213
|
501 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
|
183
|
502 TEMACS_SRC=$(XEMACS)\src
|
276
|
503 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) $(MSW_LIBS) \
|
|
504 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib \
|
|
505 shell32.lib ole32.lib oleaut32.lib uuid.lib wsock32.lib winmm.lib libc.lib
|
223
|
506 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\
|
213
|
507 -stack:0x800000 -entry:_start -subsystem:console\
|
223
|
508 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \
|
219
|
509 -heap:0x00100000 -out:$@
|
231
|
510 TEMACS_CPP_FLAGS= $(WARN_CPP_FLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
|
183
|
511 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
512 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
219
|
513 -DEMACS_BETA_VERSION=$(emacs_beta_version) \
|
183
|
514 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
|
219
|
515 -DPATH_PREFIX=\"$(XEMACS)\" \
|
269
|
516 -DPATH_PACKAGEPATH=\"$(PATH_PACKAGEPATH)\"
|
219
|
517
|
231
|
518 TEMACS_FLAGS=-nologo -ML $(WARN_CPP_FALGS) $(OPT) -c $(TEMACS_CPP_FLAGS)
|
118
|
519
|
213
|
520 !if $(HAVE_X)
|
|
521 TEMACS_X_OBJS=\
|
|
522 $(OUTDIR)\balloon-x.obj \
|
|
523 $(OUTDIR)\balloon_help.obj \
|
|
524 $(OUTDIR)\console-x.obj \
|
|
525 $(OUTDIR)\device-x.obj \
|
|
526 $(OUTDIR)\dialog-x.obj \
|
|
527 $(OUTDIR)\EmacsFrame.obj \
|
|
528 $(OUTDIR)\EmacsManager.obj \
|
|
529 $(OUTDIR)\EmacsShell.obj \
|
|
530 $(OUTDIR)\TopLevelEmacsShell.obj\
|
|
531 $(OUTDIR)\TransientEmacsShell.obj\
|
|
532 $(OUTDIR)\event-Xt.obj \
|
|
533 $(OUTDIR)\frame-x.obj \
|
|
534 $(OUTDIR)\glyphs-x.obj \
|
|
535 $(OUTDIR)\gui-x.obj \
|
|
536 $(OUTDIR)\menubar-x.obj \
|
|
537 $(OUTDIR)\objects-x.obj \
|
|
538 $(OUTDIR)\redisplay-x.obj \
|
|
539 $(OUTDIR)\scrollbar-x.obj \
|
|
540 $(OUTDIR)\xgccache.obj \
|
|
541 $(OUTDIR)\xmu.obj \
|
|
542 $(OUTDIR)\xselect.obj
|
|
543 !endif
|
|
544
|
|
545 !if $(HAVE_MSW)
|
|
546 TEMACS_MSW_OBJS=\
|
|
547 $(OUTDIR)\console-msw.obj \
|
|
548 $(OUTDIR)\device-msw.obj \
|
|
549 $(OUTDIR)\event-msw.obj \
|
|
550 $(OUTDIR)\frame-msw.obj \
|
269
|
551 $(OUTDIR)\glyphs-msw.obj \
|
231
|
552 $(OUTDIR)\menubar-msw.obj \
|
213
|
553 $(OUTDIR)\objects-msw.obj \
|
|
554 $(OUTDIR)\redisplay-msw.obj \
|
231
|
555 $(OUTDIR)\scrollbar-msw.obj \
|
263
|
556 $(OUTDIR)\select-msw.obj \
|
276
|
557 $(MSW_C_DIRED_OBJ) \
|
|
558 $(MSW_TOOLBAR_OBJ)
|
213
|
559 !endif
|
|
560
|
265
|
561
|
213
|
562 !if $(HAVE_MULE)
|
|
563 TEMACS_MULE_OBJS=\
|
|
564 $(OUTDIR)\input-method-xlib.obj \
|
|
565 $(OUTDIR)\mule.obj \
|
|
566 $(OUTDIR)\mule-charset.obj \
|
|
567 $(OUTDIR)\mule-ccl.obj \
|
219
|
568 $(OUTDIR)\mule-coding.obj
|
|
569 !endif
|
|
570
|
|
571 !if $(DEBUG_XEMACS)
|
|
572 TEMACS_DEBUG_OBJS=\
|
|
573 $(OUTDIR)\debug.obj
|
213
|
574 !endif
|
|
575
|
118
|
576 TEMACS_OBJS= \
|
213
|
577 $(TEMACS_X_OBJS)\
|
|
578 $(TEMACS_MSW_OBJS)\
|
265
|
579 $(TEMACS_CODING_OBJS)\
|
213
|
580 $(TEMACS_MULE_OBJS)\
|
219
|
581 $(TEMACS_DEBUG_OBJS)\
|
183
|
582 $(OUTDIR)\abbrev.obj \
|
|
583 $(OUTDIR)\alloc.obj \
|
|
584 $(OUTDIR)\alloca.obj \
|
|
585 $(OUTDIR)\blocktype.obj \
|
|
586 $(OUTDIR)\buffer.obj \
|
|
587 $(OUTDIR)\bytecode.obj \
|
|
588 $(OUTDIR)\callint.obj \
|
|
589 $(OUTDIR)\callproc.obj \
|
|
590 $(OUTDIR)\casefiddle.obj \
|
|
591 $(OUTDIR)\casetab.obj \
|
|
592 $(OUTDIR)\chartab.obj \
|
|
593 $(OUTDIR)\cmdloop.obj \
|
|
594 $(OUTDIR)\cmds.obj \
|
|
595 $(OUTDIR)\console-stream.obj \
|
|
596 $(OUTDIR)\console.obj \
|
|
597 $(OUTDIR)\data.obj \
|
|
598 $(OUTDIR)\device.obj \
|
|
599 $(OUTDIR)\dialog.obj \
|
|
600 $(OUTDIR)\dired.obj \
|
|
601 $(OUTDIR)\doc.obj \
|
|
602 $(OUTDIR)\doprnt.obj \
|
|
603 $(OUTDIR)\dynarr.obj \
|
|
604 $(OUTDIR)\editfns.obj \
|
|
605 $(OUTDIR)\elhash.obj \
|
|
606 $(OUTDIR)\emacs.obj \
|
|
607 $(OUTDIR)\eval.obj \
|
|
608 $(OUTDIR)\event-stream.obj \
|
|
609 $(OUTDIR)\events.obj \
|
|
610 $(OUTDIR)\extents.obj \
|
|
611 $(OUTDIR)\faces.obj \
|
267
|
612 $(OUTDIR)\file-coding.obj \
|
183
|
613 $(OUTDIR)\fileio.obj \
|
|
614 $(OUTDIR)\filelock.obj \
|
|
615 $(OUTDIR)\filemode.obj \
|
|
616 $(OUTDIR)\floatfns.obj \
|
|
617 $(OUTDIR)\fns.obj \
|
|
618 $(OUTDIR)\font-lock.obj \
|
|
619 $(OUTDIR)\frame.obj \
|
|
620 $(OUTDIR)\free-hook.obj \
|
|
621 $(OUTDIR)\general.obj \
|
|
622 $(OUTDIR)\glyphs.obj \
|
|
623 $(OUTDIR)\gmalloc.obj \
|
|
624 $(OUTDIR)\gui.obj \
|
|
625 $(OUTDIR)\hash.obj \
|
|
626 $(OUTDIR)\indent.obj \
|
269
|
627 $(OUTDIR)\imgproc.obj \
|
183
|
628 $(OUTDIR)\inline.obj \
|
|
629 $(OUTDIR)\insdel.obj \
|
|
630 $(OUTDIR)\intl.obj \
|
|
631 $(OUTDIR)\keymap.obj \
|
213
|
632 $(OUTDIR)\line-number.obj \
|
183
|
633 $(OUTDIR)\lread.obj \
|
|
634 $(OUTDIR)\lstream.obj \
|
|
635 $(OUTDIR)\macros.obj \
|
231
|
636 $(OUTDIR)\menubar.obj \
|
183
|
637 $(OUTDIR)\marker.obj \
|
|
638 $(OUTDIR)\md5.obj \
|
|
639 $(OUTDIR)\minibuf.obj \
|
|
640 $(OUTDIR)\nt.obj \
|
|
641 $(OUTDIR)\ntheap.obj \
|
|
642 $(OUTDIR)\ntproc.obj \
|
|
643 $(OUTDIR)\objects.obj \
|
|
644 $(OUTDIR)\opaque.obj \
|
|
645 $(OUTDIR)\print.obj \
|
|
646 $(OUTDIR)\process.obj \
|
274
|
647 $(OUTDIR)\process-nt.obj \
|
223
|
648 $(OUTDIR)\profile.obj \
|
183
|
649 $(OUTDIR)\pure.obj \
|
|
650 $(OUTDIR)\rangetab.obj \
|
|
651 $(OUTDIR)\realpath.obj \
|
|
652 $(OUTDIR)\redisplay-output.obj \
|
|
653 $(OUTDIR)\redisplay.obj \
|
|
654 $(OUTDIR)\regex.obj \
|
225
|
655 $(OUTDIR)\scrollbar.obj \
|
183
|
656 $(OUTDIR)\search.obj \
|
|
657 $(OUTDIR)\signal.obj \
|
|
658 $(OUTDIR)\sound.obj \
|
|
659 $(OUTDIR)\specifier.obj \
|
|
660 $(OUTDIR)\strftime.obj \
|
|
661 $(OUTDIR)\symbols.obj \
|
|
662 $(OUTDIR)\syntax.obj \
|
|
663 $(OUTDIR)\sysdep.obj \
|
|
664 $(OUTDIR)\tparam.obj \
|
|
665 $(OUTDIR)\undo.obj \
|
|
666 $(OUTDIR)\unexnt.obj \
|
|
667 $(OUTDIR)\vm-limit.obj \
|
197
|
668 $(OUTDIR)\widget.obj \
|
227
|
669 $(OUTDIR)\window.obj \
|
|
670 xemacs.res
|
155
|
671
|
213
|
672 # Rules
|
118
|
673
|
213
|
674 .SUFFIXES:
|
|
675 .SUFFIXES: .c
|
118
|
676
|
213
|
677 # nmake rule
|
|
678 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
278
|
679 $(CCV) $(TEMACS_FLAGS) $< -Fo$@ -Fr$*.sbr
|
118
|
680
|
183
|
681 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
278
|
682 $(CCV) $(TEMACS_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
|
118
|
683
|
183
|
684 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
278
|
685 $(CCV) $(TEMACS_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
|
118
|
686
|
223
|
687 $(OUTDIR)\pure.obj: $(TEMACS_SRC)\pure.c $(TEMACS_SRC)\puresize-adjust.h
|
|
688
|
183
|
689 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
|
|
690 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
|
118
|
691
|
183
|
692 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
|
|
693 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
|
118
|
694
|
213
|
695 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
|
|
696 link.exe @<<
|
|
697 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
|
|
698 <<
|
|
699
|
227
|
700 xemacs.res: xemacs.rc
|
|
701 rc xemacs.rc
|
|
702
|
213
|
703 # MSDEV Source Broswer file. "*.sbr" is too inclusive but this is harmless
|
|
704 $(TEMACS_BROWSE): $(TEMACS_OBJS)
|
267
|
705 @dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
|
278
|
706 bscmake -nologo -o$@ @bscmake.tmp
|
267
|
707 @del bscmake.tmp
|
213
|
708
|
118
|
709 #------------------------------------------------------------------------------
|
|
710
|
|
711 # LISP bits 'n bobs
|
|
712
|
213
|
713 LOADPATH=$(LISP)
|
|
714
|
217
|
715 $(DOC): $(LIB_SRC)\make-docfile.exe
|
215
|
716 -del $(DOC)
|
278
|
717 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
|
|
718 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
|
|
719 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
|
|
720 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
|
|
721 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
|
|
722 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
|
|
723 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
|
|
724 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
|
|
725 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
|
|
726 $(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
|
183
|
727
|
265
|
728 $(LISP)\Installation.el: Installation.el
|
|
729 copy Installation.el $(LISP)
|
|
730
|
|
731 update-elc: $(LISP)\Installation.el
|
269
|
732 set EMACSBOOTSTRAPLOADPATH=$(LISP)
|
278
|
733 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\update-elc.el
|
223
|
734
|
278
|
735 # This rule dumps xemacs and then possibly spawns sub-make if PURESPACE
|
|
736 # requirements has changed.
|
223
|
737 dump-xemacs: $(TEMACS)
|
278
|
738 @echo >$(TEMACS_DIR)\SATISFIED
|
269
|
739 cd $(TEMACS_DIR)
|
|
740 set EMACSBOOTSTRAPLOADPATH=$(LISP)
|
278
|
741 -1 $(TEMACS) -batch -l $(TEMACS_DIR)\..\lisp\loadup.el dump
|
269
|
742 cd $(XEMACS)\nt
|
278
|
743 @if not exist $(TEMACS_DIR)\SATISFIED nmake -nologo -f xemacs.mak $@
|
118
|
744
|
|
745 #------------------------------------------------------------------------------
|
|
746
|
|
747 # use this rule to build the complete system
|
278
|
748 all: $(OUTDIR)\nul $(LASTFILE) $(LWLIB) $(SUPPORT_PROGS) \
|
|
749 $(TEMACS) $(TEMACS_BROWSE) update-elc $(DOC) dump-xemacs
|
118
|
750
|
278
|
751 temacs: $(TEMACS)
|
231
|
752
|
118
|
753 # use this rule to install the system
|
|
754 install:
|
274
|
755 echo Not yet implemented.
|
213
|
756
|
|
757 distclean:
|
|
758 del *.bak
|
|
759 del *.orig
|
|
760 del *.rej
|
|
761 del *.pdb
|
|
762 del *.tmp
|
|
763 del puresize-adjust.h
|
|
764 cd $(OUTDIR)
|
|
765 del *.obj
|
|
766 del *.sbr
|
|
767 del *.lib
|
|
768 cd ..\$(TEMACS_DIR)
|
|
769 del config.h
|
|
770 del paths.h
|
215
|
771 del Emacs.ad.h
|
213
|
772 del *.bak
|
|
773 del *.orig
|
|
774 del *.rej
|
|
775 del *.exe
|
|
776 del *.map
|
|
777 del *.bsc
|
|
778 del *.pdb
|
|
779 cd $(LIB_SRC)
|
|
780 del DOC
|
|
781 del *.bak
|
|
782 del *.orig
|
|
783 del *.rej
|
|
784 del *.exe
|
|
785 cd $(LISP)
|
|
786 -del /s /q *.bak *.elc *.orig *.rej
|
|
787
|
|
788 depend:
|
267
|
789 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
|
790
|
|
791 # DO NOT DELETE THIS LINE -- make depend depends on it.
|
267
|
792
|