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