Mercurial > hg > xemacs-beta
comparison src/Makefile.in.in @ 193:f53b5ca2e663 r20-3b23
Import from CVS: tag r20-3b23
author | cvs |
---|---|
date | Mon, 13 Aug 2007 09:58:30 +0200 |
parents | 3d6bfa290dbd |
children | a2f645c6b9f8 |
comparison
equal
deleted
inserted
replaced
192:9d35321dd38c | 193:f53b5ca2e663 |
---|---|
25 all: xemacs | 25 all: xemacs |
26 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint | 26 .PHONY : all release dump-elc dump-elcs all-elc all-elcs lint |
27 | 27 |
28 ## For performance and consistency, no built-in rules. | 28 ## For performance and consistency, no built-in rules. |
29 .SUFFIXES: | 29 .SUFFIXES: |
30 .SUFFIXES: .c .o .i .h | 30 .SUFFIXES: .c .o .i .h .dep |
31 | 31 |
32 @SET_MAKE@ | 32 @SET_MAKE@ |
33 SHELL=/bin/sh | 33 SHELL=/bin/sh |
34 RM = rm -f | 34 RM = rm -f |
35 | 35 |
123 | 123 |
124 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all) | 124 cppflags = $(CPPFLAGS) -Demacs -I. $(c_switch_all) |
125 cflags = $(CFLAGS) $(cppflags) | 125 cflags = $(CFLAGS) $(cppflags) |
126 ldflags = $(ld_switch_all) | 126 ldflags = $(ld_switch_all) |
127 | 127 |
128 #ifdef SOLARIS2 | |
129 %.o : %.c | |
130 #else | |
128 .c.o: | 131 .c.o: |
132 #endif | |
129 $(CC) -c $(cflags) $< | 133 $(CC) -c $(cflags) $< |
130 | 134 |
131 ## Create preprocessor output (debugging purposes only) | 135 ## Create preprocessor output (debugging purposes only) |
132 .c.i: | 136 .c.i: |
133 $(CC) -P $(cppflags) $< | 137 $(CC) -P $(cppflags) $< |
286 #endif /* ! defined (CANNOT_DUMP) */ | 290 #endif /* ! defined (CANNOT_DUMP) */ |
287 | 291 |
288 xemacs: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp | 292 xemacs: temacs ${libsrc}DOC $(mo_file) ${other_files} update-elc.stamp |
289 @$(RM) $@ && touch SATISFIED | 293 @$(RM) $@ && touch SATISFIED |
290 -$(DUMPENV) ./temacs -batch -l loadup.el dump | 294 -$(DUMPENV) ./temacs -batch -l loadup.el dump |
291 @if test -f $@; then $(RM) SATISFIED; exit 0; fi; \ | 295 @if test -f $@; then if test -f SATISFIED; then \ |
296 ./xemacs -q -batch -f list-load-path-shadows; fi; \ | |
297 $(RM) SATISFIED; exit 0; fi; \ | |
292 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ | 298 if test -f SATISFIED; then $(RM) SATISFIED; exit 1; fi; \ |
293 $(RECURSIVE_MAKE) $@; | 299 $(RECURSIVE_MAKE) $@; |
294 | 300 |
295 FRC.update-elc.stamp : | 301 FRC.update-elc.stamp : |
296 | 302 |
557 ## We could put something in alloca.c to #define free and malloc | 563 ## We could put something in alloca.c to #define free and malloc |
558 ## whenever emacs was #defined, but that's not appropriate for all | 564 ## whenever emacs was #defined, but that's not appropriate for all |
559 ## users of alloca in Emacs. Check out ../lib-src/getopt.c. */ | 565 ## users of alloca in Emacs. Check out ../lib-src/getopt.c. */ |
560 | 566 |
561 alloca.o : ${srcdir}/alloca.c | 567 alloca.o : ${srcdir}/alloca.c |
562 $(CC) -c -Dfree=xfree -Dmalloc=xmalloc $(cflags) $< | 568 $(CC) -c -Dfree=xfree -Dmalloc=xmalloc $(cflags) ${srcdir}/alloca.c |
563 #else | 569 #else |
564 #ifndef HAVE_ALLOCA | 570 #ifndef HAVE_ALLOCA |
565 alloca.o : ${srcdir}/alloca.s config.h | 571 alloca.o : ${srcdir}/alloca.s config.h |
566 ## $(CPP) is cc -E, which may get confused by filenames | 572 ## $(CPP) is cc -E, which may get confused by filenames |
567 ## that do not end in .c. So copy file to a safe name. */ | 573 ## that do not end in .c. So copy file to a safe name. */ |
591 $(CC) $(CFLAGS) -c $(BTL_compile) | 597 $(CC) $(CFLAGS) -c $(BTL_compile) |
592 #endif /* EMACS_BTL */ | 598 #endif /* EMACS_BTL */ |
593 | 599 |
594 #ifdef ENERGIZE | 600 #ifdef ENERGIZE |
595 energize.o: ${srcdir}/energize.c | 601 energize.o: ${srcdir}/energize.c |
596 $(CC) -c $(cppflags) $(cflags) $(BTL_includes) $< | 602 $(CC) -c $(cppflags) $(cflags) $(BTL_includes) ${srcdir}/energize.c |
597 #endif /* ENERGIZE */ | 603 #endif /* ENERGIZE */ |
598 | 604 |
599 #ifdef HAVE_NATIVE_SOUND | 605 #ifdef HAVE_NATIVE_SOUND |
600 sunplay.o: ${srcdir}/sunplay.c | 606 sunplay.o: ${srcdir}/sunplay.c |
601 $(CC) -c $(sound_cflags) $(cflags) $< | 607 $(CC) -c $(sound_cflags) $(cflags) ${srcdir}/sunplay.c |
602 hpplay.o: ${srcdir}/hpplay.c | 608 hpplay.o: ${srcdir}/hpplay.c |
603 $(CC) -c -Demacs $(sound_cflags) $(cflags) $< | 609 $(CC) -c -Demacs $(sound_cflags) $(cflags) ${srcdir}/hpplay.c |
604 #endif /* HAVE_NATIVE_SOUND */ | 610 #endif /* HAVE_NATIVE_SOUND */ |
605 | 611 |
606 ## System-specific programs to be made. | 612 ## System-specific programs to be made. |
607 ## ${other_files}, $(objects_system) and $(objects_machine) | 613 ## ${other_files}, $(objects_system) and $(objects_machine) |
608 ## select which of these should be compiled. */ | 614 ## select which of these should be compiled. */ |
636 | 642 |
637 ## Dependency processing using GCC | 643 ## Dependency processing using GCC |
638 | 644 |
639 .c.dep: | 645 .c.dep: |
640 $(CC) -MM $(cflags) $< > $*.dep | 646 $(CC) -MM $(cflags) $< > $*.dep |
641 | |
642 .SUFFIXES: .dep | |
643 | 647 |
644 obj_dep = $(objs:.o=.dep) | 648 obj_dep = $(objs:.o=.dep) |
645 | 649 |
646 .PHONY : depend gnu-depend | 650 .PHONY : depend gnu-depend |
647 ## #### Needs a bit of work: it doesn't see the object files that | 651 ## #### Needs a bit of work: it doesn't see the object files that |