Mercurial > hg > xemacs-beta
comparison nt/xemacs.mak @ 231:557eaa0339bf r20-5b14
Import from CVS: tag r20-5b14
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:13:48 +0200 |
parents | 0e522484dd2a |
children | e70b3a057e12 |
comparison
equal
deleted
inserted
replaced
230:39ed1d2bdd9d | 231:557eaa0339bf |
---|---|
13 OPT=-Od -Zi | 13 OPT=-Od -Zi |
14 !else | 14 !else |
15 OPT=-O2 -G5 -Zi | 15 OPT=-O2 -G5 -Zi |
16 !endif | 16 !endif |
17 | 17 |
18 WARN_CPP_FLAGS = -W3 | |
19 | |
18 #------------------------------------------------------------------------------ | 20 #------------------------------------------------------------------------------ |
19 | 21 |
20 !if $(HAVE_X) | 22 !if $(HAVE_X) |
21 | 23 |
22 X11R6=h:\utils\X11R6 | 24 X11R6=h:\utils\X11R6 |
32 X_INCLUDES=-I$(X11R6)\include $(MAGICK_INCLUDES) | 34 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 | 35 X_LIBS=$(MAGICK_LIBS) Xaw.lib Xmu.lib Xt.lib SM.lib ICE.lib Xext.lib X11.lib |
34 !endif | 36 !endif |
35 | 37 |
36 !if $(HAVE_MSW) | 38 !if $(HAVE_MSW) |
37 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS | 39 MSW_DEFINES=-DHAVE_MS_WINDOWS -DHAVE_SCROLLBARS -DHAVE_MENUBARS |
38 !endif | 40 !endif |
39 | 41 |
40 !if $(HAVE_MULE) | 42 !if $(HAVE_MULE) |
41 MULE_DEFINES=-DMULE | 43 MULE_DEFINES=-DMULE |
42 !endif | 44 !endif |
90 | 92 |
91 # LASTFILE Library | 93 # LASTFILE Library |
92 | 94 |
93 LASTFILE=$(OUTDIR)\lastfile.lib | 95 LASTFILE=$(OUTDIR)\lastfile.lib |
94 LASTFILE_SRC=$(XEMACS)\src | 96 LASTFILE_SRC=$(XEMACS)\src |
95 LASTFILE_FLAGS=-nologo -w $(OPT) $(INCLUDES) -Fo$@ -c | 97 LASTFILE_FLAGS=-nologo $(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) -Fo$@ -c |
96 LASTFILE_OBJS= \ | 98 LASTFILE_OBJS= \ |
97 $(OUTDIR)\lastfile.obj | 99 $(OUTDIR)\lastfile.obj |
98 | 100 |
99 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS) | 101 $(LASTFILE): $(XEMACS_INCLUDES) $(LASTFILE_OBJS) |
100 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS) | 102 link.exe -lib -nologo -out:$@ $(LASTFILE_OBJS) |
108 | 110 |
109 # LWLIB Library | 111 # LWLIB Library |
110 | 112 |
111 LWLIB=$(OUTDIR)\lwlib.lib | 113 LWLIB=$(OUTDIR)\lwlib.lib |
112 LWLIB_SRC=$(XEMACS)\lwlib | 114 LWLIB_SRC=$(XEMACS)\lwlib |
113 LWLIB_FLAGS=-nologo -w $(OPT) $(INCLUDES) $(DEFINES) \ | 115 LWLIB_FLAGS=-nologo $(WARN_CPP_FLAGS) $(OPT) $(INCLUDES) $(DEFINES) \ |
114 -DNEED_ATHENA -DNEED_LUCID \ | 116 -DNEED_ATHENA -DNEED_LUCID \ |
115 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \ | 117 -D_WINDOWS -DMENUBARS_LUCID -DSCROLLBARS_LUCID -DDIALOGS_ATHENA \ |
116 -Fo$@ -c | 118 -Fo$@ -c |
117 LWLIB_OBJS= \ | 119 LWLIB_OBJS= \ |
118 $(OUTDIR)\lwlib-config.obj \ | 120 $(OUTDIR)\lwlib-config.obj \ |
220 $(XEMACS)\src\lstream.c \ | 222 $(XEMACS)\src\lstream.c \ |
221 $(XEMACS)\src\macros.c \ | 223 $(XEMACS)\src\macros.c \ |
222 $(XEMACS)\src\marker.c | 224 $(XEMACS)\src\marker.c |
223 DOC_SRC4=\ | 225 DOC_SRC4=\ |
224 $(XEMACS)\src\md5.c \ | 226 $(XEMACS)\src\md5.c \ |
227 $(XEMACS)\src\menubar.c \ | |
225 $(XEMACS)\src\minibuf.c \ | 228 $(XEMACS)\src\minibuf.c \ |
226 $(XEMACS)\src\nt.c \ | 229 $(XEMACS)\src\nt.c \ |
227 $(XEMACS)\src\ntheap.c \ | 230 $(XEMACS)\src\ntheap.c \ |
228 $(XEMACS)\src\ntproc.c \ | 231 $(XEMACS)\src\ntproc.c \ |
229 $(XEMACS)\src\objects.c \ | 232 $(XEMACS)\src\objects.c \ |
285 DOC_SRC7=\ | 288 DOC_SRC7=\ |
286 $(XEMACS)\src\console-msw.c \ | 289 $(XEMACS)\src\console-msw.c \ |
287 $(XEMACS)\src\device-msw.c \ | 290 $(XEMACS)\src\device-msw.c \ |
288 $(XEMACS)\src\event-msw.c \ | 291 $(XEMACS)\src\event-msw.c \ |
289 $(XEMACS)\src\frame-msw.c \ | 292 $(XEMACS)\src\frame-msw.c \ |
293 $(XEMACS)\src\menubar-msw.c \ | |
290 $(XEMACS)\src\objects-msw.c \ | 294 $(XEMACS)\src\objects-msw.c \ |
291 $(XEMACS)\src\redisplay-msw.c \ | 295 $(XEMACS)\src\redisplay-msw.c \ |
296 $(XEMACS)\src\scrollbar-msw.c \ | |
292 $(XEMACS)\src\select-msw.c \ | 297 $(XEMACS)\src\select-msw.c \ |
293 $(XEMACS)\src\msw-proc.c | 298 $(XEMACS)\src\msw-proc.c |
294 !endif | 299 !endif |
295 | 300 |
296 !if $(HAVE_MULE) | 301 !if $(HAVE_MULE) |
322 -pdb:none -release -incremental:no $** \ | 327 -pdb:none -release -incremental:no $** \ |
323 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \ | 328 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib \ |
324 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib | 329 advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib libc.lib |
325 | 330 |
326 $(OUTDIR)\runemacs.obj: $(XEMACS)\nt\runemacs.c | 331 $(OUTDIR)\runemacs.obj: $(XEMACS)\nt\runemacs.c |
327 $(CC) -nologo -ML -w $(OPT) -c \ | 332 $(CC) -nologo -ML $(WARN_CPP_FLAGS) $(OPT) -c \ |
328 -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \ | 333 -D_DEBUG -DWIN32 -D_WIN32 -DWIN32_LEAN_AND_MEAN \ |
329 -D_X86_ -Demacs -DHAVE_CONFIG_H \ | 334 -D_X86_ -Demacs -DHAVE_CONFIG_H \ |
330 $** -Fo$@ | 335 $** -Fo$@ |
331 | 336 |
332 SUPPORT_PROGS=$(MAKE_DOCFILE) $(RUNEMACS) | 337 SUPPORT_PROGS=$(MAKE_DOCFILE) $(RUNEMACS) |
344 uuid.lib wsock32.lib winmm.lib libc.lib | 349 uuid.lib wsock32.lib winmm.lib libc.lib |
345 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\ | 350 TEMACS_LFLAGS=-nologo $(LIBRARIES) $(DEBUG_FLAGS) -base:0x1000000\ |
346 -stack:0x800000 -entry:_start -subsystem:console\ | 351 -stack:0x800000 -entry:_start -subsystem:console\ |
347 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \ | 352 -pdb:$(TEMACS_DIR)\temacs.pdb -map:$(TEMACS_DIR)\temacs.map \ |
348 -heap:0x00100000 -out:$@ | 353 -heap:0x00100000 -out:$@ |
349 TEMACS_CPP_FLAGS= $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \ | 354 TEMACS_CPP_FLAGS= $(WARN_CPP_FLAGS) $(INCLUDES) $(DEFINES) $(DEBUG_DEFINES) \ |
350 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ | 355 -DEMACS_MAJOR_VERSION=$(emacs_major_version) \ |
351 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ | 356 -DEMACS_MINOR_VERSION=$(emacs_minor_version) \ |
352 -DEMACS_BETA_VERSION=$(emacs_beta_version) \ | 357 -DEMACS_BETA_VERSION=$(emacs_beta_version) \ |
353 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \ | 358 -DXEMACS_CODENAME=\"$(xemacs_codename)\" \ |
354 -DPATH_PREFIX=\"$(XEMACS)\" \ | 359 -DPATH_PREFIX=\"$(XEMACS)\" \ |
355 -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" | 360 -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" |
356 | 361 |
357 TEMACS_FLAGS=-nologo -ML -w $(OPT) -c $(TEMACS_CPP_FLAGS) | 362 TEMACS_FLAGS=-nologo -ML $(WARN_CPP_FALGS) $(OPT) -c $(TEMACS_CPP_FLAGS) |
358 | 363 |
359 !if $(HAVE_X) | 364 !if $(HAVE_X) |
360 TEMACS_X_OBJS=\ | 365 TEMACS_X_OBJS=\ |
361 $(OUTDIR)\balloon-x.obj \ | 366 $(OUTDIR)\balloon-x.obj \ |
362 $(OUTDIR)\balloon_help.obj \ | 367 $(OUTDIR)\balloon_help.obj \ |
370 $(OUTDIR)\TransientEmacsShell.obj\ | 375 $(OUTDIR)\TransientEmacsShell.obj\ |
371 $(OUTDIR)\event-Xt.obj \ | 376 $(OUTDIR)\event-Xt.obj \ |
372 $(OUTDIR)\frame-x.obj \ | 377 $(OUTDIR)\frame-x.obj \ |
373 $(OUTDIR)\glyphs-x.obj \ | 378 $(OUTDIR)\glyphs-x.obj \ |
374 $(OUTDIR)\gui-x.obj \ | 379 $(OUTDIR)\gui-x.obj \ |
375 $(OUTDIR)\menubar.obj \ | |
376 $(OUTDIR)\menubar-x.obj \ | 380 $(OUTDIR)\menubar-x.obj \ |
377 $(OUTDIR)\objects-x.obj \ | 381 $(OUTDIR)\objects-x.obj \ |
378 $(OUTDIR)\redisplay-x.obj \ | 382 $(OUTDIR)\redisplay-x.obj \ |
379 $(OUTDIR)\scrollbar.obj \ | 383 $(OUTDIR)\scrollbar.obj \ |
380 $(OUTDIR)\scrollbar-x.obj \ | 384 $(OUTDIR)\scrollbar-x.obj \ |
387 TEMACS_MSW_OBJS=\ | 391 TEMACS_MSW_OBJS=\ |
388 $(OUTDIR)\console-msw.obj \ | 392 $(OUTDIR)\console-msw.obj \ |
389 $(OUTDIR)\device-msw.obj \ | 393 $(OUTDIR)\device-msw.obj \ |
390 $(OUTDIR)\event-msw.obj \ | 394 $(OUTDIR)\event-msw.obj \ |
391 $(OUTDIR)\frame-msw.obj \ | 395 $(OUTDIR)\frame-msw.obj \ |
396 $(OUTDIR)\menubar-msw.obj \ | |
392 $(OUTDIR)\objects-msw.obj \ | 397 $(OUTDIR)\objects-msw.obj \ |
393 $(OUTDIR)\redisplay-msw.obj \ | 398 $(OUTDIR)\redisplay-msw.obj \ |
399 $(OUTDIR)\scrollbar-msw.obj \ | |
394 $(OUTDIR)\select-msw.obj \ | 400 $(OUTDIR)\select-msw.obj \ |
395 $(OUTDIR)\msw-proc.obj | 401 $(OUTDIR)\msw-proc.obj |
396 !endif | 402 !endif |
397 | 403 |
398 !if $(HAVE_MULE) | 404 !if $(HAVE_MULE) |
467 $(OUTDIR)\keymap.obj \ | 473 $(OUTDIR)\keymap.obj \ |
468 $(OUTDIR)\line-number.obj \ | 474 $(OUTDIR)\line-number.obj \ |
469 $(OUTDIR)\lread.obj \ | 475 $(OUTDIR)\lread.obj \ |
470 $(OUTDIR)\lstream.obj \ | 476 $(OUTDIR)\lstream.obj \ |
471 $(OUTDIR)\macros.obj \ | 477 $(OUTDIR)\macros.obj \ |
478 $(OUTDIR)\menubar.obj \ | |
472 $(OUTDIR)\marker.obj \ | 479 $(OUTDIR)\marker.obj \ |
473 $(OUTDIR)\md5.obj \ | 480 $(OUTDIR)\md5.obj \ |
474 $(OUTDIR)\minibuf.obj \ | 481 $(OUTDIR)\minibuf.obj \ |
475 $(OUTDIR)\nt.obj \ | 482 $(OUTDIR)\nt.obj \ |
476 $(OUTDIR)\ntheap.obj \ | 483 $(OUTDIR)\ntheap.obj \ |
485 $(OUTDIR)\realpath.obj \ | 492 $(OUTDIR)\realpath.obj \ |
486 $(OUTDIR)\redisplay-output.obj \ | 493 $(OUTDIR)\redisplay-output.obj \ |
487 $(OUTDIR)\redisplay.obj \ | 494 $(OUTDIR)\redisplay.obj \ |
488 $(OUTDIR)\regex.obj \ | 495 $(OUTDIR)\regex.obj \ |
489 $(OUTDIR)\scrollbar.obj \ | 496 $(OUTDIR)\scrollbar.obj \ |
490 $(OUTDIR)\scrollbar-msw.obj \ | |
491 $(OUTDIR)\search.obj \ | 497 $(OUTDIR)\search.obj \ |
492 $(OUTDIR)\signal.obj \ | 498 $(OUTDIR)\signal.obj \ |
493 $(OUTDIR)\sound.obj \ | 499 $(OUTDIR)\sound.obj \ |
494 $(OUTDIR)\specifier.obj \ | 500 $(OUTDIR)\specifier.obj \ |
495 $(OUTDIR)\strftime.obj \ | 501 $(OUTDIR)\strftime.obj \ |
579 #------------------------------------------------------------------------------ | 585 #------------------------------------------------------------------------------ |
580 | 586 |
581 # use this rule to build the complete system | 587 # use this rule to build the complete system |
582 all: $(LASTFILE) $(LWLIB) $(SUPPORT_PROGS) $(TEMACS) $(TEMACS_BROWSE) $(DOC) dump-xemacs | 588 all: $(LASTFILE) $(LWLIB) $(SUPPORT_PROGS) $(TEMACS) $(TEMACS_BROWSE) $(DOC) dump-xemacs |
583 -del rebuild | 589 -del rebuild |
590 | |
591 temacs: $(TEMACS) | |
584 | 592 |
585 # use this rule to install the system | 593 # use this rule to install the system |
586 install: | 594 install: |
587 | 595 |
588 # The last line demands that you have a semi-decent shell | 596 # The last line demands that you have a semi-decent shell |