Commit 108c7c97 authored by Andreas Schwab's avatar Andreas Schwab

(EXEEXT): Define to @EXEEXT@ and use this variable

instead of the substitution.
parent 7b76ca1c
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
# DIST: that first. # DIST: that first.
# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
# 2000, 2001, 2002 Free Software Foundation, Inc. # 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
# This file is part of GNU Emacs. # This file is part of GNU Emacs.
...@@ -69,6 +69,7 @@ CPPFLAGS=@CPPFLAGS@ ...@@ -69,6 +69,7 @@ CPPFLAGS=@CPPFLAGS@
C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@ LD_SWITCH_X_SITE=@LD_SWITCH_X_SITE@
YACC=@YACC@ YACC=@YACC@
EXEEXT=@EXEEXT@
### These help us choose version- and architecture-specific directories ### These help us choose version- and architecture-specific directories
### to install files in. ### to install files in.
...@@ -215,8 +216,8 @@ INSTALL_STRIP = ...@@ -215,8 +216,8 @@ INSTALL_STRIP =
TRANSFORM = @program_transform_name@ TRANSFORM = @program_transform_name@
# What emacs should be called when installed. # What emacs should be called when installed.
EMACS = `echo emacs@EXEEXT@ | sed '$(TRANSFORM)'` EMACS = `echo emacs${EXEEXT} | sed '$(TRANSFORM)'`
EMACSFULL = `echo emacs-${version}@EXEEXT@ | sed '$(TRANSFORM)'` EMACSFULL = `echo emacs-${version}${EXEEXT} | sed '$(TRANSFORM)'`
# Subdirectories to make recursively. `lisp' is not included # Subdirectories to make recursively. `lisp' is not included
# because the compiled lisp files are part of the distribution. # because the compiled lisp files are part of the distribution.
...@@ -358,7 +359,7 @@ install-arch-dep: mkdir ...@@ -358,7 +359,7 @@ install-arch-dep: mkdir
exec_prefix=${exec_prefix} bindir=${bindir} \ exec_prefix=${exec_prefix} bindir=${bindir} \
libexecdir=${libexecdir} archlibdir=${archlibdir} \ libexecdir=${libexecdir} archlibdir=${archlibdir} \
INSTALL_STRIP=${INSTALL_STRIP}) INSTALL_STRIP=${INSTALL_STRIP})
${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs@EXEEXT@ ${bindir}/$(EMACSFULL) ${INSTALL_PROGRAM} $(INSTALL_STRIP) src/emacs${EXEEXT} ${bindir}/$(EMACSFULL)
-chmod 1755 ${bindir}/$(EMACSFULL) -chmod 1755 ${bindir}/$(EMACSFULL)
rm -f ${bindir}/$(EMACS) rm -f ${bindir}/$(EMACS)
-ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS) -ln ${bindir}/$(EMACSFULL) ${bindir}/$(EMACS)
...@@ -735,7 +736,7 @@ maybe_bootstrap: ...@@ -735,7 +736,7 @@ maybe_bootstrap:
bootstrap: bootstrap-clean-before info FRC bootstrap: bootstrap-clean-before info FRC
(cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean) (cd lisp; $(MAKE) $(MFLAGS) bootstrap-clean)
(cd src; $(MAKE) $(MFLAGS) bootstrap) (cd src; $(MAKE) $(MFLAGS) bootstrap)
(cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs@EXEEXT@) (cd lisp; $(MAKE) $(MFLAGS) bootstrap EMACS=../src/bootstrap-emacs${EXEEXT})
(cd src; $(MAKE) $(MFLAGS) mostlyclean) (cd src; $(MAKE) $(MFLAGS) mostlyclean)
$(MAKE) $(MFLAGS) all $(MAKE) $(MFLAGS) all
(cd lisp; $(MAKE) $(MFLAGS) bootstrap-after) (cd lisp; $(MAKE) $(MFLAGS) bootstrap-after)
......
# Makefile for lib-src subdirectory in GNU Emacs. # Makefile for lib-src subdirectory in GNU Emacs.
# Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002 Free Software Foundation, Inc. # Copyright (C) 1985, 1987, 1988, 1993, 1994, 2002, 2003
# Free Software Foundation, Inc.
# This file is part of GNU Emacs. # This file is part of GNU Emacs.
...@@ -29,6 +30,7 @@ CFLAGS=@CFLAGS@ ...@@ -29,6 +30,7 @@ CFLAGS=@CFLAGS@
ALLOCA=@ALLOCA@ ALLOCA=@ALLOCA@
version=@version@ version=@version@
configuration=@configuration@ configuration=@configuration@
EXEEXT=@EXEEXT@
# Program name transformation. # Program name transformation.
TRANSFORM = @program_transform_name@ TRANSFORM = @program_transform_name@
...@@ -100,15 +102,15 @@ INSTALL_STRIP = ...@@ -100,15 +102,15 @@ INSTALL_STRIP =
# Things that a user might actually run, # Things that a user might actually run,
# which should be installed in bindir. # which should be installed in bindir.
INSTALLABLES = etags@EXEEXT@ ctags@EXEEXT@ emacsclient@EXEEXT@ b2m@EXEEXT@ ebrowse@EXEEXT@ INSTALLABLES = etags${EXEEXT} ctags${EXEEXT} emacsclient${EXEEXT} b2m${EXEEXT} ebrowse${EXEEXT}
INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog INSTALLABLE_SCRIPTS = rcs-checkin grep-changelog
# Things that Emacs runs internally, or during the build process, # Things that Emacs runs internally, or during the build process,
# which should not be installed in bindir. # which should not be installed in bindir.
UTILITIES= profile@EXEEXT@ digest-doc@EXEEXT@ sorted-doc@EXEEXT@ movemail@EXEEXT@ cvtmail@EXEEXT@ fakemail@EXEEXT@ \ UTILITIES= profile${EXEEXT} digest-doc${EXEEXT} sorted-doc${EXEEXT} movemail${EXEEXT} cvtmail${EXEEXT} fakemail${EXEEXT} \
yow@EXEEXT@ hexl@EXEEXT@ update-game-score@EXEEXT@ yow${EXEEXT} hexl${EXEEXT} update-game-score${EXEEXT}
DONT_INSTALL= test-distrib@EXEEXT@ make-docfile@EXEEXT@ DONT_INSTALL= test-distrib${EXEEXT} make-docfile${EXEEXT}
# Like UTILITIES, but they're not system-dependent, and should not be # Like UTILITIES, but they're not system-dependent, and should not be
# deleted by the distclean target. # deleted by the distclean target.
...@@ -286,12 +288,12 @@ blessmail: ...@@ -286,12 +288,12 @@ blessmail:
maybe-blessmail: BLESSMAIL maybe-blessmail: BLESSMAIL
#ifdef MOVEMAIL_NEEDS_BLESSING #ifdef MOVEMAIL_NEEDS_BLESSING
/* Don\'t charge ahead and do it! Let the installer decide. /* Don\'t charge ahead and do it! Let the installer decide.
./blessmail ${archlibdir}/movemail@EXEEXT@ */ ./blessmail ${archlibdir}/movemail${EXEEXT} */
@if [ `wc -l <blessmail` != 2 ] ; then \ @if [ `wc -l <blessmail` != 2 ] ; then \
dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \ dir=`sed -n -e 's/echo mail directory = \(.*\)/\1/p' blessmail`; \
echo Assuming $$dir is really the mail spool directory, you should; \ echo Assuming $$dir is really the mail spool directory, you should; \
echo run lib-src/blessmail ${archlibdir}/movemail@EXEEXT@; \ echo run lib-src/blessmail ${archlibdir}/movemail${EXEEXT}; \
echo as root, to give movemail@EXEEXT@ appropriate permissions.; \ echo as root, to give movemail${EXEEXT} appropriate permissions.; \
echo Do that after running make install.; \ echo Do that after running make install.; \
fi fi
#endif #endif
...@@ -372,14 +374,14 @@ check: ...@@ -372,14 +374,14 @@ check:
@echo "We don't have any tests for GNU Emacs yet." @echo "We don't have any tests for GNU Emacs yet."
tags: TAGS tags: TAGS
TAGS: etags@EXEEXT@ TAGS: etags${EXEEXT}
etags *.[ch] etags *.[ch]
/* This verifies that the non-ASCII characters in the file \`testfile\' /* This verifies that the non-ASCII characters in the file \`testfile\'
have not been clobbered by whatever means were used to copy and have not been clobbered by whatever means were used to copy and
distribute Emacs. If they were clobbered, all the .elc files were distribute Emacs. If they were clobbered, all the .elc files were
clobbered too. */ clobbered too. */
test-distrib@EXEEXT@: ${srcdir}/test-distrib.c test-distrib${EXEEXT}: ${srcdir}/test-distrib.c
$(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c $(CC) ${ALL_CFLAGS} -o test-distrib ${srcdir}/test-distrib.c
./test-distrib ${srcdir}/testfile ./test-distrib ${srcdir}/testfile
...@@ -403,34 +405,34 @@ REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h ...@@ -403,34 +405,34 @@ REGEXPDEPS = $(REGEXPOBJ) $(srcdir)/../src/regex.h
regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h regex.o: $(srcdir)/../src/regex.c $(srcdir)/../src/regex.h ../src/config.h
${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c ${CC} -c ${BASE_CFLAGS} -DCONFIG_BROKETS -DINHIBIT_STRING_HEADER ${srcdir}/../src/regex.c
etags@EXEEXT@: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h etags${EXEEXT}: ${srcdir}/etags.c $(GETOPTDEPS) $(REGEXPDEPS) ../src/config.h
$(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o etags
ebrowse@EXEEXT@: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h ebrowse${EXEEXT}: ${srcdir}/ebrowse.c $(GETOPTDEPS) ../src/config.h
$(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse $(CC) ${ALL_CFLAGS} -DVERSION="\"${version}\"" ${srcdir}/ebrowse.c $(GETOPTOBJS) $(LOADLIBES) -o ebrowse
/* We depend on etags to assure that parallel makes don\'t write two /* We depend on etags to assure that parallel makes don\'t write two
etags.o files on top of each other. */ etags.o files on top of each other. */
ctags@EXEEXT@: etags@EXEEXT@ ctags${EXEEXT}: etags${EXEEXT}
$(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags $(CC) ${ALL_CFLAGS} -DCTAGS -DVERSION="\"${version}\"" ${srcdir}/etags.c $(GETOPTOBJS) $(REGEXPOBJ) $(LOADLIBES) -o ctags
profile@EXEEXT@: ${srcdir}/profile.c ../src/config.h profile${EXEEXT}: ${srcdir}/profile.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile $(CC) ${ALL_CFLAGS} ${srcdir}/profile.c $(LOADLIBES) -o profile
make-docfile@EXEEXT@: ${srcdir}/make-docfile.c ../src/config.h make-docfile${EXEEXT}: ${srcdir}/make-docfile.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile $(CC) ${ALL_CFLAGS} ${srcdir}/make-docfile.c $(LOADLIBES) -o make-docfile
digest-doc@EXEEXT@: ${srcdir}/digest-doc.c digest-doc${EXEEXT}: ${srcdir}/digest-doc.c
$(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc $(CC) ${ALL_CFLAGS} ${srcdir}/digest-doc.c $(LOADLIBES) -o digest-doc
sorted-doc@EXEEXT@: ${srcdir}/sorted-doc.c ${ALLOCA} sorted-doc${EXEEXT}: ${srcdir}/sorted-doc.c ${ALLOCA}
$(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc $(CC) ${ALL_CFLAGS} ${srcdir}/sorted-doc.c ${ALLOCA} $(LOADLIBES) -o sorted-doc
b2m@EXEEXT@: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS) b2m${EXEEXT}: ${srcdir}/b2m.c ../src/config.h $(GETOPTDEPS)
$(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \ $(CC) ${ALL_CFLAGS} ${srcdir}/b2m.c -DVERSION="\"${version}\"" \
$(GETOPTOBJS) $(LOADLIBES) -o b2m $(GETOPTOBJS) $(LOADLIBES) -o b2m
movemail@EXEEXT@: movemail.o pop.o $(GETOPTDEPS) movemail${EXEEXT}: movemail.o pop.o $(GETOPTDEPS)
$(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail $(CC) ${LINK_CFLAGS} ${MOVE_FLAGS} movemail.o pop.o $(GETOPTOBJS) $(LOADLIBES) $(LIBS_MAIL) $(LIBS_MOVE) -o movemail
movemail.o: ${srcdir}/movemail.c ../src/config.h movemail.o: ${srcdir}/movemail.c ../src/config.h
...@@ -439,45 +441,45 @@ movemail.o: ${srcdir}/movemail.c ../src/config.h ...@@ -439,45 +441,45 @@ movemail.o: ${srcdir}/movemail.c ../src/config.h
pop.o: ${srcdir}/pop.c ../src/config.h pop.o: ${srcdir}/pop.c ../src/config.h
$(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c $(CC) -c ${CPP_CFLAGS} ${MOVE_FLAGS} ${srcdir}/pop.c
cvtmail@EXEEXT@: ${srcdir}/cvtmail.c cvtmail${EXEEXT}: ${srcdir}/cvtmail.c
$(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail $(CC) ${ALL_CFLAGS} ${srcdir}/cvtmail.c $(LOADLIBES) -o cvtmail
fakemail@EXEEXT@: ${srcdir}/fakemail.c ../src/config.h fakemail${EXEEXT}: ${srcdir}/fakemail.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail $(CC) ${ALL_CFLAGS} ${srcdir}/fakemail.c $(LOADLIBES) -o fakemail
yow@EXEEXT@: ${srcdir}/yow.c ../src/epaths.h yow${EXEEXT}: ${srcdir}/yow.c ../src/epaths.h
$(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow $(CC) ${ALL_CFLAGS} ${srcdir}/yow.c $(LOADLIBES) -o yow
emacsclient@EXEEXT@: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS) emacsclient${EXEEXT}: ${srcdir}/emacsclient.c ../src/config.h $(GETOPTDEPS)
$(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \ $(CC) ${ALL_CFLAGS} ${srcdir}/emacsclient.c $(GETOPTOBJS) \
-DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \ -DVERSION=`sed -n -e '/(defconst emacs-version/ s/^[^"]*\("[^"]*"\).*/\1/p' ${srcdir}/../lisp/version.el` \
$(LOADLIBES) -o emacsclient $(LOADLIBES) -o emacsclient
hexl@EXEEXT@: ${srcdir}/hexl.c ../src/config.h hexl${EXEEXT}: ${srcdir}/hexl.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl $(CC) ${ALL_CFLAGS} ${srcdir}/hexl.c $(LOADLIBES) -o hexl
update-game-score@EXEEXT@: ${srcdir}/update-game-score.c ../src/config.h update-game-score${EXEEXT}: ${srcdir}/update-game-score.c ../src/config.h
$(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \ $(CC) ${ALL_CFLAGS} ${srcdir}/update-game-score.c \
-DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \ -DHAVE_SHARED_GAME_DIR="\"$(gamedir)\"" \
$(LOADLIBES) -o update-game-score $(LOADLIBES) -o update-game-score
/* These are NOT included in INSTALLABLES or UTILITIES. /* These are NOT included in INSTALLABLES or UTILITIES.
See ../src/Makefile.in. */ See ../src/Makefile.in. */
emacstool@EXEEXT@: ${srcdir}/emacstool.c emacstool${EXEEXT}: ${srcdir}/emacstool.c
$(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \ $(CC) ${srcdir}/emacstool.c -o emacstool ${ALL_CFLAGS} \
-lsuntool -lsunwindow -lpixrect $(LOADLIBES) -lsuntool -lsunwindow -lpixrect $(LOADLIBES)
/* For SUN Japanese Language Environment. */ /* For SUN Japanese Language Environment. */
nemacstool@EXEEXT@: ${srcdir}/emacstool.c nemacstool${EXEEXT}: ${srcdir}/emacstool.c
$(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \ $(CC) -o nemacstool -DJLE ${ALL_CFLAGS} ${srcdir}/emacstool.c \
-lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES) -lsuntool -lmle -lsunwindow -lpixrect $(LOADLIBES)
xvetool@EXEEXT@: ${srcdir}/emacstool.c xvetool${EXEEXT}: ${srcdir}/emacstool.c
$(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \ $(CC) -o xvetool -DXVIEW ${ALL_CFLAGS} ${srcdir}/emacstool.c \
-lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ -lxview -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
$(LOADLIBES) $(LOADLIBES)
xveterm@EXEEXT@: ${srcdir}/emacstool.c xveterm${EXEEXT}: ${srcdir}/emacstool.c
$(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \ $(CC) -o xveterm -DXVIEW -DTTERM ${ALL_CFLAGS} ${srcdir}/emacstool.c \
-lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \ -lxview -lolgx -lX -I$(OPENWINHOME)/include -L$(OPENWINHOME)/lib \
$(LOADLIBES) $(LOADLIBES)
# Makefile for GNU Emacs. # Makefile for GNU Emacs.
# Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001 # Copyright (C) 1985, 87, 88, 93, 94, 95, 99, 2000, 2001, 2003
# Free Software Foundation, Inc. # Free Software Foundation, Inc.
# This file is part of GNU Emacs. # This file is part of GNU Emacs.
...@@ -37,6 +37,7 @@ CFLAGS=@CFLAGS@ ...@@ -37,6 +37,7 @@ CFLAGS=@CFLAGS@
CPPFLAGS=@CPPFLAGS@ CPPFLAGS=@CPPFLAGS@
LDFLAGS=@LDFLAGS@ LDFLAGS=@LDFLAGS@
LN_S=@LN_S@ LN_S=@LN_S@
EXEEXT=@EXEEXT@
# Substitute an assignment for the MAKE variable, because # Substitute an assignment for the MAKE variable, because
# BSD doesn't have it as a default. # BSD doesn't have it as a default.
@SET_MAKE@ @SET_MAKE@
...@@ -887,12 +888,12 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) \ ...@@ -887,12 +888,12 @@ LIBES = $(LOADLIBES) $(LIBS) $(LIBX) $(LIBSOUND) \
#define OBJECTS_MACHINE #define OBJECTS_MACHINE
#endif #endif
all: emacs@EXEEXT@ OTHER_FILES all: emacs${EXEEXT} OTHER_FILES
emacs@EXEEXT@: temacs@EXEEXT@ ${etc}DOC ${lisp} emacs${EXEEXT}: temacs${EXEEXT} ${etc}DOC ${lisp}
#ifdef CANNOT_DUMP #ifdef CANNOT_DUMP
rm -f emacs@EXEEXT@ rm -f emacs${EXEEXT}
ln temacs@EXEEXT@ emacs@EXEEXT@ ln temacs${EXEEXT} emacs${EXEEXT}
#else #else
#ifdef HAVE_SHM #ifdef HAVE_SHM
LC_ALL=C ./temacs -nl -batch -l loadup dump LC_ALL=C ./temacs -nl -batch -l loadup dump
...@@ -915,15 +916,15 @@ ${etc}DOC: ${libsrc}make-docfile ${obj} ${shortlisp} ${SOME_MACHINE_LISP} ...@@ -915,15 +916,15 @@ ${etc}DOC: ${libsrc}make-docfile ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC ${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC
${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} ${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp}
${libsrc}make-docfile@EXEEXT@: ${libsrc}make-docfile${EXEEXT}:
cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile@EXEEXT@ cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
/* Some systems define this to cause parallel Make-ing. */ /* Some systems define this to cause parallel Make-ing. */
#ifndef MAKE_PARALLEL #ifndef MAKE_PARALLEL
#define MAKE_PARALLEL #define MAKE_PARALLEL
#endif #endif
temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args@EXEEXT@ temacs${EXEEXT}: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT}
$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \
-o temacs ${STARTFILES} ${obj} ${otherobj} \ -o temacs ${STARTFILES} ${obj} ${otherobj} \
OBJECTS_MACHINE ${LIBES} OBJECTS_MACHINE ${LIBES}
...@@ -931,7 +932,7 @@ temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${ ...@@ -931,7 +932,7 @@ temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${
/* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE /* We don't use ALL_LDFLAGS because LD_SWITCH_SYSTEM and LD_SWITCH_MACHINE
often contain options that have to do with using Emacs's crt0, often contain options that have to do with using Emacs's crt0,
which are only good with temacs. */ which are only good with temacs. */
prefix-args@EXEEXT@: prefix-args.c $(config_h) prefix-args${EXEEXT}: prefix-args.c $(config_h)
$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args $(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args
/* Don't lose if this was not defined. */ /* Don't lose if this was not defined. */
...@@ -1253,25 +1254,25 @@ macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \ ...@@ -1253,25 +1254,25 @@ macosx-bundle: ${emacsapp}Contents/Resources/English.lproj \
${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings
macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \
${emacsapp}Contents/Resources/Emacs.rsrc ${emacsapp}Contents/Resources/Emacs.rsrc
${emacsapp}Contents/MacOS/Emacs: emacs@EXEEXT@ ${emacsapp}Contents/MacOS/Emacs: emacs${EXEEXT}
mkdir -p ${emacsapp}Contents/MacOS/; mkdir -p ${emacsapp}Contents/MacOS/;
cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs@EXEEXT@ Emacs@EXEEXT@ cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs${EXEEXT} Emacs${EXEEXT}
${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r ${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r
/Developer/Tools/Rez -useDF \ /Developer/Tools/Rez -useDF \
-o ${emacsapp}Contents/Resources/Emacs.rsrc \ -o ${emacsapp}Contents/Resources/Emacs.rsrc \
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $<
#endif #endif
${libsrc}emacstool@EXEEXT@: ${libsrc}emacstool.c ${libsrc}emacstool${EXEEXT}: ${libsrc}emacstool.c
cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool@EXEEXT@ cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool${EXEEXT}
bootstrapclean: bootstrapclean:
rm -f bootstrap-emacs@EXEEXT@ rm -f bootstrap-emacs${EXEEXT}
mostlyclean: mostlyclean:
rm -f temacs@EXEEXT@ prefix-args@EXEEXT@ core *.core \#* *.o libXMenu11.a liblw.a rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o libXMenu11.a liblw.a
rm -f ../etc/DOC rm -f ../etc/DOC
rm -f bootstrap-emacs@EXEEXT@ rm -f bootstrap-emacs${EXEEXT}
clean: mostlyclean clean: mostlyclean
rm -f emacs-*@EXEEXT@ emacs@EXEEXT@ rm -f emacs-*${EXEEXT} emacs${EXEEXT}
/**/# This is used in making a distribution. /**/# This is used in making a distribution.
/**/# Do not use it on development directories! /**/# Do not use it on development directories!
distclean: clean distclean: clean
...@@ -1284,7 +1285,7 @@ maintainer-clean: distclean ...@@ -1284,7 +1285,7 @@ maintainer-clean: distclean
@echo "it deletes files that may require special tools to rebuild." @echo "it deletes files that may require special tools to rebuild."
rm -f TAGS rm -f TAGS
versionclean: versionclean:
-rm -f emacs@EXEEXT@ emacs-* ../etc/DOC* -rm -f emacs${EXEEXT} emacs-* ../etc/DOC*
extraclean: distclean extraclean: distclean
-rm -f *~ \#* m/?*~ s/?*~ -rm -f *~ \#* m/?*~ s/?*~
...@@ -1322,20 +1323,20 @@ tags: TAGS TAGS-LISP $(lwlibdir)TAGS ...@@ -1322,20 +1323,20 @@ tags: TAGS TAGS-LISP $(lwlibdir)TAGS
/* Bootstrapping. */ /* Bootstrapping. */
bootstrap: bootstrap-emacs@EXEEXT@ bootstrap: bootstrap-emacs${EXEEXT}
/* Dump an Emacs executable named bootstrap-emacs containing the /* Dump an Emacs executable named bootstrap-emacs containing the
files from loadup.el in source form. */ files from loadup.el in source form. */
bootstrap-emacs@EXEEXT@: temacs@EXEEXT@ bootstrap-emacs${EXEEXT}: temacs${EXEEXT}
#ifdef CANNOT_DUMP #ifdef CANNOT_DUMP
ln temacs@EXEEXT@ bootstrap-emacs@EXEEXT@ ln temacs${EXEEXT} bootstrap-emacs${EXEEXT}
#else #else
#ifdef HAVE_SHM #ifdef HAVE_SHM
./temacs -nl -batch -l loadup bootstrap ./temacs -nl -batch -l loadup bootstrap
#else /* ! defined (HAVE_SHM) */ #else /* ! defined (HAVE_SHM) */
./temacs --batch --load loadup bootstrap ./temacs --batch --load loadup bootstrap
#endif /* ! defined (HAVE_SHM) */ #endif /* ! defined (HAVE_SHM) */
mv -f emacs@EXEEXT@ bootstrap-emacs@EXEEXT@ mv -f emacs${EXEEXT} bootstrap-emacs${EXEEXT}
#endif /* ! defined (CANNOT_DUMP) */ #endif /* ! defined (CANNOT_DUMP) */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment