Mercurial > hg > xemacs-beta
comparison src/Makefile.in.in @ 2427:97dd9f867cef
[xemacs-hg @ 2004-12-07 12:52:30 by malcolmp]
Parallel build support without the need for a POSIX-compatible make.
author | malcolmp |
---|---|
date | Tue, 07 Dec 2004 12:52:51 +0000 |
parents | cfff883d4990 |
children | 261c5cd19207 |
comparison
equal
deleted
inserted
replaced
2426:bb3f73fbbda8 | 2427:97dd9f867cef |
---|---|
31 #include "config.h" | 31 #include "config.h" |
32 | 32 |
33 ## Here are the things that we expect ../configure to edit. | 33 ## Here are the things that we expect ../configure to edit. |
34 | 34 |
35 #ifdef USE_GNU_MAKE | 35 #ifdef USE_GNU_MAKE |
36 RECURSIVE_MAKE=$(MAKE) | 36 RECURSIVE_MAKE_ARGS= |
37 #else | 37 #else |
38 @SET_MAKE@ | 38 @SET_MAKE@ |
39 RECURSIVE_MAKE=@RECURSIVE_MAKE@ | 39 RECURSIVE_MAKE_ARGS=@RECURSIVE_MAKE_ARGS@ |
40 #endif | 40 #endif |
41 | 41 |
42 PROGNAME=@PROGNAME@ | 42 PROGNAME=@PROGNAME@ |
43 prefix=@prefix@ | 43 prefix=@prefix@ |
44 SRC=@srcdir@ | 44 SRC=@srcdir@ |
523 ## (1) Compile all dependencies of the XEmacs executable | 523 ## (1) Compile all dependencies of the XEmacs executable |
524 | 524 |
525 #ifdef HAVE_X_WINDOWS | 525 #ifdef HAVE_X_WINDOWS |
526 lwlib_deps = $(lwlib_lib) | 526 lwlib_deps = $(lwlib_lib) |
527 $(lwlib_lib): | 527 $(lwlib_lib): |
528 +cd ../lwlib && $(RECURSIVE_MAKE) | 528 cd ../lwlib && $(MAKE) $(RECURSIVE_MAKE_ARGS) |
529 #endif /* HAVE_X_WINDOWS */ | 529 #endif /* HAVE_X_WINDOWS */ |
530 | 530 |
531 #ifdef DYNODUMP | 531 #ifdef DYNODUMP |
532 dynodump_deps = ../dynodump/dynodump.so | 532 dynodump_deps = ../dynodump/dynodump.so |
533 ../dynodump/dynodump.so: | 533 ../dynodump/dynodump.so: |
534 +cd ../dynodump && $(RECURSIVE_MAKE) | 534 cd ../dynodump && $(MAKE) $(RECURSIVE_MAKE_ARGS) |
535 #endif /* DYNODUMP */ | 535 #endif /* DYNODUMP */ |
536 | 536 |
537 link_deps = $(start_files) $(objs) $(otherobjs) $(lwlib_deps) $(dynodump_deps) | 537 link_deps = $(start_files) $(objs) $(otherobjs) $(lwlib_deps) $(dynodump_deps) |
538 | 538 |
539 $(LIB_SRC)/make-dump-id: | 539 $(LIB_SRC)/make-dump-id: |
540 +cd $(LIB_SRC) && $(RECURSIVE_MAKE) make-dump-id | 540 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-dump-id |
541 | 541 |
542 dump-id.c: $(LIB_SRC)/make-dump-id $(link_deps) | 542 dump-id.c: $(LIB_SRC)/make-dump-id $(link_deps) |
543 $(LIB_SRC)/make-dump-id | 543 $(LIB_SRC)/make-dump-id |
544 | 544 |
545 ## (2) Link the XEmacs executable | 545 ## (2) Link the XEmacs executable |
571 ## (4) Build the DOC file | 571 ## (4) Build the DOC file |
572 | 572 |
573 obj_src = $(objs:.o=.c) | 573 obj_src = $(objs:.o=.c) |
574 | 574 |
575 $(LIB_SRC)/make-docfile: | 575 $(LIB_SRC)/make-docfile: |
576 +cd $(LIB_SRC) && $(RECURSIVE_MAKE) make-docfile | 576 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-docfile |
577 | 577 |
578 $(LIB_SRC)/DOC: $(LIB_SRC)/make-docfile $(BLDSRC)/NEEDTODUMP $(temacs_deps) | 578 $(LIB_SRC)/DOC: $(LIB_SRC)/make-docfile $(BLDSRC)/NEEDTODUMP $(temacs_deps) |
579 #ifdef QUICK_BUILD | 579 #ifdef QUICK_BUILD |
580 if test ! -f $@ ; then \ | 580 if test ! -f $@ ; then \ |
581 #else | 581 #else |
591 $(DUMP_TARGET): $(RAW_EXE) $(BLDSRC)/NEEDTODUMP $(LIB_SRC)/DOC | 591 $(DUMP_TARGET): $(RAW_EXE) $(BLDSRC)/NEEDTODUMP $(LIB_SRC)/DOC |
592 #ifdef HEAP_IN_DATA | 592 #ifdef HEAP_IN_DATA |
593 @$(RM) $@ && touch SATISFIED | 593 @$(RM) $@ && touch SATISFIED |
594 $(dump_temacs) | 594 $(dump_temacs) |
595 @if test -f SATISFIED; then $(RM) SATISFIED; else $(RM) $@; \ | 595 @if test -f SATISFIED; then $(RM) SATISFIED; else $(RM) $@; \ |
596 $(RECURSIVE_MAKE) $@; fi | 596 $(MAKE) $(RECURSIVE_MAKE_ARGS) $@; fi |
597 #else | 597 #else |
598 @$(RM) $@ | 598 @$(RM) $@ |
599 $(dump_temacs) | 599 $(dump_temacs) |
600 #endif | 600 #endif |
601 #if defined(PDUMP) && !defined(WIN32_NATIVE) | 601 #if defined(PDUMP) && !defined(WIN32_NATIVE) |
613 fi ; \ | 613 fi ; \ |
614 fi | 614 fi |
615 if ! test -f dump-size; then \ | 615 if ! test -f dump-size; then \ |
616 $(LIB_SRC)/insert-data-in-exec -s $(DUMP_TARGET).dmp > dump-size ; \ | 616 $(LIB_SRC)/insert-data-in-exec -s $(DUMP_TARGET).dmp > dump-size ; \ |
617 $(RM) dump-data.o $(DUMP_TARGET) $(DUMP_TARGET).dmp $(RAW_EXE);\ | 617 $(RM) dump-data.o $(DUMP_TARGET) $(DUMP_TARGET).dmp $(RAW_EXE);\ |
618 $(RECURSIVE_MAKE) $@; \ | 618 $(MAKE) $(RECURSIVE_MAKE_ARGS) $@; \ |
619 fi | 619 fi |
620 #endif | 620 #endif |
621 | 621 |
622 ## (6) Update the remaining .elc's, post-dumping | 622 ## (6) Update the remaining .elc's, post-dumping |
623 | 623 |
656 -$(dump_temacs) | 656 -$(dump_temacs) |
657 @$(XEMACS_BATCH) -f list-load-path-shadows | 657 @$(XEMACS_BATCH) -f list-load-path-shadows |
658 | 658 |
659 .PHONY: all-elc | 659 .PHONY: all-elc |
660 all-elc: | 660 all-elc: |
661 +cd .. && $(RECURSIVE_MAKE) | 661 cd .. && $(MAKE) $(RECURSIVE_MAKE_ARGS) |
662 | 662 |
663 ######################################################################### | 663 ######################################################################### |
664 ## Subsidiary dependency rules ## | 664 ## Subsidiary dependency rules ## |
665 ######################################################################### | 665 ######################################################################### |
666 | 666 |
684 | 684 |
685 $(LIB_SRC)/emacs.mo: $(LIB_SRC)/emacs.po | 685 $(LIB_SRC)/emacs.mo: $(LIB_SRC)/emacs.po |
686 cd $(LIB_SRC)/ && $(msgfmt) -o emacs.mo emacs.po | 686 cd $(LIB_SRC)/ && $(msgfmt) -o emacs.mo emacs.po |
687 | 687 |
688 $(LIB_SRC)/make-msgfile: | 688 $(LIB_SRC)/make-msgfile: |
689 +cd $(LIB_SRC) && $(RECURSIVE_MAKE) make-msgfile | 689 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-msgfile |
690 | 690 |
691 $(LIB_SRC)/make-po: | 691 $(LIB_SRC)/make-po: |
692 +cd $(LIB_SRC) && $(RECURSIVE_MAKE) make-po | 692 cd $(LIB_SRC) && $(MAKE) $(RECURSIVE_MAKE_ARGS) make-po |
693 | 693 |
694 #endif /* I18N3 */ | 694 #endif /* I18N3 */ |
695 | 695 |
696 TopLevelEmacsShell.o : $(SRC)/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h | 696 TopLevelEmacsShell.o : $(SRC)/EmacsShell-sub.c config.h xintrinsicp.h EmacsShellP.h |
697 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL $(SRC)/EmacsShell-sub.c | 697 $(CC) -c $(cflags) -DDEFINE_TOP_LEVEL_EMACS_SHELL $(SRC)/EmacsShell-sub.c |
943 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx | 943 ## RTC is Sun WorkShop's Run Time Checking, integrated with dbx |
944 rtc_patch.o: | 944 rtc_patch.o: |
945 rtc_patch_area -o $@ | 945 rtc_patch_area -o $@ |
946 | 946 |
947 rtcmacs: $(temacs_deps) rtc_patch.o | 947 rtcmacs: $(temacs_deps) rtc_patch.o |
948 $(RM) $(RAW_EXE); $(RECURSIVE_MAKE) $(RAW_EXE) RTC_patch_objs=rtc_patch.o | 948 $(RM) $(RAW_EXE); $(MAKE) $(RECURSIVE_MAKE_ARGS) $(RAW_EXE) RTC_patch_objs=rtc_patch.o |
949 mv $(RAW_EXE) rtcmacs | 949 mv $(RAW_EXE) rtcmacs |
950 | 950 |
951 .PHONY: run-rtcmacs | 951 .PHONY: run-rtcmacs |
952 run-rtcmacs: rtcmacs | 952 run-rtcmacs: rtcmacs |
953 dbx -q -C -c \ | 953 dbx -q -C -c \ |