comparison src/Makefile.in @ 49652:5127a1bf36db

(EXEEXT): Define to @EXEEXT@ and use this variable instead of the substitution.
author Andreas Schwab <schwab@suse.de>
date Sat, 08 Feb 2003 17:27:58 +0000
parents 99be3a1e2589
children f86bdb079c56
comparison
equal deleted inserted replaced
49651:05ebf4266798 49652:5127a1bf36db
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.
6 6
7 # GNU Emacs is free software; you can redistribute it and/or modify 7 # GNU Emacs is free software; you can redistribute it and/or modify
35 CPP=@CPP@ 35 CPP=@CPP@
36 CFLAGS=@CFLAGS@ 36 CFLAGS=@CFLAGS@
37 CPPFLAGS=@CPPFLAGS@ 37 CPPFLAGS=@CPPFLAGS@
38 LDFLAGS=@LDFLAGS@ 38 LDFLAGS=@LDFLAGS@
39 LN_S=@LN_S@ 39 LN_S=@LN_S@
40 EXEEXT=@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@
43 # Don't use LIBS. configure puts stuff in it that either shouldn't be 44 # Don't use LIBS. configure puts stuff in it that either shouldn't be
44 # linked with Emacs or is duplicated by the cpp stuff below. 45 # linked with Emacs or is duplicated by the cpp stuff below.
885 886
886 #ifndef OBJECTS_MACHINE 887 #ifndef OBJECTS_MACHINE
887 #define OBJECTS_MACHINE 888 #define OBJECTS_MACHINE
888 #endif 889 #endif
889 890
890 all: emacs@EXEEXT@ OTHER_FILES 891 all: emacs${EXEEXT} OTHER_FILES
891 892
892 emacs@EXEEXT@: temacs@EXEEXT@ ${etc}DOC ${lisp} 893 emacs${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
899 #else /* ! defined (HAVE_SHM) */ 900 #else /* ! defined (HAVE_SHM) */
900 LC_ALL=C ./temacs -batch -l loadup dump 901 LC_ALL=C ./temacs -batch -l loadup dump
913 ${etc}DOC: ${libsrc}make-docfile ${obj} ${shortlisp} ${SOME_MACHINE_LISP} 914 ${etc}DOC: ${libsrc}make-docfile ${obj} ${shortlisp} ${SOME_MACHINE_LISP}
914 -rm -f ${etc}DOC 915 -rm -f ${etc}DOC
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
926 temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args@EXEEXT@ 927 temacs${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}
930 931
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. */
934 prefix-args@EXEEXT@: prefix-args.c $(config_h) 935 prefix-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. */
938 #ifndef OLDXMENU_OPTIONS 939 #ifndef OLDXMENU_OPTIONS
939 #define OLDXMENU_OPTIONS 940 #define OLDXMENU_OPTIONS
1251 ${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo\ 1252 ${emacsapp}Contents/Info.plist ${emacsapp}Contents/PkgInfo\
1252 ${emacsapp}Contents/Resources/Emacs.icns \ 1253 ${emacsapp}Contents/Resources/Emacs.icns \
1253 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings 1254 ${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings
1254 macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ 1255 macosx-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}
1267 bootstrapclean: 1268 bootstrapclean:
1268 rm -f bootstrap-emacs@EXEEXT@ 1269 rm -f bootstrap-emacs${EXEEXT}
1269 mostlyclean: 1270 mostlyclean:
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}
1273 clean: mostlyclean 1274 clean: 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!
1277 distclean: clean 1278 distclean: clean
1278 rm -f epaths.h config.h Makefile Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-* 1279 rm -f epaths.h config.h Makefile Makefile.c config.stamp stamp-oldxmenu ../etc/DOC-*
1279 mv ./.gdbinit ./.gdbinit.save 1280 mv ./.gdbinit ./.gdbinit.save
1282 maintainer-clean: distclean 1283 maintainer-clean: distclean
1283 @echo "This command is intended for maintainers to use;" 1284 @echo "This command is intended for maintainers to use;"
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
1286 versionclean: 1287 versionclean:
1287 -rm -f emacs@EXEEXT@ emacs-* ../etc/DOC* 1288 -rm -f emacs${EXEEXT} emacs-* ../etc/DOC*
1288 extraclean: distclean 1289 extraclean: distclean
1289 -rm -f *~ \#* m/?*~ s/?*~ 1290 -rm -f *~ \#* m/?*~ s/?*~
1290 1291
1291 /* The rule for the [sm] files has to be written a little funny to 1292 /* The rule for the [sm] files has to be written a little funny to
1292 avoid looking like a C comment to CPP. */ 1293 avoid looking like a C comment to CPP. */
1320 .PHONY: tags 1321 .PHONY: tags
1321 1322
1322 1323
1323 /* Bootstrapping. */ 1324 /* Bootstrapping. */
1324 1325
1325 bootstrap: bootstrap-emacs@EXEEXT@ 1326 bootstrap: 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
1330 bootstrap-emacs@EXEEXT@: temacs@EXEEXT@ 1331 bootstrap-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