118
|
1 XEMACS=..
|
183
|
2 LISP=$(XEMACS)\lisp
|
219
|
3 PACKAGE_PATH="~/.xemacs;h:/src/xemacs/packages"
|
213
|
4 HAVE_X=0
|
|
5 HAVE_MSW=1
|
|
6
|
|
7 HAVE_MULE=0
|
215
|
8 HAVE_IMAGEMAGICK=0
|
213
|
9
|
219
|
10 DEBUG_XEMACS=1
|
|
11
|
|
12 !if $(DEBUG_XEMACS)
|
183
|
13 OPT=-Od -Zi
|
219
|
14 !else
|
|
15 OPT=-O2 -G5 -Zi
|
|
16 !endif
|
183
|
17
|
213
|
18 #------------------------------------------------------------------------------
|
|
19
|
|
20 !if $(HAVE_X)
|
215
|
21
|
|
22 X11R6=h:\utils\X11R6
|
|
23
|
|
24 !if $(HAVE_IMAGEMAGICK)
|
213
|
25 MAGICK=e:\utils\ImageMagick
|
215
|
26
|
|
27 MAGICK_INCLUDES=-I$(MAGICK)\Magick
|
|
28 MAGICK_LIBS=Magick.dll.lib
|
|
29 !endif
|
213
|
30
|
|
31 X_DEFINES=-DHAVE_X_WINDOWS
|
215
|
32 X_INCLUDES=-I$(X11R6)\include $(MAGICK_INCLUDES)
|
|
33 X_LIBS=$(MAGICK_LIBS) Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib
|
213
|
34 !endif
|
|
35
|
|
36 !if $(HAVE_MSW)
|
|
37 MSW_DEFINES=-DHAVE_MS_WINDOWS
|
|
38 !endif
|
|
39
|
|
40 !if $(HAVE_MULE)
|
|
41 MULE_DEFINES=-DMULE
|
|
42 !endif
|
|
43
|
219
|
44 !if $(DEBUG_XEMACS)
|
|
45 DEBUG_DEFINES=-DDEBUG_XEMACS
|
|
46 !endif
|
|
47
|
183
|
48 !include "..\version.sh"
|
167
|
49
|
215
|
50 # Nothing should need to be edited below this point.
|
118
|
51 #------------------------------------------------------------------------------
|
|
52
|
|
53 # Generic variables
|
|
54
|
213
|
55 INCLUDES=$(X_INCLUDES) -I$(XEMACS)\nt\inc -I$(XEMACS)\src -I$(XEMACS)\lwlib -I"$(MSVCDIR)\include"
|
|
56
|
|
57 DEFINES=$(X_DEFINES) $(MSW_DEFINES) $(MULE_DEFINES) -DWIN32 -D_WIN32 \
|
|
58 -D_M_IX86 -D_X86_ \
|
|
59 -DWIN32_LEAN_AND_MEAN -DWINDOWSNT -Demacs -DHAVE_CONFIG_H \
|
|
60 -D_MSC_VER=999 -D_DEBUG
|
118
|
61
|
|
62 OUTDIR=obj
|
|
63
|
|
64 #------------------------------------------------------------------------------
|
|
65
|
213
|
66 default: $(OUTDIR)\nul all
|
118
|
67
|
213
|
68 $(OUTDIR)\nul:
|
118
|
69 -@mkdir $(OUTDIR)
|
|
70
|
183
|
71 XEMACS_INCLUDES=\
|
|
72 $(XEMACS)\src\config.h \
|
|
73 $(XEMACS)\src\Emacs.ad.h \
|
|
74 $(XEMACS)\src\paths.h
|
|
75
|
219
|
76 $(XEMACS)\src\config.h: config.h
|
|
77 !copy config.h $(XEMACS)\src
|
|
78
|
|
79 $(XEMACS)\src\Emacs.ad.h: Emacs.ad.h
|
|
80 !copy Emacs.ad.h $(XEMACS)\src
|
|
81
|
|
82 $(XEMACS)\src\paths.h: paths.h
|
|
83 !copy paths.h $(XEMACS)\src
|
183
|
84
|
|
85 #------------------------------------------------------------------------------
|
|
86
|
118
|
87 # LASTFILE Library
|
|
88
|
183
|
89 LASTFILE=$(OUTDIR)\lastfile.lib
|
|
90 LASTFILE_SRC=$(XEMACS)\src
|
|
91 LASTFILE_FLAGS=-nologo -w $(OPT) $(INCLUDES) -Fo$@ -c
|
118
|
92 LASTFILE_OBJS= \
|
183
|
93 $(OUTDIR)\lastfile.obj
|
179
|
94
|
215
|
95 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS)
|
183
|
96 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS)
|
118
|
97
|
183
|
98 $(OUTDIR)\lastfile.obj: $(LASTFILE_SRC)\lastfile.c
|
118
|
99 $(CC) $(LASTFILE_FLAGS) $**
|
|
100
|
|
101 #------------------------------------------------------------------------------
|
|
102
|
213
|
103 !if $(HAVE_X)
|
|
104
|
118
|
105 # LWLIB Library
|
|
106
|
183
|
107 LWLIB=$(OUTDIR)\lwlib.lib
|
|
108 LWLIB_SRC=$(XEMACS)\lwlib
|
213
|
109 LWLIB_FLAGS=-nologo -w $(OPT) $(INCLUDES) $(DEFINES) \
|
|
110 -DNEED_ATHENA -DNEED_LUCID \
|
|
111 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \
|
|
112 -Fo$@ -c
|
118
|
113 LWLIB_OBJS= \
|
213
|
114 $(OUTDIR)\lwlib-config.obj \
|
|
115 $(OUTDIR)\lwlib-utils.obj \
|
|
116 $(OUTDIR)\lwlib-Xaw.obj \
|
|
117 $(OUTDIR)\lwlib-Xlw.obj \
|
|
118 $(OUTDIR)\lwlib.obj \
|
|
119 $(OUTDIR)\xlwmenu.obj \
|
|
120 $(OUTDIR)\xlwscrollbar.obj
|
118
|
121
|
215
|
122 $(LWLIB): $(LWLIB_OBJS)
|
213
|
123 link.exe -lib -nologo -debugtype:both -out:$@ $(LWLIB_OBJS)
|
118
|
124
|
183
|
125 $(OUTDIR)\lwlib-config.obj: $(LWLIB_SRC)\lwlib-config.c
|
118
|
126 $(CC) $(LWLIB_FLAGS) $**
|
|
127
|
183
|
128 $(OUTDIR)\lwlib-utils.obj: $(LWLIB_SRC)\lwlib-utils.c
|
118
|
129 $(CC) $(LWLIB_FLAGS) $**
|
|
130
|
183
|
131 $(OUTDIR)\lwlib-Xaw.obj: $(LWLIB_SRC)\lwlib-Xaw.c
|
118
|
132 $(CC) $(LWLIB_FLAGS) $**
|
|
133
|
183
|
134 $(OUTDIR)\lwlib-Xlw.obj: $(LWLIB_SRC)\lwlib-Xlw.c
|
118
|
135 $(CC) $(LWLIB_FLAGS) $**
|
|
136
|
183
|
137 $(OUTDIR)\lwlib.obj: $(LWLIB_SRC)\lwlib.c
|
118
|
138 $(CC) $(LWLIB_FLAGS) $**
|
|
139
|
183
|
140 $(OUTDIR)\xlwmenu.obj: $(LWLIB_SRC)\xlwmenu.c
|
118
|
141 $(CC) $(LWLIB_FLAGS) $**
|
|
142
|
183
|
143 $(OUTDIR)\xlwscrollbar.obj: $(LWLIB_SRC)\xlwscrollbar.c
|
118
|
144 $(CC) $(LWLIB_FLAGS) $**
|
|
145
|
213
|
146 !endif
|
118
|
147 #------------------------------------------------------------------------------
|
|
148
|
|
149 # lib-src programs
|
|
150
|
183
|
151 LIB_SRC=$(XEMACS)\lib-src
|
213
|
152 LIB_SRC_FLAGS=$(INCLUDES) $(DEFINES) -ML
|
118
|
153 LIB_SRC_LIBS= kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib\
|
213
|
154 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib
|
183
|
155 LIB_SRC_LFLAGS=-nologo $(LIB_SRC_LIBS) -base:0x1000000\
|
|
156 -subsystem:console -pdb:none -debugtype:both -machine:I386\
|
|
157 -nodefaultlib -out:$@ -debug:full
|
167
|
158
|
183
|
159 DOC=$(LIB_SRC)\DOC
|
195
|
160 DOC_SRC1=\
|
183
|
161 $(XEMACS)\src\abbrev.c \
|
|
162 $(XEMACS)\src\alloc.c \
|
|
163 $(XEMACS)\src\alloca.c \
|
|
164 $(XEMACS)\src\blocktype.c \
|
|
165 $(XEMACS)\src\buffer.c \
|
|
166 $(XEMACS)\src\bytecode.c \
|
|
167 $(XEMACS)\src\callint.c \
|
|
168 $(XEMACS)\src\callproc.c \
|
|
169 $(XEMACS)\src\casefiddle.c \
|
|
170 $(XEMACS)\src\casetab.c \
|
|
171 $(XEMACS)\src\chartab.c \
|
|
172 $(XEMACS)\src\cmdloop.c \
|
|
173 $(XEMACS)\src\cmds.c \
|
|
174 $(XEMACS)\src\console-stream.c \
|
|
175 $(XEMACS)\src\console.c \
|
|
176 $(XEMACS)\src\data.c \
|
213
|
177 $(XEMACS)\src\device.c \
|
|
178 $(XEMACS)\src\dgif_lib.c
|
195
|
179 DOC_SRC2=\
|
183
|
180 $(XEMACS)\src\dialog.c \
|
|
181 $(XEMACS)\src\dired.c \
|
|
182 $(XEMACS)\src\doc.c \
|
|
183 $(XEMACS)\src\doprnt.c \
|
|
184 $(XEMACS)\src\dynarr.c \
|
|
185 $(XEMACS)\src\editfns.c \
|
|
186 $(XEMACS)\src\elhash.c \
|
|
187 $(XEMACS)\src\emacs.c \
|
|
188 $(XEMACS)\src\eval.c \
|
|
189 $(XEMACS)\src\event-stream.c \
|
|
190 $(XEMACS)\src\event-unixoid.c \
|
|
191 $(XEMACS)\src\events.c \
|
|
192 $(XEMACS)\src\extents.c \
|
|
193 $(XEMACS)\src\faces.c \
|
|
194 $(XEMACS)\src\fileio.c \
|
|
195 $(XEMACS)\src\filelock.c \
|
|
196 $(XEMACS)\src\filemode.c \
|
|
197 $(XEMACS)\src\floatfns.c \
|
213
|
198 $(XEMACS)\src\fns.c
|
|
199 DOC_SRC3=\
|
183
|
200 $(XEMACS)\src\font-lock.c \
|
|
201 $(XEMACS)\src\frame.c \
|
|
202 $(XEMACS)\src\free-hook.c \
|
|
203 $(XEMACS)\src\general.c \
|
|
204 $(XEMACS)\src\gif_err.c \
|
|
205 $(XEMACS)\src\gifalloc.c \
|
|
206 $(XEMACS)\src\glyphs.c \
|
|
207 $(XEMACS)\src\gmalloc.c \
|
213
|
208 $(XEMACS)\src\gui.c \
|
183
|
209 $(XEMACS)\src\hash.c \
|
|
210 $(XEMACS)\src\indent.c \
|
|
211 $(XEMACS)\src\inline.c \
|
|
212 $(XEMACS)\src\insdel.c \
|
|
213 $(XEMACS)\src\intl.c \
|
|
214 $(XEMACS)\src\keymap.c \
|
213
|
215 $(XEMACS)\src\line-number.c \
|
183
|
216 $(XEMACS)\src\lread.c \
|
|
217 $(XEMACS)\src\lstream.c \
|
|
218 $(XEMACS)\src\macros.c \
|
213
|
219 $(XEMACS)\src\marker.c
|
|
220 DOC_SRC4=\
|
183
|
221 $(XEMACS)\src\md5.c \
|
|
222 $(XEMACS)\src\minibuf.c \
|
|
223 $(XEMACS)\src\nt.c \
|
|
224 $(XEMACS)\src\ntheap.c \
|
|
225 $(XEMACS)\src\ntproc.c \
|
|
226 $(XEMACS)\src\objects.c \
|
213
|
227 $(XEMACS)\src\opaque.c \
|
183
|
228 $(XEMACS)\src\print.c \
|
|
229 $(XEMACS)\src\process.c \
|
|
230 $(XEMACS)\src\pure.c \
|
|
231 $(XEMACS)\src\rangetab.c \
|
|
232 $(XEMACS)\src\realpath.c \
|
|
233 $(XEMACS)\src\redisplay-output.c \
|
|
234 $(XEMACS)\src\redisplay.c \
|
|
235 $(XEMACS)\src\regex.c \
|
|
236 $(XEMACS)\src\scrollbar.c \
|
|
237 $(XEMACS)\src\search.c \
|
|
238 $(XEMACS)\src\signal.c \
|
213
|
239 $(XEMACS)\src\sound.c
|
|
240 DOC_SRC5=\
|
183
|
241 $(XEMACS)\src\specifier.c \
|
|
242 $(XEMACS)\src\strftime.c \
|
|
243 $(XEMACS)\src\symbols.c \
|
|
244 $(XEMACS)\src\syntax.c \
|
|
245 $(XEMACS)\src\sysdep.c \
|
213
|
246 $(XEMACS)\src\termcap.c \
|
183
|
247 $(XEMACS)\src\tparam.c \
|
|
248 $(XEMACS)\src\undo.c \
|
|
249 $(XEMACS)\src\unexnt.c \
|
|
250 $(XEMACS)\src\vm-limit.c \
|
|
251 $(XEMACS)\src\window.c \
|
213
|
252 $(XEMACS)\src\widget.c
|
|
253
|
|
254 !if $(HAVE_X)
|
|
255 DOC_SRC6=\
|
|
256 $(XEMACS)\src\balloon_help.c \
|
|
257 $(XEMACS)\src\console-x.c \
|
|
258 $(XEMACS)\src\device-x.c \
|
|
259 $(XEMACS)\src\dialog-x.c \
|
|
260 $(XEMACS)\src\EmacsFrame.c \
|
|
261 $(XEMACS)\src\EmacsManager.c \
|
|
262 $(XEMACS)\src\EmacsShell-sub.c\
|
|
263 $(XEMACS)\src\EmacsShell.c \
|
|
264 $(XEMACS)\src\event-Xt.c \
|
|
265 $(XEMACS)\src\frame-x.c \
|
|
266 $(XEMACS)\src\glyphs-x.c \
|
|
267 $(XEMACS)\src\gui-x.c \
|
|
268 $(XEMACS)\src\menubar.c \
|
|
269 $(XEMACS)\src\menubar-x.c \
|
|
270 $(XEMACS)\src\objects-x.c \
|
|
271 $(XEMACS)\src\redisplay-x.c \
|
|
272 $(XEMACS)\src\scrollbar-x.c \
|
|
273 $(XEMACS)\src\balloon-x.c \
|
183
|
274 $(XEMACS)\src\xgccache.c \
|
|
275 $(XEMACS)\src\xmu.c \
|
213
|
276 $(XEMACS)\src\xselect.c
|
|
277 !endif
|
|
278
|
|
279 !if $(HAVE_MSW)
|
219
|
280 DOC_SRC7=\
|
213
|
281 $(XEMACS)\src\console-msw.c \
|
|
282 $(XEMACS)\src\device-msw.c \
|
|
283 $(XEMACS)\src\event-msw.c \
|
|
284 $(XEMACS)\src\frame-msw.c \
|
|
285 $(XEMACS)\src\objects-msw.c \
|
|
286 $(XEMACS)\src\redisplay-msw.c \
|
221
|
287 $(XEMACS)\src\select-msw.c \
|
213
|
288 $(XEMACS)\src\msw-proc.c
|
|
289 !endif
|
|
290
|
|
291 !if $(HAVE_MULE)
|
219
|
292 DOC_SRC8=\
|
183
|
293 $(XEMACS)\src\input-method-xlib.c \
|
|
294 $(XEMACS)\src\mule.c \
|
|
295 $(XEMACS)\src\mule-charset.c \
|
|
296 $(XEMACS)\src\mule-ccl.c \
|
213
|
297 $(XEMACS)\src\mule-coding.c
|
|
298 !endif
|
118
|
299
|
219
|
300 !if $(DEBUG_XEMACS)
|
|
301 DOC_SRC_9=\
|
|
302 $(XEMACS)\src\debug.c
|
|
303 !endif
|
|
304
|
195
|
305 MAKE_DOCFILE=$(LIB_SRC)\make-docfile.exe
|
118
|
306
|
|
307 $(MAKE_DOCFILE): $(OUTDIR)\make-docfile.obj
|
183
|
308 link.exe -out:$@ $(LIB_SRC_LFLAGS) $** $(LIB_SRC_LIBS)
|
118
|
309
|
183
|
310 $(OUTDIR)\make-docfile.obj: $(LIB_SRC)\make-docfile.c
|
195
|
311 $(CC) $(LIB_SRC_FLAGS) -c $** -Fo$@
|
118
|
312
|
183
|
313 RUNEMACS=$(XEMACS)\src\runemacs.exe
|
167
|
314
|
|
315 $(RUNEMACS): $(OUTDIR)\runemacs.obj
|
183
|
316 link.exe -out:$@ -subsystem:windows -entry:WinMainCRTStartup \
|
|
317 -pdb:none -release -incremental:no $** \
|
179
|
318 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \
|
213
|
319 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib
|
167
|
320
|
183
|
321 $(OUTDIR)\runemacs.obj: $(XEMACS)\nt\runemacs.c
|
|
322 $(CC) -nologo -ML -w $(OPT) -c \
|
167
|
323 -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \
|
213
|
324 -D_M_IX86 -D_X86_ -Demacs -DHAVE_CONFIG_H -D_MSC_VER=999 \
|
183
|
325 $** -Fo$@
|
167
|
326
|
|
327 SUPPORT_PROGS=$(MAKE_DOCFILE) $(RUNEMACS)
|
|
328
|
118
|
329 #------------------------------------------------------------------------------
|
|
330
|
|
331 # TEMACS Executable
|
|
332
|
183
|
333 TEMACS_DIR=$(XEMACS)\src
|
|
334 TEMACS=$(TEMACS_DIR)\temacs.exe
|
213
|
335 TEMACS_BROWSE=$(TEMACS_DIR)\temacs.bsc
|
183
|
336 TEMACS_SRC=$(XEMACS)\src
|
213
|
337 TEMACS_LIBS=$(LASTFILE) $(LWLIB) $(X_LIBS) kernel32.lib user32.lib gdi32.lib \
|
118
|
338 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
|
213
|
339 uuid.lib wsock32.lib libc.lib
|
183
|
340 TEMACS_LFLAGS=-nologo $(LIBRARIES) -base:0x1000000\
|
213
|
341 -stack:0x800000 -entry:_start -subsystem:console\
|
|
342 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map -debug:full\
|
219
|
343 -heap:0x00100000 -out:$@
|
|
344 TEMACS_CPP_FLAGS= $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
|
183
|
345 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
|
|
346 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
|
219
|
347 -DEMACS_BETA_VERSION=$(emacs_beta_version) \
|
183
|
348 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
|
219
|
349 -DPATH_PREFIX=\"$(XEMACS)\" \
|
|
350 -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
|
|
351
|
183
|
352 TEMACS_FLAGS=-nologo -ML -w $(OPT) -c $(TEMACS_CPP_FLAGS)
|
118
|
353
|
213
|
354 !if $(HAVE_X)
|
|
355 TEMACS_X_OBJS=\
|
|
356 $(OUTDIR)\balloon-x.obj \
|
|
357 $(OUTDIR)\balloon_help.obj \
|
|
358 $(OUTDIR)\console-x.obj \
|
|
359 $(OUTDIR)\device-x.obj \
|
|
360 $(OUTDIR)\dialog-x.obj \
|
|
361 $(OUTDIR)\EmacsFrame.obj \
|
|
362 $(OUTDIR)\EmacsManager.obj \
|
|
363 $(OUTDIR)\EmacsShell.obj \
|
|
364 $(OUTDIR)\TopLevelEmacsShell.obj\
|
|
365 $(OUTDIR)\TransientEmacsShell.obj\
|
|
366 $(OUTDIR)\event-Xt.obj \
|
|
367 $(OUTDIR)\frame-x.obj \
|
|
368 $(OUTDIR)\glyphs-x.obj \
|
|
369 $(OUTDIR)\gui-x.obj \
|
|
370 $(OUTDIR)\menubar.obj \
|
|
371 $(OUTDIR)\menubar-x.obj \
|
|
372 $(OUTDIR)\objects-x.obj \
|
|
373 $(OUTDIR)\redisplay-x.obj \
|
|
374 $(OUTDIR)\scrollbar.obj \
|
|
375 $(OUTDIR)\scrollbar-x.obj \
|
|
376 $(OUTDIR)\xgccache.obj \
|
|
377 $(OUTDIR)\xmu.obj \
|
|
378 $(OUTDIR)\xselect.obj
|
|
379 !endif
|
|
380
|
|
381 !if $(HAVE_MSW)
|
|
382 TEMACS_MSW_OBJS=\
|
|
383 $(OUTDIR)\console-msw.obj \
|
|
384 $(OUTDIR)\device-msw.obj \
|
|
385 $(OUTDIR)\event-msw.obj \
|
|
386 $(OUTDIR)\frame-msw.obj \
|
|
387 $(OUTDIR)\objects-msw.obj \
|
|
388 $(OUTDIR)\redisplay-msw.obj \
|
221
|
389 $(OUTDIR)\select-msw.obj \
|
213
|
390 $(OUTDIR)\msw-proc.obj
|
|
391 !endif
|
|
392
|
|
393 !if $(HAVE_MULE)
|
|
394 TEMACS_MULE_OBJS=\
|
|
395 $(OUTDIR)\input-method-xlib.obj \
|
|
396 $(OUTDIR)\mule.obj \
|
|
397 $(OUTDIR)\mule-charset.obj \
|
|
398 $(OUTDIR)\mule-ccl.obj \
|
219
|
399 $(OUTDIR)\mule-coding.obj
|
|
400 !endif
|
|
401
|
|
402 !if $(DEBUG_XEMACS)
|
|
403 TEMACS_DEBUG_OBJS=\
|
|
404 $(OUTDIR)\debug.obj
|
213
|
405 !endif
|
|
406
|
118
|
407 TEMACS_OBJS= \
|
213
|
408 $(TEMACS_X_OBJS)\
|
|
409 $(TEMACS_MSW_OBJS)\
|
|
410 $(TEMACS_MULE_OBJS)\
|
219
|
411 $(TEMACS_DEBUG_OBJS)\
|
183
|
412 $(OUTDIR)\abbrev.obj \
|
|
413 $(OUTDIR)\alloc.obj \
|
|
414 $(OUTDIR)\alloca.obj \
|
|
415 $(OUTDIR)\blocktype.obj \
|
|
416 $(OUTDIR)\buffer.obj \
|
|
417 $(OUTDIR)\bytecode.obj \
|
|
418 $(OUTDIR)\callint.obj \
|
|
419 $(OUTDIR)\callproc.obj \
|
|
420 $(OUTDIR)\casefiddle.obj \
|
|
421 $(OUTDIR)\casetab.obj \
|
|
422 $(OUTDIR)\chartab.obj \
|
|
423 $(OUTDIR)\cmdloop.obj \
|
|
424 $(OUTDIR)\cmds.obj \
|
|
425 $(OUTDIR)\console-stream.obj \
|
|
426 $(OUTDIR)\console.obj \
|
|
427 $(OUTDIR)\data.obj \
|
|
428 $(OUTDIR)\device.obj \
|
|
429 $(OUTDIR)\dgif_lib.obj \
|
|
430 $(OUTDIR)\dialog.obj \
|
|
431 $(OUTDIR)\dired.obj \
|
|
432 $(OUTDIR)\doc.obj \
|
|
433 $(OUTDIR)\doprnt.obj \
|
|
434 $(OUTDIR)\dynarr.obj \
|
|
435 $(OUTDIR)\editfns.obj \
|
|
436 $(OUTDIR)\elhash.obj \
|
|
437 $(OUTDIR)\emacs.obj \
|
|
438 $(OUTDIR)\eval.obj \
|
|
439 $(OUTDIR)\event-stream.obj \
|
|
440 $(OUTDIR)\event-unixoid.obj \
|
|
441 $(OUTDIR)\events.obj \
|
|
442 $(OUTDIR)\extents.obj \
|
|
443 $(OUTDIR)\faces.obj \
|
|
444 $(OUTDIR)\fileio.obj \
|
|
445 $(OUTDIR)\filelock.obj \
|
|
446 $(OUTDIR)\filemode.obj \
|
|
447 $(OUTDIR)\floatfns.obj \
|
|
448 $(OUTDIR)\fns.obj \
|
|
449 $(OUTDIR)\font-lock.obj \
|
|
450 $(OUTDIR)\frame.obj \
|
|
451 $(OUTDIR)\free-hook.obj \
|
|
452 $(OUTDIR)\general.obj \
|
|
453 $(OUTDIR)\gif_err.obj \
|
|
454 $(OUTDIR)\gifalloc.obj \
|
|
455 $(OUTDIR)\glyphs.obj \
|
|
456 $(OUTDIR)\gmalloc.obj \
|
|
457 $(OUTDIR)\gui.obj \
|
|
458 $(OUTDIR)\hash.obj \
|
|
459 $(OUTDIR)\indent.obj \
|
|
460 $(OUTDIR)\inline.obj \
|
|
461 $(OUTDIR)\insdel.obj \
|
|
462 $(OUTDIR)\intl.obj \
|
|
463 $(OUTDIR)\keymap.obj \
|
213
|
464 $(OUTDIR)\line-number.obj \
|
183
|
465 $(OUTDIR)\lread.obj \
|
|
466 $(OUTDIR)\lstream.obj \
|
|
467 $(OUTDIR)\macros.obj \
|
|
468 $(OUTDIR)\marker.obj \
|
|
469 $(OUTDIR)\md5.obj \
|
|
470 $(OUTDIR)\minibuf.obj \
|
|
471 $(OUTDIR)\nt.obj \
|
|
472 $(OUTDIR)\ntheap.obj \
|
|
473 $(OUTDIR)\ntproc.obj \
|
|
474 $(OUTDIR)\objects.obj \
|
|
475 $(OUTDIR)\opaque.obj \
|
|
476 $(OUTDIR)\print.obj \
|
|
477 $(OUTDIR)\process.obj \
|
|
478 $(OUTDIR)\pure.obj \
|
|
479 $(OUTDIR)\rangetab.obj \
|
|
480 $(OUTDIR)\realpath.obj \
|
|
481 $(OUTDIR)\redisplay-output.obj \
|
|
482 $(OUTDIR)\redisplay.obj \
|
|
483 $(OUTDIR)\regex.obj \
|
|
484 $(OUTDIR)\search.obj \
|
|
485 $(OUTDIR)\signal.obj \
|
|
486 $(OUTDIR)\sound.obj \
|
|
487 $(OUTDIR)\specifier.obj \
|
|
488 $(OUTDIR)\strftime.obj \
|
|
489 $(OUTDIR)\symbols.obj \
|
|
490 $(OUTDIR)\syntax.obj \
|
|
491 $(OUTDIR)\sysdep.obj \
|
|
492 $(OUTDIR)\tparam.obj \
|
|
493 $(OUTDIR)\undo.obj \
|
|
494 $(OUTDIR)\unexnt.obj \
|
|
495 $(OUTDIR)\vm-limit.obj \
|
197
|
496 $(OUTDIR)\widget.obj \
|
213
|
497 $(OUTDIR)\window.obj
|
155
|
498
|
213
|
499 # Rules
|
118
|
500
|
213
|
501 .SUFFIXES:
|
|
502 .SUFFIXES: .c
|
118
|
503
|
213
|
504 # nmake rule
|
|
505 {$(TEMACS_SRC)}.c{$(OUTDIR)}.obj:
|
|
506 $(CC) $(TEMACS_FLAGS) $< -Fo$@ -Fr$*.sbr
|
118
|
507
|
183
|
508 $(OUTDIR)\TopLevelEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
|
509 $(CC) $(TEMACS_FLAGS) -DDEFINE_TOP_LEVEL_EMACS_SHELL $** -Fo$@
|
118
|
510
|
183
|
511 $(OUTDIR)\TransientEmacsShell.obj: $(TEMACS_SRC)\EmacsShell-sub.c
|
|
512 $(CC) $(TEMACS_FLAGS) -DDEFINE_TRANSIENT_EMACS_SHELL $** -Fo$@
|
118
|
513
|
183
|
514 #$(TEMACS_SRC)\Emacs.ad.h: $(XEMACS)\etc\Emacs.ad
|
|
515 # !"sed -f ad2c.sed < $(XEMACS)\etc\Emacs.ad > $(TEMACS_SRC)\Emacs.ad.h"
|
118
|
516
|
183
|
517 #$(TEMACS_SRC)\paths.h: $(TEMACS_SRC)\paths.h.in
|
|
518 # !"cd $(TEMACS_SRC); cp paths.h.in paths.h"
|
118
|
519
|
213
|
520 $(TEMACS): $(TEMACS_INCLUDES) $(TEMACS_OBJS)
|
|
521 link.exe @<<
|
|
522 $(TEMACS_LFLAGS) $(TEMACS_OBJS) $(TEMACS_LIBS)
|
|
523 <<
|
215
|
524 !$(TEMACS) -batch -l update-elc.el
|
213
|
525
|
|
526 # MSDEV Source Broswer file. "*.sbr" is too inclusive but this is harmless
|
|
527 $(TEMACS_BROWSE): $(TEMACS_OBJS)
|
|
528 dir /b/s $(OUTDIR)\*.sbr > bscmake.tmp
|
|
529 bscmake -o$@ @bscmake.tmp
|
|
530 del bscmake.tmp
|
|
531
|
118
|
532 #------------------------------------------------------------------------------
|
|
533
|
|
534 # LISP bits 'n bobs
|
|
535
|
213
|
536 LOADPATH=$(LISP)
|
|
537
|
217
|
538 $(DOC): $(LIB_SRC)\make-docfile.exe
|
215
|
539 -del $(DOC)
|
195
|
540 !$(TEMACS) -batch -l make-docfile.el -- -o $(DOC) -i $(XEMACS)\site-packages
|
|
541 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC1)
|
|
542 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC2)
|
|
543 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC3)
|
|
544 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
|
|
545 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
|
213
|
546 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
|
|
547 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
|
|
548 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
|
219
|
549 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
|
183
|
550
|
213
|
551 update-elc: $(LOADPATH)\startup.el
|
|
552 !$(TEMACS) -batch -l update-elc.el
|
118
|
553
|
179
|
554 dump-xemacs:
|
213
|
555 cd $(TEMACS_DIR)
|
|
556 !$(TEMACS) -batch -l loadup.el dump
|
118
|
557
|
|
558 #------------------------------------------------------------------------------
|
|
559
|
|
560 # use this rule to build the complete system
|
213
|
561 all: $(LASTFILE) $(LWLIB) $(SUPPORT_PROGS) $(TEMACS) $(TEMACS_BROWSE) $(DOC) dump-xemacs
|
118
|
562
|
|
563 # use this rule to install the system
|
|
564 install:
|
213
|
565
|
|
566 # The last line demands that you have a semi-decent shell
|
|
567 distclean:
|
|
568 -mkdepend -f xemacs.mak
|
|
569 del *.bak
|
|
570 del *.orig
|
|
571 del *.rej
|
|
572 del *.pdb
|
|
573 del *.tmp
|
|
574 del puresize-adjust.h
|
|
575 cd $(OUTDIR)
|
|
576 del *.obj
|
|
577 del *.sbr
|
|
578 del *.lib
|
|
579 cd ..\$(TEMACS_DIR)
|
|
580 del config.h
|
|
581 del paths.h
|
215
|
582 del Emacs.ad.h
|
213
|
583 del *.bak
|
|
584 del *.orig
|
|
585 del *.rej
|
|
586 del *.exe
|
|
587 del *.map
|
|
588 del *.bsc
|
|
589 del *.pdb
|
|
590 cd $(LIB_SRC)
|
|
591 del DOC
|
|
592 del *.bak
|
|
593 del *.orig
|
|
594 del *.rej
|
|
595 del *.exe
|
|
596 cd $(LISP)
|
|
597 -del /s /q *.bak *.elc *.orig *.rej
|
|
598
|
|
599 depend:
|
|
600 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) $(LASTFILE_SRC)\lastfile.c $(LIB_SRC)\make-docfile.c .\runemacs.c
|
|
601
|
|
602 # DO NOT DELETE THIS LINE -- make depend depends on it.
|
219
|
603 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
|