Mercurial > hg > xemacs-beta
comparison src/Makefile.in.in @ 442:abe6d1db359e r21-2-36
Import from CVS: tag r21-2-36
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:35:02 +0200 |
parents | 8de8e3f6228a |
children | 3078fd1074e8 |
comparison
equal
deleted
inserted
replaced
441:72a7cfa4a488 | 442:abe6d1db359e |
---|---|
23 | 23 |
24 ## Synched up with: Not synched with FSF. | 24 ## Synched up with: Not synched with FSF. |
25 | 25 |
26 PROGNAME=@PROGNAME@ | 26 PROGNAME=@PROGNAME@ |
27 | 27 |
28 all: ${PROGNAME} | 28 #define NOT_C_CODE |
29 #include "config.h" | |
30 | |
31 #ifdef PDUMP | |
32 DUMP_TARGET = ${PROGNAME}.dmp | |
33 EXE_TARGET = ${PROGNAME} | |
34 ID_FILE = dump-id.c | |
35 #else | |
36 DUMP_TARGET = ${PROGNAME} | |
37 EXE_TARGET = temacs | |
38 ID_FILE = | |
39 #endif | |
40 | |
41 all: ${DUMP_TARGET} | |
29 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint | 42 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint |
30 | 43 |
31 ## For performance and consistency, no built-in rules. | 44 ## For performance and consistency, no built-in rules. |
32 .SUFFIXES: | 45 .SUFFIXES: |
33 .SUFFIXES: .c .h .o .i .s .dep | 46 .SUFFIXES: .c .h .o .i .s .dep |
71 start_flags=@start_flags@ | 84 start_flags=@start_flags@ |
72 LD=@ld@ | 85 LD=@ld@ |
73 lib_gcc=@lib_gcc@ | 86 lib_gcc=@lib_gcc@ |
74 ##libmcheck=@libmcheck@ | 87 ##libmcheck=@libmcheck@ |
75 | 88 |
76 #define NOT_C_CODE | |
77 #include "config.h" | |
78 | 89 |
79 ## With the traditional VPATH setting, it is not possible to | 90 ## With the traditional VPATH setting, it is not possible to |
80 ## simultaneously compile in-place and in another directory. The | 91 ## simultaneously compile in-place and in another directory. The |
81 ## mistaken definition is that *all* dependencies are searched for in | 92 ## mistaken definition is that *all* dependencies are searched for in |
82 ## the VPATH directory, rather than just the dependencies that are not | 93 ## the VPATH directory, rather than just the dependencies that are not |
96 ## (e.g. a .in file). | 107 ## (e.g. a .in file). |
97 vpath config.h | 108 vpath config.h |
98 vpath paths.h | 109 vpath paths.h |
99 vpath Emacs.ad.h | 110 vpath Emacs.ad.h |
100 vpath sheap-adjust.h | 111 vpath sheap-adjust.h |
112 vpath dump-id.c | |
101 #else | 113 #else |
102 VPATH=@srcdir@ | 114 VPATH=@srcdir@ |
103 #endif | 115 #endif |
104 | 116 |
105 RM = rm -f | 117 RM = rm -f |
106 | |
107 #ifdef HAVE_NATIVE_SOUND | |
108 sound_cflags=@sound_cflags@ | |
109 #endif | |
110 | 118 |
111 LWLIB_SRCDIR = ${srcdir}/../lwlib | 119 LWLIB_SRCDIR = ${srcdir}/../lwlib |
112 | 120 |
113 #ifdef HAVE_X_WINDOWS | 121 #ifdef HAVE_X_WINDOWS |
114 lwlib_libs = ../lwlib/liblw.a | 122 lwlib_libs = ../lwlib/liblw.a |
115 lwlib_deps = $(lwlib_libs) | 123 lwlib_deps = $(lwlib_libs) |
116 $(lwlib_libs) : | 124 $(lwlib_libs) : |
117 cd ../lwlib && $(RECURSIVE_MAKE) | 125 cd ../lwlib && $(RECURSIVE_MAKE) |
118 | 126 |
119 x_objs=balloon_help.o balloon-x.o console-x.o device-x.o event-Xt.o frame-x.o\ | 127 x_objs=console-x.o device-x.o event-Xt.o frame-x.o\ |
120 glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o | 128 glyphs-x.o objects-x.o redisplay-x.o select-x.o xgccache.o |
121 | 129 |
122 #ifdef AIX4 | 130 #ifdef AIX4 |
123 LIBI18N = -li18n | 131 LIBI18N = -li18n |
124 #endif /* AIX4 */ | 132 #endif /* AIX4 */ |
125 | 133 |
126 X11_libs = $(LIBI18N) | 134 X11_libs = $(LIBI18N) |
127 #endif /* HAVE_X_WINDOWS */ | 135 #endif /* HAVE_X_WINDOWS */ |
128 | 136 |
129 #ifdef HEAP_IN_DATA | 137 #if defined (HEAP_IN_DATA) && !defined (PDUMP) |
130 sheap_obj=sheap.o | 138 sheap_objs=sheap.o |
139 #endif | |
140 | |
141 #if defined (WIN32_NATIVE) || defined (CYGWIN) | |
142 win32_objs=win32.o xemacs_res.o | |
131 #endif | 143 #endif |
132 | 144 |
133 ## -Demacs is needed to make some files produce the correct version | 145 ## -Demacs is needed to make some files produce the correct version |
134 ## for use in Emacs. | 146 ## for use in Emacs. |
135 | 147 |
179 gui.o gutter.o $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\ | 191 gui.o gutter.o $(gui_objs) hash.o imgproc.o indent.o insdel.o intl.o\ |
180 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\ | 192 keymap.o $(RTC_patch_objs) line-number.o lread.o lstream.o\ |
181 macros.o marker.o md5.o minibuf.o objects.o opaque.o\ | 193 macros.o marker.o md5.o minibuf.o objects.o opaque.o\ |
182 print.o process.o profile.o\ | 194 print.o process.o profile.o\ |
183 rangetab.o redisplay.o redisplay-output.o regex.o\ | 195 rangetab.o redisplay.o redisplay-output.o regex.o\ |
184 search.o select.o $(sheap_obj) signal.o sound.o\ | 196 search.o select.o $(sheap_objs) signal.o sound.o\ |
185 specifier.o strftime.o symbols.o syntax.o sysdep.o\ | 197 specifier.o strftime.o symbols.o syntax.o sysdep.o\ |
186 undo.o $(x_objs) widget.o window.o | 198 undo.o $(x_objs) widget.o window.o $(win32_objs) |
187 | 199 |
188 obj_rtl = $(objs:.o=.c.rtl) | 200 obj_rtl = $(objs:.o=.c.rtl) |
189 | 201 |
190 #ifdef REL_ALLOC | 202 #ifdef REL_ALLOC |
191 rallocdocsrc = ralloc.c | 203 rallocdocsrc = ralloc.c |
307 #ifdef I18N3 | 319 #ifdef I18N3 |
308 mo_dir = ${etcdir} | 320 mo_dir = ${etcdir} |
309 mo_file = ${mo_dir}emacs.mo | 321 mo_file = ${mo_dir}emacs.mo |
310 #endif | 322 #endif |
311 | 323 |
312 #ifdef WINDOWSNT | 324 temacs_loadup = ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/loadup.el |
313 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir};${blddir}" | |
314 MODULEPATH = EMACSBOOTSTRAPMODULEPATH="${moduledir};${blddir}" | |
315 #else | |
316 LOADPATH = EMACSBOOTSTRAPLOADPATH="${lispdir}:${blddir}" | |
317 MODULEPATH = EMACSBOOTSTRAPMODULEPATH="${moduledir}:${blddir}" | |
318 #endif | |
319 DUMPENV = $(LOADPATH) $(MODULEPATH) | |
320 temacs_loadup = $(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el | |
321 dump_temacs = ${temacs_loadup} dump | 325 dump_temacs = ${temacs_loadup} dump |
322 run_temacs = ${temacs_loadup} run-temacs | 326 run_temacs = ${temacs_loadup} run-temacs |
323 debug_temacs = $(DUMPENV) gdb temacs | 327 debug_temacs = gdb ${EXE_TARGET} |
324 | 328 |
325 release: temacs ${libsrc}DOC $(mo_file) ${other_files} | 329 release: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files} |
326 #ifdef CANNOT_DUMP | 330 #ifdef CANNOT_DUMP |
327 ln temacs ${PROGNAME} | 331 ln ${EXE_TARGET} ${PROGNAME} |
328 #else | 332 #else |
329 #ifdef HAVE_SHM | |
330 -if [ -w ${srcdir}/../lisp ]; then \ | 333 -if [ -w ${srcdir}/../lisp ]; then \ |
331 w=`pwd`; cd ${srcdir} && $${w}/temacs -nl -batch -l ${srcdir}/../lisp/inc-vers; \ | 334 w=`pwd`; cd ${srcdir} && $${w}/${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/inc-vers; \ |
332 else true; fi | 335 else true; fi |
333 -$(DUMPENV) ./temacs -nl -batch -l ${srcdir}/../lisp/loadup.el dump | 336 -./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/loadup.el dump |
334 #else /* ! defined (HAVE_SHM) */ | |
335 -if [ -w ${srcdir}/../lisp ]; then \ | |
336 w=`pwd`; cd ${srcdir} && $${w}/temacs -batch -l ${srcdir}/../lisp/inc-vers; \ | |
337 else true; fi | |
338 -$(DUMPENV) ./temacs -batch -l ${srcdir}/../lisp/loadup.el dump | |
339 #endif /* ! defined (HAVE_SHM) */ | |
340 touch release | 337 touch release |
341 #endif /* ! defined (CANNOT_DUMP) */ | 338 #endif /* ! defined (CANNOT_DUMP) */ |
342 | 339 |
343 ${PROGNAME}: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp | 340 ${DUMP_TARGET}: ${EXE_TARGET} ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp |
344 #ifdef HEAP_IN_DATA | 341 #ifdef HEAP_IN_DATA |
345 @$(RM) $@ $@.exe && touch SATISFIED | 342 @$(RM) $@ && touch SATISFIED |
346 -${dump_temacs} | 343 -${dump_temacs} |
347 @if test -f $@; then if test -f SATISFIED; then \ | 344 @if test -f $@; then if test -f SATISFIED; then \ |
348 echo "Testing for Lisp shadows ..."; \ | 345 echo "Testing for Lisp shadows ..."; \ |
349 ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \ | 346 ./${PROGNAME} -batch -vanilla -f list-load-path-shadows; fi; \ |
350 $(RM) SATISFIED; exit 0; fi; \ | 347 $(RM) SATISFIED; exit 0; fi; \ |
351 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ | 348 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ |
349 $(RM) $@; \ | |
352 $(RECURSIVE_MAKE) $@; | 350 $(RECURSIVE_MAKE) $@; |
353 #else | 351 #else |
354 @$(RM) $@ xemacs.dmp | 352 @$(RM) $@ |
355 ${dump_temacs} | 353 ${dump_temacs} |
356 #ifdef PDUMP | |
357 @mv temacs $@ | |
358 #endif | |
359 @echo "Testing for Lisp shadows ..." | 354 @echo "Testing for Lisp shadows ..." |
360 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows | 355 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows |
361 #endif | 356 #endif |
362 | 357 |
363 fastdump: temacs | 358 fastdump: ${EXE_TARGET} |
364 @$(RM) ${PROGNAME} && touch SATISFIED | 359 @$(RM) ${DUMP_TARGET} && touch SATISFIED |
365 -${dump_temacs} | 360 -${dump_temacs} |
366 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows | 361 @./${PROGNAME} -batch -vanilla -f list-load-path-shadows |
367 | 362 |
368 FRC.update-elc.stamp : | 363 FRC.update-elc.stamp : |
369 | 364 |
370 update-elc.stamp : temacs FRC.update-elc.stamp | 365 update-elc.stamp : ${EXE_TARGET} FRC.update-elc.stamp |
371 @touch NOBYTECOMPILE | 366 @touch NOBYTECOMPILE |
372 ${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/update-elc.el | 367 ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/update-elc.el |
373 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ | 368 @if test ! -f $@ -o -f NOBYTECOMPILE; then touch $@; fi; \ |
374 $(RM) NOBYTECOMPILE | 369 $(RM) NOBYTECOMPILE |
375 | 370 |
376 obj_src = $(objs:.o=.c) | 371 obj_src = $(objs:.o=.c) |
377 | 372 |
386 dynodump_deps = ../dynodump/dynodump.so | 381 dynodump_deps = ../dynodump/dynodump.so |
387 ../dynodump/dynodump.so: | 382 ../dynodump/dynodump.so: |
388 cd ../dynodump && $(RECURSIVE_MAKE) | 383 cd ../dynodump && $(RECURSIVE_MAKE) |
389 #endif /* DYNODUMP */ | 384 #endif /* DYNODUMP */ |
390 | 385 |
391 ${libsrc}DOC: temacs update-elc.stamp | 386 ${libsrc}DOC: ${EXE_TARGET} update-elc.stamp |
392 $(RM) ${libsrc}DOC; \ | 387 $(RM) ${libsrc}DOC; \ |
393 ${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/make-docfile.el -- \ | 388 ${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/make-docfile.el -- \ |
394 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \ | 389 -o ${libsrc}DOC -d ${srcdir} -i ${libsrc}../site-packages \ |
395 ${obj_src} ${mallocdocsrc} ${rallocdocsrc} | 390 ${obj_src} ${mallocdocsrc} ${rallocdocsrc} |
396 | 391 |
397 dump_elcs: dump-elcs | 392 dump_elcs: dump-elcs |
398 | 393 |
399 dump-elcs: temacs | 394 dump-elcs: ${EXE_TARGET} |
400 -${DUMPENV} ./temacs -batch -l ${srcdir}/../lisp/update-elc.el | 395 -${DUMPENV} ./${EXE_TARGET} -nd -batch -l ${srcdir}/../lisp/update-elc.el |
401 | 396 |
402 all-elc all-elcs: | 397 all-elc all-elcs: |
403 cd .. && $(RECURSIVE_MAKE) all-elc | 398 cd .. && $(RECURSIVE_MAKE) all-elc |
404 | 399 |
405 #ifdef I18N3 | 400 #ifdef I18N3 |
428 | 423 |
429 ${libsrc}make-po: | 424 ${libsrc}make-po: |
430 cd ${libsrc} && $(RECURSIVE_MAKE) make-po | 425 cd ${libsrc} && $(RECURSIVE_MAKE) make-po |
431 | 426 |
432 #endif /* I18N3 */ | 427 #endif /* I18N3 */ |
428 | |
429 ${libsrc}make-dump-id: | |
430 cd ${libsrc} && $(RECURSIVE_MAKE) make-dump-id | |
433 | 431 |
434 ${libsrc}make-docfile: | 432 ${libsrc}make-docfile: |
435 cd ${libsrc} && $(RECURSIVE_MAKE) make-docfile | 433 cd ${libsrc} && $(RECURSIVE_MAKE) make-docfile |
436 | 434 |
437 ## Lint Section | 435 ## Lint Section |
442 LINTFLAGS= -fd -m -s -u -v -x | 440 LINTFLAGS= -fd -m -s -u -v -x |
443 lint: $(LINTFILES) | 441 lint: $(LINTFILES) |
444 $(LINT.c) $(LINTFILES) | 442 $(LINT.c) $(LINTFILES) |
445 ## end of Lint Section | 443 ## end of Lint Section |
446 | 444 |
447 temacs_deps=\ | 445 link_deps=\ |
448 $(start_files) ${objs} ${otherobjs}\ | 446 $(start_files) ${objs} ${otherobjs}\ |
449 $(lwlib_deps) $(dynodump_deps) | 447 $(lwlib_deps) $(dynodump_deps) |
450 | 448 |
449 temacs_deps=\ | |
450 $(link_deps) $(ID_FILE) | |
451 | |
451 temacs_link_args=\ | 452 temacs_link_args=\ |
452 ${start_flags} ${ldflags}\ | 453 ${start_flags} ${ldflags} -I${srcdir} \ |
453 -o $@ ${start_files} ${objs} ${otherobjs} ${LIBES} | 454 -o $@ ${start_files} ${objs} ${otherobjs} ${ID_FILE} ${LIBES} |
454 | 455 |
455 temacs: $(temacs_deps) | 456 ${EXE_TARGET}: $(temacs_deps) |
456 $(LD) $(temacs_link_args) | 457 $(LD) $(temacs_link_args) |
457 #ifdef PDUMP | 458 |
458 @$(RM) xemacs.dmp | 459 dump-id.c: ${libsrc}make-dump-id ${link_deps} |
459 #endif | 460 ${libsrc}make-dump-id |
460 | 461 |
461 .PHONY : run-temacs | 462 .PHONY : run-temacs |
462 | 463 |
463 run-temacs: temacs | 464 run-temacs: ${EXE_TARGET} |
464 -${run_temacs} | 465 -${run_temacs} |
465 | 466 |
466 ## We have automated tests!! | 467 ## We have automated tests!! |
467 testdir = ${srcdir}/../tests/automated | 468 testdir = ${srcdir}/../tests/automated |
468 batch_test_emacs = -batch -l ${testdir}/test-harness.el -f batch-test-emacs ${testdir} | 469 batch_test_emacs = -batch -l ${testdir}/test-harness.el -f batch-test-emacs ${testdir} |
483 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx | 484 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx |
484 rtc_patch.o: | 485 rtc_patch.o: |
485 rtc_patch_area -o $@ | 486 rtc_patch_area -o $@ |
486 | 487 |
487 rtcmacs: $(temacs_deps) rtc_patch.o | 488 rtcmacs: $(temacs_deps) rtc_patch.o |
488 $(RM) temacs; $(RECURSIVE_MAKE) temacs RTC_patch_objs=rtc_patch.o | 489 $(RM) ${EXE_TARGET}; $(RECURSIVE_MAKE) ${EXE_TARGET} RTC_patch_objs=rtc_patch.o |
489 mv temacs rtcmacs | 490 mv ${EXE_TARGET} rtcmacs |
490 | 491 |
491 .PHONY: run-rtcmacs | 492 .PHONY: run-rtcmacs |
492 run-rtcmacs: rtcmacs | 493 run-rtcmacs: rtcmacs |
493 dbx -q -C -c \ | 494 dbx -q -C -c \ |
494 'dbxenv rtc_error_log_file_name /dev/fd/1; \ | 495 'dbxenv rtc_error_log_file_name /dev/fd/1; \ |
497 check -access; \ | 498 check -access; \ |
498 suppress rui; \ | 499 suppress rui; \ |
499 runargs -batch -l ${srcdir}/../lisp/loadup.el run-temacs -q; \ | 500 runargs -batch -l ${srcdir}/../lisp/loadup.el run-temacs -q; \ |
500 run' rtcmacs | 501 run' rtcmacs |
501 | 502 |
502 debug-temacs: temacs | 503 debug-temacs: ${EXE_TARGET} |
503 -${debug_temacs} | 504 -${debug_temacs} |
504 | 505 |
505 ## Purify, Quantify, PureCoverage are software quality products from | 506 ## Purify, Quantify, PureCoverage are software quality products from |
506 ## Rational, formerly Pure Atria, formerly Pure Software. | 507 ## Rational, formerly Pure Atria, formerly Pure Software. |
507 ## | 508 ## |
510 PURIFY_FLAGS =\ | 511 PURIFY_FLAGS =\ |
511 #ifdef PDUMP | 512 #ifdef PDUMP |
512 -search-mmaps=yes\ | 513 -search-mmaps=yes\ |
513 #endif | 514 #endif |
514 -chain-length=32 -ignore-signals=SIGPOLL -threads=yes\ | 515 -chain-length=32 -ignore-signals=SIGPOLL -threads=yes\ |
515 -cache-dir=./purecache -always-use-cache-dir=yes | 516 -cache-dir=${srcdir}/purecache -always-use-cache-dir=yes |
516 | 517 |
517 PURIFY_LIBS = -lpthread | 518 PURIFY_LIBS = -lpthread |
518 puremacs: $(temacs_deps) | 519 puremacs: $(temacs_deps) |
519 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS) | 520 $(PURIFY_PROG) $(PURIFY_FLAGS) $(LD) $(temacs_link_args) $(PURIFY_LIBS) |
520 cp $@ temacs | 521 cp $@ ${EXE_TARGET} |
521 | 522 |
522 ## Quantify | 523 ## Quantify |
523 #ifdef QUANTIFY | 524 #ifdef QUANTIFY |
524 QUANTIFY_PROG = quantify | 525 QUANTIFY_PROG = quantify |
525 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir` | 526 QUANTIFY_HOME = `$(QUANTIFY_PROG) -print-home-dir` |
527 cppflags += -I$(QUANTIFY_HOME) | 528 cppflags += -I$(QUANTIFY_HOME) |
528 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a | 529 temacs_link_args += $(QUANTIFY_HOME)/quantify_stubs.a |
529 | 530 |
530 quantmacs: $(temacs_deps) | 531 quantmacs: $(temacs_deps) |
531 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args) | 532 $(QUANTIFY_PROG) $(QUANTIFY_FLAGS) $(LD) $(temacs_link_args) |
532 cp $@ temacs | 533 cp $@ ${EXE_TARGET} |
533 #endif /* QUANTIFY */ | 534 #endif /* QUANTIFY */ |
534 | 535 |
535 | 536 |
536 PURECOV_PROG=purecov | 537 PURECOV_PROG=purecov |
537 covmacs: $(temacs_deps) | 538 covmacs: $(temacs_deps) |
551 mv EmacsShell-sub.o TransientEmacsShell.o | 552 mv EmacsShell-sub.o TransientEmacsShell.o |
552 | 553 |
553 TransientEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h | 554 TransientEmacsShell.c.rtl : ${srcdir}/EmacsShell-sub.c TopLevelEmacsShell.o config.h xintrinsicp.h EmacsShellP.h |
554 $(CC) -dr -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c | 555 $(CC) -dr -c $(cflags) -DDEFINE_TRANSIENT_EMACS_SHELL ${srcdir}/EmacsShell-sub.c |
555 mv EmacsShell-sub.c.rtl TransientEmacsShell.c.rtl | 556 mv EmacsShell-sub.c.rtl TransientEmacsShell.c.rtl |
557 | |
558 ## The above rules are subject to a race condition if using a parallel make. | |
559 TransientEmacsShell.o : TopLevelEmacsShell.o | |
560 TransientEmacsShell.c.rtl : TopLevelEmacsShell.c.rtl | |
556 | 561 |
557 ## Position-independent code for shared library creation | 562 ## Position-independent code for shared library creation |
558 #if USE_GCC | 563 #if USE_GCC |
559 pic_arg = -fpic | 564 pic_arg = -fpic |
560 #elif defined (IRIX) | 565 #elif defined (IRIX) |
684 $(RM) allocax.s allocatem.c | 689 $(RM) allocax.s allocatem.c |
685 #endif /* HAVE_ALLOCA */ | 690 #endif /* HAVE_ALLOCA */ |
686 #endif /* ! defined (C_ALLOCA) */ | 691 #endif /* ! defined (C_ALLOCA) */ |
687 | 692 |
688 #ifdef HAVE_NATIVE_SOUND | 693 #ifdef HAVE_NATIVE_SOUND |
694 sound_cflags=@sound_cflags@ | |
689 sunplay.o: ${srcdir}/sunplay.c | 695 sunplay.o: ${srcdir}/sunplay.c |
690 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c | 696 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c |
691 hpplay.o: ${srcdir}/hpplay.c | 697 hpplay.o: ${srcdir}/hpplay.c |
692 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c | 698 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c |
693 #endif /* HAVE_NATIVE_SOUND */ | 699 #endif /* HAVE_NATIVE_SOUND */ |
694 | 700 |
701 xemacs_res.o: ${srcdir}/../nt/xemacs.rc | |
702 windres --include-dir ${srcdir}/../nt -i ${srcdir}/../nt/xemacs.rc -o $@ | |
703 | |
695 ## System-specific programs to be made. | 704 ## System-specific programs to be made. |
696 ## ${other_files}, $(objects_system) and $(objects_machine) | 705 ## ${other_files}, $(objects_system) and $(objects_machine) |
697 ## select which of these should be compiled. */ | 706 ## select which of these should be compiled. */ |
698 | 707 |
699 .PHONY: mostlyclean clean distclean realclean versionclean extraclean | 708 .PHONY: mostlyclean clean distclean realclean versionclean extraclean |
700 mostlyclean: | 709 mostlyclean: |
701 $(RM) temacs puremacs quantmacs prefix-args *.o *.i \ | 710 $(RM) temacs puremacs quantmacs *.o *.i \ |
702 core temacs.exe sheap-adjust.h | 711 core temacs.exe sheap-adjust.h |
703 clean: mostlyclean versionclean | 712 clean: mostlyclean versionclean |
704 $(RM) libextcli* update-elc.stamp | 713 $(RM) libextcli* update-elc.stamp |
705 ## This is used in making a distribution. | 714 ## This is used in making a distribution. |
706 ## Do not use it on development directories! | 715 ## Do not use it on development directories! |
707 distclean: clean | 716 distclean: clean |
708 $(RM) config.h paths.h Emacs.ad.h \ | 717 $(RM) config.h paths.h Emacs.ad.h \ |
709 GNUmakefile Makefile Makefile.in TAGS ${PROGNAME}.* | 718 GNUmakefile Makefile Makefile.in TAGS ${PROGNAME}.* |
710 realclean: distclean | 719 realclean: distclean |
711 versionclean: | 720 versionclean: |
712 $(RM) ${PROGNAME} ${PROGNAME}.exe ${libsrc}DOC | 721 $(RM) ${EXE_TARGET} ${DUMP_TARGET} ${libsrc}DOC |
713 extraclean: realclean | 722 extraclean: realclean |
714 $(RM) *~ \#* m/*~ m/\#* s/*~ s/\#* | 723 $(RM) *~ \#* m/*~ m/\#* s/*~ s/\#* |
715 | 724 |
716 .PHONY : lock unlock | 725 .PHONY : lock unlock |
717 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \ | 726 SOURCES = *.[chm] *.pswm [sm]/* COPYING paths.h.in Makefile.in.in \ |