comparison nt/xemacs.mak @ 219:262b8bb4a523 r20-4b8

Import from CVS: tag r20-4b8
author cvs
date Mon, 13 Aug 2007 10:09:35 +0200
parents d44af0c54775
children 6c0ae1f9357f
comparison
equal deleted inserted replaced
218:c9f226976f56 219:262b8bb4a523
1 MSDEV=c:\msdev
2 XEMACS=.. 1 XEMACS=..
3 LISP=$(XEMACS)\lisp 2 LISP=$(XEMACS)\lisp
4 3 PACKAGE_PATH="~/.xemacs;h:/src/xemacs/packages"
5 HAVE_X=0 4 HAVE_X=0
6 HAVE_MSW=1 5 HAVE_MSW=1
7 6
8 HAVE_MULE=0 7 HAVE_MULE=0
9 HAVE_IMAGEMAGICK=0 8 HAVE_IMAGEMAGICK=0
10 9
10 DEBUG_XEMACS=1
11
12 !if $(DEBUG_XEMACS)
11 OPT=-Od -Zi 13 OPT=-Od -Zi
12 #OPT=-O2 -G5 -Zi 14 !else
15 OPT=-O2 -G5 -Zi
16 !endif
13 17
14 #------------------------------------------------------------------------------ 18 #------------------------------------------------------------------------------
15 19
16 !if $(HAVE_X) 20 !if $(HAVE_X)
17 21
33 MSW_DEFINES=-DHAVE_MS_WINDOWS 37 MSW_DEFINES=-DHAVE_MS_WINDOWS
34 !endif 38 !endif
35 39
36 !if $(HAVE_MULE) 40 !if $(HAVE_MULE)
37 MULE_DEFINES=-DMULE 41 MULE_DEFINES=-DMULE
42 !endif
43
44 !if $(DEBUG_XEMACS)
45 DEBUG_DEFINES=-DDEBUG_XEMACS
38 !endif 46 !endif
39 47
40 !include "..\version.sh" 48 !include "..\version.sh"
41 49
42 # Nothing should need to be edited below this point. 50 # Nothing should need to be edited below this point.
63 XEMACS_INCLUDES=\ 71 XEMACS_INCLUDES=\
64 $(XEMACS)\src\config.h \ 72 $(XEMACS)\src\config.h \
65 $(XEMACS)\src\Emacs.ad.h \ 73 $(XEMACS)\src\Emacs.ad.h \
66 $(XEMACS)\src\paths.h 74 $(XEMACS)\src\paths.h
67 75
68 $(XEMACS_INCLUDES): 76 $(XEMACS)\src\config.h: config.h
69 !copy *.h $(XEMACS)\src 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
70 84
71 #------------------------------------------------------------------------------ 85 #------------------------------------------------------------------------------
72 86
73 # LASTFILE Library 87 # LASTFILE Library
74 88
158 $(XEMACS)\src\cmdloop.c \ 172 $(XEMACS)\src\cmdloop.c \
159 $(XEMACS)\src\cmds.c \ 173 $(XEMACS)\src\cmds.c \
160 $(XEMACS)\src\console-stream.c \ 174 $(XEMACS)\src\console-stream.c \
161 $(XEMACS)\src\console.c \ 175 $(XEMACS)\src\console.c \
162 $(XEMACS)\src\data.c \ 176 $(XEMACS)\src\data.c \
163 $(XEMACS)\src\debug.c \
164 $(XEMACS)\src\device.c \ 177 $(XEMACS)\src\device.c \
165 $(XEMACS)\src\dgif_lib.c 178 $(XEMACS)\src\dgif_lib.c
166 DOC_SRC2=\ 179 DOC_SRC2=\
167 $(XEMACS)\src\dialog.c \ 180 $(XEMACS)\src\dialog.c \
168 $(XEMACS)\src\dired.c \ 181 $(XEMACS)\src\dired.c \
262 $(XEMACS)\src\xmu.c \ 275 $(XEMACS)\src\xmu.c \
263 $(XEMACS)\src\xselect.c 276 $(XEMACS)\src\xselect.c
264 !endif 277 !endif
265 278
266 !if $(HAVE_MSW) 279 !if $(HAVE_MSW)
267 DOC_SRCS_7=\ 280 DOC_SRC7=\
268 $(XEMACS)\src\console-msw.c \ 281 $(XEMACS)\src\console-msw.c \
269 $(XEMACS)\src\device-msw.c \ 282 $(XEMACS)\src\device-msw.c \
270 $(XEMACS)\src\event-msw.c \ 283 $(XEMACS)\src\event-msw.c \
271 $(XEMACS)\src\frame-msw.c \ 284 $(XEMACS)\src\frame-msw.c \
272 $(XEMACS)\src\objects-msw.c \ 285 $(XEMACS)\src\objects-msw.c \
273 $(XEMACS)\src\redisplay-msw.c \ 286 $(XEMACS)\src\redisplay-msw.c \
274 $(XEMACS)\src\msw-proc.c 287 $(XEMACS)\src\msw-proc.c
275 !endif 288 !endif
276 289
277 !if $(HAVE_MULE) 290 !if $(HAVE_MULE)
278 DOC_SRCS_8=\ 291 DOC_SRC8=\
279 $(XEMACS)\src\input-method-xlib.c \ 292 $(XEMACS)\src\input-method-xlib.c \
280 $(XEMACS)\src\mule.c \ 293 $(XEMACS)\src\mule.c \
281 $(XEMACS)\src\mule-charset.c \ 294 $(XEMACS)\src\mule-charset.c \
282 $(XEMACS)\src\mule-ccl.c \ 295 $(XEMACS)\src\mule-ccl.c \
283 $(XEMACS)\src\mule-coding.c 296 $(XEMACS)\src\mule-coding.c
297 !endif
298
299 !if $(DEBUG_XEMACS)
300 DOC_SRC_9=\
301 $(XEMACS)\src\debug.c
284 !endif 302 !endif
285 303
286 MAKE_DOCFILE=$(LIB_SRC)\make-docfile.exe 304 MAKE_DOCFILE=$(LIB_SRC)\make-docfile.exe
287 305
288 $(MAKE_DOCFILE): $(OUTDIR)\make-docfile.obj 306 $(MAKE_DOCFILE): $(OUTDIR)\make-docfile.obj
319 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \ 337 winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib \
320 uuid.lib wsock32.lib libc.lib 338 uuid.lib wsock32.lib libc.lib
321 TEMACS_LFLAGS=-nologo $(LIBRARIES) -base:0x1000000\ 339 TEMACS_LFLAGS=-nologo $(LIBRARIES) -base:0x1000000\
322 -stack:0x800000 -entry:_start -subsystem:console\ 340 -stack:0x800000 -entry:_start -subsystem:console\
323 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map -debug:full\ 341 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map -debug:full\
324 -heap:0x00100000 -out:$@\ 342 -heap:0x00100000 -out:$@
325 343 TEMACS_CPP_FLAGS= $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \
326 TEMACS_CPP_FLAGS= $(INCLUDES) $(DEFINES) \
327 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ 344 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \
328 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ 345 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \
346 -DEMACS_BETA_VERSION=$(emacs_beta_version) \
329 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \ 347 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \
330 -DPATH_PREFIX=\"$(XEMACS)\" 348 -DPATH_PREFIX=\"$(XEMACS)\" \
349 -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
350
331 TEMACS_FLAGS=-nologo -ML -w $(OPT) -c $(TEMACS_CPP_FLAGS) 351 TEMACS_FLAGS=-nologo -ML -w $(OPT) -c $(TEMACS_CPP_FLAGS)
332 352
333 !if $(HAVE_X) 353 !if $(HAVE_X)
334 TEMACS_X_OBJS=\ 354 TEMACS_X_OBJS=\
335 $(OUTDIR)\balloon-x.obj \ 355 $(OUTDIR)\balloon-x.obj \
372 TEMACS_MULE_OBJS=\ 392 TEMACS_MULE_OBJS=\
373 $(OUTDIR)\input-method-xlib.obj \ 393 $(OUTDIR)\input-method-xlib.obj \
374 $(OUTDIR)\mule.obj \ 394 $(OUTDIR)\mule.obj \
375 $(OUTDIR)\mule-charset.obj \ 395 $(OUTDIR)\mule-charset.obj \
376 $(OUTDIR)\mule-ccl.obj \ 396 $(OUTDIR)\mule-ccl.obj \
377 $(OUTDIR)\mule-coding.obj \ 397 $(OUTDIR)\mule-coding.obj
398 !endif
399
400 !if $(DEBUG_XEMACS)
401 TEMACS_DEBUG_OBJS=\
402 $(OUTDIR)\debug.obj
378 !endif 403 !endif
379 404
380 TEMACS_OBJS= \ 405 TEMACS_OBJS= \
381 $(TEMACS_X_OBJS)\ 406 $(TEMACS_X_OBJS)\
382 $(TEMACS_MSW_OBJS)\ 407 $(TEMACS_MSW_OBJS)\
383 $(TEMACS_MULE_OBJS)\ 408 $(TEMACS_MULE_OBJS)\
409 $(TEMACS_DEBUG_OBJS)\
384 $(OUTDIR)\abbrev.obj \ 410 $(OUTDIR)\abbrev.obj \
385 $(OUTDIR)\alloc.obj \ 411 $(OUTDIR)\alloc.obj \
386 $(OUTDIR)\alloca.obj \ 412 $(OUTDIR)\alloca.obj \
387 $(OUTDIR)\blocktype.obj \ 413 $(OUTDIR)\blocktype.obj \
388 $(OUTDIR)\buffer.obj \ 414 $(OUTDIR)\buffer.obj \
395 $(OUTDIR)\cmdloop.obj \ 421 $(OUTDIR)\cmdloop.obj \
396 $(OUTDIR)\cmds.obj \ 422 $(OUTDIR)\cmds.obj \
397 $(OUTDIR)\console-stream.obj \ 423 $(OUTDIR)\console-stream.obj \
398 $(OUTDIR)\console.obj \ 424 $(OUTDIR)\console.obj \
399 $(OUTDIR)\data.obj \ 425 $(OUTDIR)\data.obj \
400 $(OUTDIR)\debug.obj \
401 $(OUTDIR)\device.obj \ 426 $(OUTDIR)\device.obj \
402 $(OUTDIR)\dgif_lib.obj \ 427 $(OUTDIR)\dgif_lib.obj \
403 $(OUTDIR)\dialog.obj \ 428 $(OUTDIR)\dialog.obj \
404 $(OUTDIR)\dired.obj \ 429 $(OUTDIR)\dired.obj \
405 $(OUTDIR)\doc.obj \ 430 $(OUTDIR)\doc.obj \
517 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4) 542 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC4)
518 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5) 543 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC5)
519 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6) 544 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC6)
520 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7) 545 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC7)
521 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8) 546 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC8)
547 !$(LIB_SRC)\make-docfile.exe -a $(DOC) -d $(TEMACS_SRC) $(DOC_SRC9)
522 548
523 update-elc: $(LOADPATH)\startup.el 549 update-elc: $(LOADPATH)\startup.el
524 !$(TEMACS) -batch -l update-elc.el 550 !$(TEMACS) -batch -l update-elc.el
525 551
526 dump-xemacs: 552 dump-xemacs:
570 596
571 depend: 597 depend:
572 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 598 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
573 599
574 # DO NOT DELETE THIS LINE -- make depend depends on it. 600 # DO NOT DELETE THIS LINE -- make depend depends on it.
601 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