aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Schwab2003-02-08 17:27:58 +0000
committerAndreas Schwab2003-02-08 17:27:58 +0000
commit108c7c97c1ad0da9bc240fa656826b3fe0276e19 (patch)
tree2b6501add6943c1aa02d76806f9903c50b08b34e
parent7b76ca1c43fcaa58bf2c7c3503c8f33399eab8eb (diff)
downloademacs-108c7c97c1ad0da9bc240fa656826b3fe0276e19.tar.gz
emacs-108c7c97c1ad0da9bc240fa656826b3fe0276e19.zip
(EXEEXT): Define to @EXEEXT@ and use this variable
instead of the substitution.
-rw-r--r--Makefile.in11
-rw-r--r--lib-src/Makefile.in60
-rw-r--r--src/Makefile.in45
3 files changed, 60 insertions, 56 deletions
diff --git a/Makefile.in b/Makefile.in
index 4ad187a8487..f9ad2d6fdbd 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -3,7 +3,7 @@
3# DIST: that first. 3# DIST: that first.
4 4
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
6# 2000, 2001, 2002 Free Software Foundation, Inc. 6# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
7 7
8# This file is part of GNU Emacs. 8# This file is part of GNU Emacs.
9 9
@@ -69,6 +69,7 @@ CPPFLAGS=@CPPFLAGS@
69C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ 69C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
70LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@ 70LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
71YACC=@YACC@ 71YACC=@YACC@
72EXEEXT=@EXEEXT@
72 73
73### These help us choose version- and architecture-specific directories 74### These help us choose version- and architecture-specific directories
74### to install files in. 75### to install files in.
@@ -215,8 +216,8 @@ INSTALL_STRIP =
215TRANSFORM = @program_transform_name@ 216TRANSFORM = @program_transform_name@
216 217
217# What emacs should be called when installed. 218# What emacs should be called when installed.
218EMACS = `echo emacs@EXEEXT@ | sed '$(TRANSFORM)'` 219EMACS = `echo emacs${EXEEXT} | sed '$(TRANSFORM)'`
219EMACSFULL = `echo emacs-${version}@EXEEXT@ | sed '$(TRANSFORM)'` 220EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'`
220 221
221# Subdirectories to make recursively. `lisp' is not included 222# Subdirectories to make recursively. `lisp' is not included
222# because the compiled lisp files are part of the distribution. 223# because the compiled lisp files are part of the distribution.
@@ -358,7 +359,7 @@ install-arch-dep: mkdir
358 exec_prefix=${exec_prefix} bindir=${bindir} \ 359 exec_prefix=${exec_prefix} bindir=${bindir} \
359 libexecdir=${libexecdir} archlibdir=${archlibdir} \ 360 libexecdir=${libexecdir} archlibdir=${archlibdir} \
360 INSTALL_STRIP=${INSTALL_STRIP}) 361 INSTALL_STRIP=${INSTALL_STRIP})
361 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs@EXEEXT@ ${bindir}/$(EMACSFULL) 362 ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} ${bindir}/$(EMACSFULL)
362 -chmod 1755 ${bindir}/$(EMACSFULL) 363 -chmod 1755 ${bindir}/$(EMACSFULL)
363 rm -f ${bindir}/$(EMACS) 364 rm -f ${bindir}/$(EMACS)
364 -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS) 365 -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS)
@@ -735,7 +736,7 @@ maybe_bootstrap:
735bootstrap: bootstrap-clean-before info FRC 736bootstrap: bootstrap-clean-before info FRC
736 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) 737 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean)
737 (cd src; $(MAKE) $(MFLAGS) bootstrap) 738 (cd src; $(MAKE) $(MFLAGS) bootstrap)
738 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs@EXEEXT@) 739 (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT})
739 (cd src; $(MAKE) $(MFLAGS) mostlyclean) 740 (cd src; $(MAKE) $(MFLAGS) mostlyclean)
740 $(MAKE) $(MFLAGS) all 741 $(MAKE) $(MFLAGS) all
741 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) 742 (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after)
diff --git a/lib-src/Makefile.in b/lib-src/Makefile.in
index b8d853f8eac..c88d868e374 100644
--- a/lib-src/Makefile.in
+++ b/lib-src/Makefile.in
@@ -1,5 +1,6 @@
1# Makefile for lib-src subdirectory in GNU Emacs. 1# Makefile for lib-src subdirectory in GNU Emacs.
2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002 Free Software Foundation, Inc. 2# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002, 2003
3# Free Software Foundation, Inc.
3 4
4# This file is part of GNU Emacs. 5# This file is part of GNU Emacs.
5 6
@@ -29,6 +30,7 @@ CFLAGS=@CFLAGS@
29ALLOCA=@ALLOCA@ 30ALLOCA=@ALLOCA@
30version=@version@ 31version=@version@
31configuration=@configuration@ 32configuration=@configuration@
33EXEEXT=@EXEEXT@
32 34
33# Program name transformation. 35# Program name transformation.
34TRANSFORM = @program_transform_name@ 36TRANSFORM = @program_transform_name@
@@ -100,15 +102,15 @@ INSTALL_STRIP =
100 102
101# Things that a user might actually run, 103# Things that a user might actually run,
102# which should be installed in bindir. 104# which should be installed in bindir.
103INSTALLABLES = etags@EXEEXT@ ctags@EXEEXT@ emacsclient@EXEEXT@ b2m@EXEEXT@ ebrowse@EXEEXT@ 105INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT}
104INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog 106INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog
105 107
106# Things that Emacs runs internally, or during the build process, 108# Things that Emacs runs internally, or during the build process,
107# which should not be installed in bindir. 109# which should not be installed in bindir.
108UTILITIES= profile@EXEEXT@ digest-doc@EXEEXT@ sorted-doc@EXEEXT@ movemail@EXEEXT@ cvtmail@EXEEXT@ fakemail@EXEEXT@ \ 110UTILITIES= profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} movemail${EXEEXT} cvtmail${EXEEXT} fakemail${EXEEXT} \
109 yow@EXEEXT@ hexl@EXEEXT@ update-game-score@EXEEXT@ 111 yow${EXEEXT} hexl${EXEEXT} update-game-score${EXEEXT}
110 112
111DONT_INSTALL= test-distrib@EXEEXT@ make-docfile@EXEEXT@ 113DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT}
112 114
113# Like UTILITIES, but they're not system-dependent, and should not be 115# Like UTILITIES, but they're not system-dependent, and should not be
114# deleted by the distclean target. 116# deleted by the distclean target.
@@ -286,12 +288,12 @@ blessmail:
286maybe-blessmail: BLESSMAIL 288maybe-blessmail: BLESSMAIL
287#ifdef MOVEMAIL_NEEDS_BLESSING 289#ifdef MOVEMAIL_NEEDS_BLESSING
288/* Don\'t charge ahead and do it! Let the installer decide. 290/* Don\'t charge ahead and do it! Let the installer decide.
289 ./blessmail ${archlibdir}/movemail@EXEEXT@ */ 291 ./blessmail ${archlibdir}/movemail${EXEEXT} */
290 @if [ `wc -l <blessmail` != 2 ] ; then \ 292 @if [ `wc -l <blessmail` != 2 ] ; then \
291 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ 293 dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
292 echo Assuming $$dir is really the mail spool directory, you should; \ 294 echo Assuming $$dir is really the mail spool directory, you should; \
293 echo run lib-src/blessmail ${archlibdir}/movemail@EXEEXT@; \ 295 echo run lib-src/blessmail ${archlibdir}/movemail${EXEEXT}; \
294 echo as root, to give movemail@EXEEXT@ appropriate permissions.; \ 296 echo as root, to give movemail${EXEEXT} appropriate permissions.; \
295 echo Do that after running make install.; \ 297 echo Do that after running make install.; \
296 fi 298 fi
297#endif 299#endif
@@ -372,14 +374,14 @@ check:
372 @echo "We don't have any tests for GNU Emacs yet." 374 @echo "We don't have any tests for GNU Emacs yet."
373 375
374tags: TAGS 376tags: TAGS
375TAGS: etags@EXEEXT@ 377TAGS: etags${EXEEXT}
376 etags *.[ch] 378 etags *.[ch]
377 379
378/* This verifies that the non-ASCII characters in the file \`testfile\' 380/* This verifies that the non-ASCII characters in the file \`testfile\'
379 have not been clobbered by whatever means were used to copy and 381 have not been clobbered by whatever means were used to copy and
380 distribute Emacs. If they were clobbered, all the .elc files were 382 distribute Emacs. If they were clobbered, all the .elc files were
381 clobbered too. */ 383 clobbered too. */
382test-distrib@EXEEXT@: ${srcdir}/test-distrib.c 384test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
383 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c 385 $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
384 ./test-distrib ${srcdir}/testfile 386 ./test-distrib ${srcdir}/testfile
385 387
@@ -403,34 +405,34 @@ REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
403regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h 405regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
404 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c 406 ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
405 407
406etags@EXEEXT@: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h 408etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
407 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags 409 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
408 410
409ebrowse@EXEEXT@: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h 411ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h
410 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse 412 $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse
411 413
412/* We depend on etags to assure that parallel makes don\'t write two 414/* We depend on etags to assure that parallel makes don\'t write two
413 etags.o files on top of each other. */ 415 etags.o files on top of each other. */
414ctags@EXEEXT@: etags@EXEEXT@ 416ctags${EXEEXT}: etags${EXEEXT}
415 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags 417 $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags
416 418
417profile@EXEEXT@: ${srcdir}/profile.c ../src/config.h 419profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h
418 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile 420 $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
419 421
420make-docfile@EXEEXT@: ${srcdir}/make-docfile.c ../src/config.h 422make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h
421 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile 423 $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
422 424
423digest-doc@EXEEXT@: ${srcdir}/digest-doc.c 425digest-doc${EXEEXT}: ${srcdir}/digest-doc.c
424 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc 426 $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
425 427
426sorted-doc@EXEEXT@: ${srcdir}/sorted-doc.c ${ALLOCA} 428sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c ${ALLOCA}
427 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc 429 $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
428 430
429b2m@EXEEXT@: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) 431b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
430 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \ 432 $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
431 $(GETOPTOBJS) $(LOADLIBES) -o b2m 433 $(GETOPTOBJS) $(LOADLIBES) -o b2m
432 434
433movemail@EXEEXT@: movemail.o pop.o $(GETOPTDEPS) 435movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS)
434 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail 436 $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail
435 437
436movemail.o: ${srcdir}/movemail.c ../src/config.h 438movemail.o: ${srcdir}/movemail.c ../src/config.h
@@ -439,45 +441,45 @@ movemail.o: ${srcdir}/movemail.c ../src/config.h
439pop.o: ${srcdir}/pop.c ../src/config.h 441pop.o: ${srcdir}/pop.c ../src/config.h
440 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c 442 $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
441 443
442cvtmail@EXEEXT@: ${srcdir}/cvtmail.c 444cvtmail${EXEEXT}: ${srcdir}/cvtmail.c
443 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail 445 $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
444 446
445fakemail@EXEEXT@: ${srcdir}/fakemail.c ../src/config.h 447fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h
446 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail 448 $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
447 449
448yow@EXEEXT@: ${srcdir}/yow.c ../src/epaths.h 450yow${EXEEXT}: ${srcdir}/yow.c ../src/epaths.h
449 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow 451 $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
450 452
451emacsclient@EXEEXT@: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS) 453emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
452 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \ 454 $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \
453 -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \ 455 -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \
454 $(LOADLIBES) -o emacsclient 456 $(LOADLIBES) -o emacsclient
455 457
456hexl@EXEEXT@: ${srcdir}/hexl.c ../src/config.h 458hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h
457 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl 459 $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
458 460
459update-game-score@EXEEXT@: ${srcdir}/update-game-score.c ../src/config.h 461update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h
460 $(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \ 462 $(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \
461 -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ 463 -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
462 $(LOADLIBES) -o update-game-score 464 $(LOADLIBES) -o update-game-score
463 465
464/* These are NOT included in INSTALLABLES or UTILITIES. 466/* These are NOT included in INSTALLABLES or UTILITIES.
465 See ../src/Makefile.in. */ 467 See ../src/Makefile.in. */
466emacstool@EXEEXT@: ${srcdir}/emacstool.c 468emacstool${EXEEXT}: ${srcdir}/emacstool.c
467 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ 469 $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
468 -lsuntool -lsunwindow -lpixrect $(LOADLIBES) 470 -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
469 471
470/* For SUN Japanese Language Environment. */ 472/* For SUN Japanese Language Environment. */
471nemacstool@EXEEXT@: ${srcdir}/emacstool.c 473nemacstool${EXEEXT}: ${srcdir}/emacstool.c
472 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 474 $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
473 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) 475 -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
474 476
475xvetool@EXEEXT@: ${srcdir}/emacstool.c 477xvetool${EXEEXT}: ${srcdir}/emacstool.c
476 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 478 $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
477 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 479 -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
478 $(LOADLIBES) 480 $(LOADLIBES)
479 481
480xveterm@EXEEXT@: ${srcdir}/emacstool.c 482xveterm${EXEEXT}: ${srcdir}/emacstool.c
481 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \ 483 $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
482 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ 484 -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
483 $(LOADLIBES) 485 $(LOADLIBES)
diff --git a/src/Makefile.in b/src/Makefile.in
index 9f8e13c5a0f..2546c46a170 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -1,5 +1,5 @@
1# Makefile for GNU Emacs. 1# Makefile for GNU Emacs.
2# Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001 2# Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001, 2003
3# Free Software Foundation, Inc. 3# Free Software Foundation, Inc.
4 4
5# This file is part of GNU Emacs. 5# This file is part of GNU Emacs.
@@ -37,6 +37,7 @@ CFLAGS=@CFLAGS@
37CPPFLAGS=@CPPFLAGS@ 37CPPFLAGS=@CPPFLAGS@
38LDFLAGS=@LDFLAGS@ 38LDFLAGS=@LDFLAGS@
39LN_S=@LN_S@ 39LN_S=@LN_S@
40EXEEXT=@EXEEXT@
40# Substitute an assignment for the MAKE variable, because 41# Substitute an assignment for the MAKE variable, because
41# BSD doesn't have it as a default. 42# BSD doesn't have it as a default.
42@SET_MAKE@ 43@SET_MAKE@
@@ -887,12 +888,12 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) \
887#define OBJECTS_MACHINE 888#define OBJECTS_MACHINE
888#endif 889#endif
889 890
890all: emacs@EXEEXT@ OTHER_FILES 891all: emacs${EXEEXT} OTHER_FILES
891 892
892emacs@EXEEXT@: temacs@EXEEXT@ ${etc}DOC ${lisp} 893emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
893#ifdef CANNOT_DUMP 894#ifdef CANNOT_DUMP
894 rm -f emacs@EXEEXT@ 895 rm -f emacs${EXEEXT}
895 ln temacs@EXEEXT@ emacs@EXEEXT@ 896 ln temacs${EXEEXT} emacs${EXEEXT}
896#else 897#else
897#ifdef HAVE_SHM 898#ifdef HAVE_SHM
898 LC_ALL=C ./temacs -nl -batch -l loadup dump 899 LC_ALL=C ./temacs -nl -batch -l loadup dump
@@ -915,15 +916,15 @@ ${etc}DOC: ${libsrc}make-docfile ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
915 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC 916 ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
916 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} 917 ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
917 918
918${libsrc}make-docfile@EXEEXT@: 919${libsrc}make-docfile${EXEEXT}:
919 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile@EXEEXT@ 920 cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
920 921
921/* Some systems define this to cause parallel Make-ing. */ 922/* Some systems define this to cause parallel Make-ing. */
922#ifndef MAKE_PARALLEL 923#ifndef MAKE_PARALLEL
923#define MAKE_PARALLEL 924#define MAKE_PARALLEL
924#endif 925#endif
925 926
926temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args@EXEEXT@ 927temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
927 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ 928 $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
928 -o temacs ${STARTFILES} ${obj} ${otherobj} \ 929 -o temacs ${STARTFILES} ${obj} ${otherobj} \
929 OBJECTS_MACHINE ${LIBES} 930 OBJECTS_MACHINE ${LIBES}
@@ -931,7 +932,7 @@ temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${
931/* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE 932/* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
932 often contain options that have to do with using Emacs's crt0, 933 often contain options that have to do with using Emacs's crt0,
933 which are only good with temacs. */ 934 which are only good with temacs. */
934prefix-args@EXEEXT@: prefix-args.c $(config_h) 935prefix-args${EXEEXT}: prefix-args.c $(config_h)
935 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args 936 $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
936 937
937/* Don't lose if this was not defined. */ 938/* Don't lose if this was not defined. */
@@ -1253,25 +1254,25 @@ macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \
1253 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings 1254 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings
1254macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ 1255macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \
1255 ${emacsapp}Contents/Resources/Emacs.rsrc 1256 ${emacsapp}Contents/Resources/Emacs.rsrc
1256${emacsapp}Contents/MacOS/Emacs: emacs@EXEEXT@ 1257${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT}
1257 mkdir -p ${emacsapp}Contents/MacOS/; 1258 mkdir -p ${emacsapp}Contents/MacOS/;
1258 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs@EXEEXT@ Emacs@EXEEXT@ 1259 cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT}
1259${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r 1260${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r
1260 /Developer/Tools/Rez -useDF \ 1261 /Developer/Tools/Rez -useDF \
1261 -o ${emacsapp}Contents/Resources/Emacs.rsrc \ 1262 -o ${emacsapp}Contents/Resources/Emacs.rsrc \
1262 /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< 1263 /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $<
1263#endif 1264#endif
1264 1265
1265${libsrc}emacstool@EXEEXT@: ${libsrc}emacstool.c 1266${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c
1266 cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool@EXEEXT@ 1267 cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT}
1267bootstrapclean: 1268bootstrapclean:
1268 rm -f bootstrap-emacs@EXEEXT@ 1269 rm -f bootstrap-emacs${EXEEXT}
1269mostlyclean: 1270mostlyclean:
1270 rm -f temacs@EXEEXT@ prefix-args@EXEEXT@ core *.core \#* *.o libXMenu11.a liblw.a 1271 rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
1271 rm -f ../etc/DOC 1272 rm -f ../etc/DOC
1272 rm -f bootstrap-emacs@EXEEXT@ 1273 rm -f bootstrap-emacs${EXEEXT}
1273clean: mostlyclean 1274clean: mostlyclean
1274 rm -f emacs-*@EXEEXT@ emacs@EXEEXT@ 1275 rm -f emacs-*${EXEEXT} emacs${EXEEXT}
1275/**/# This is used in making a distribution. 1276/**/# This is used in making a distribution.
1276/**/# Do not use it on development directories! 1277/**/# Do not use it on development directories!
1277distclean: clean 1278distclean: clean
@@ -1284,7 +1285,7 @@ maintainer-clean: distclean
1284 @echo "it deletes files that may require special tools to rebuild." 1285 @echo "it deletes files that may require special tools to rebuild."
1285 rm -f TAGS 1286 rm -f TAGS
1286versionclean: 1287versionclean:
1287 -rm -f emacs@EXEEXT@ emacs-* ../etc/DOC* 1288 -rm -f emacs${EXEEXT} emacs-* ../etc/DOC*
1288extraclean: distclean 1289extraclean: distclean
1289 -rm -f *~ \#* m/?*~ s/?*~ 1290 -rm -f *~ \#* m/?*~ s/?*~
1290 1291
@@ -1322,20 +1323,20 @@ tags: TAGS TAGS-LISP $(lwlibdir)TAGS
1322 1323
1323/* Bootstrapping. */ 1324/* Bootstrapping. */
1324 1325
1325bootstrap: bootstrap-emacs@EXEEXT@ 1326bootstrap: bootstrap-emacs${EXEEXT}
1326 1327
1327/* Dump an Emacs executable named bootstrap-emacs containing the 1328/* Dump an Emacs executable named bootstrap-emacs containing the
1328 files from loadup.el in source form. */ 1329 files from loadup.el in source form. */
1329 1330
1330bootstrap-emacs@EXEEXT@: temacs@EXEEXT@ 1331bootstrap-emacs${EXEEXT}: temacs${EXEEXT}
1331#ifdef CANNOT_DUMP 1332#ifdef CANNOT_DUMP
1332 ln temacs@EXEEXT@ bootstrap-emacs@EXEEXT@ 1333 ln temacs${EXEEXT} bootstrap-emacs${EXEEXT}
1333#else 1334#else
1334#ifdef HAVE_SHM 1335#ifdef HAVE_SHM
1335 ./temacs -nl -batch -l loadup bootstrap 1336 ./temacs -nl -batch -l loadup bootstrap
1336#else /* ! defined (HAVE_SHM) */ 1337#else /* ! defined (HAVE_SHM) */
1337 ./temacs --batch --load loadup bootstrap 1338 ./temacs --batch --load loadup bootstrap
1338#endif /* ! defined (HAVE_SHM) */ 1339#endif /* ! defined (HAVE_SHM) */
1339 mv -f emacs@EXEEXT@ bootstrap-emacs@EXEEXT@ 1340 mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
1340#endif /* ! defined (CANNOT_DUMP) */ 1341#endif /* ! defined (CANNOT_DUMP) */
1341 1342