aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAndreas Schwab2003-02-08 17:27:58 +0000
committerAndreas Schwab2003-02-08 17:27:58 +0000
commit108c7c97c1ad0da9bc240fa656826b3fe0276e19 (patch)
tree2b6501add6943c1aa02d76806f9903c50b08b34e /src
parent7b76ca1c43fcaa58bf2c7c3503c8f33399eab8eb (diff)
downloademacs-108c7c97c1ad0da9bc240fa656826b3fe0276e19.tar.gz
emacs-108c7c97c1ad0da9bc240fa656826b3fe0276e19.zip
(EXEEXT): Define to @EXEEXT@ and use this variable
instead of the substitution.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.in45
1 files changed, 23 insertions, 22 deletions
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