525 |
#endif /* not ORDINARY_LINK */ |
#endif /* not ORDINARY_LINK */ |
526 |
|
|
527 |
/* Flags to pass to LD only for temacs. */ |
/* Flags to pass to LD only for temacs. */ |
528 |
/* Don't split this line with a backslash. That can cause trouble with |
/* Don't split this line with a backslash. That can cause trouble with |
529 |
some cpps. */ |
some cpps. */ |
530 |
TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE |
TEMACS_LDFLAGS = LD_SWITCH_SYSTEM LD_SWITCH_SYSTEM_TEMACS LD_SWITCH_MACHINE LD_SWITCH_MACHINE_TEMACS LD_SWITCH_SITE |
531 |
|
|
887 |
#define OBJECTS_MACHINE |
#define OBJECTS_MACHINE |
888 |
#endif |
#endif |
889 |
|
|
890 |
all: emacs OTHER_FILES |
all: emacs@EXEEXT@ OTHER_FILES |
891 |
|
|
892 |
emacs: temacs ${etc}DOC ${lisp} |
emacs@EXEEXT@: temacs@EXEEXT@ ${etc}DOC ${lisp} |
893 |
#ifdef CANNOT_DUMP |
#ifdef CANNOT_DUMP |
894 |
rm -f emacs |
rm -f emacs@EXEEXT@ |
895 |
ln temacs emacs |
ln temacs@EXEEXT@ emacs@EXEEXT@ |
896 |
#else |
#else |
897 |
#ifdef HAVE_SHM |
#ifdef HAVE_SHM |
898 |
LC_ALL=C ./temacs -nl -batch -l loadup dump |
LC_ALL=C ./temacs -nl -batch -l loadup dump |
915 |
${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC |
${libsrc}make-docfile -d ${srcdir} ${SOME_MACHINE_OBJECTS} ${obj} > ${etc}DOC |
916 |
${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} |
${libsrc}make-docfile -a ${etc}DOC -d ${srcdir} ${SOME_MACHINE_LISP} ${shortlisp} |
917 |
|
|
918 |
${libsrc}make-docfile: |
${libsrc}make-docfile@EXEEXT@: |
919 |
cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile |
cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile@EXEEXT@ |
920 |
|
|
921 |
/* Some systems define this to cause parallel Make-ing. */ |
/* Some systems define this to cause parallel Make-ing. */ |
922 |
#ifndef MAKE_PARALLEL |
#ifndef MAKE_PARALLEL |
923 |
#define MAKE_PARALLEL |
#define MAKE_PARALLEL |
924 |
#endif |
#endif |
925 |
|
|
926 |
temacs: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args |
temacs@EXEEXT@: MAKE_PARALLEL $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args@EXEEXT@ |
927 |
$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ |
$(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ |
928 |
-o temacs ${STARTFILES} ${obj} ${otherobj} \ |
-o temacs ${STARTFILES} ${obj} ${otherobj} \ |
929 |
OBJECTS_MACHINE ${LIBES} |
OBJECTS_MACHINE ${LIBES} |
931 |
/* 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 |
932 |
often contain options that have to do with using Emacs's crt0, |
often contain options that have to do with using Emacs's crt0, |
933 |
which are only good with temacs. */ |
which are only good with temacs. */ |
934 |
prefix-args: prefix-args.c $(config_h) |
prefix-args@EXEEXT@: prefix-args.c $(config_h) |
935 |
$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args |
$(CC) $(ALL_CFLAGS) $(LDFLAGS) ${srcdir}/prefix-args.c -o prefix-args |
936 |
|
|
937 |
/* Don't lose if this was not defined. */ |
/* Don't lose if this was not defined. */ |
950 |
to both ensure that lwlib gets remade based on its dependencies |
to both ensure that lwlib gets remade based on its dependencies |
951 |
in its own makefile, |
in its own makefile, |
952 |
and remake temacs if lwlib gets changed by this. */ |
and remake temacs if lwlib gets changed by this. */ |
953 |
stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) |
stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) |
954 |
touch stamp-oldxmenu |
touch stamp-oldxmenu |
955 |
/* Supply an ordering for parallel make. */ |
/* Supply an ordering for parallel make. */ |
956 |
../src/$(OLDXMENU): ${OLDXMENU} |
../src/$(OLDXMENU): ${OLDXMENU} |
1253 |
${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings |
${emacsapp}Contents/Resources/English.lproj/InfoPlist.strings |
1254 |
macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ |
macosx-app: macosx-bundle ${emacsapp}Contents/MacOS/Emacs \ |
1255 |
${emacsapp}Contents/Resources/Emacs.rsrc |
${emacsapp}Contents/Resources/Emacs.rsrc |
1256 |
${emacsapp}Contents/MacOS/Emacs: emacs |
${emacsapp}Contents/MacOS/Emacs: emacs@EXEEXT@ |
1257 |
mkdir -p ${emacsapp}Contents/MacOS/; |
mkdir -p ${emacsapp}Contents/MacOS/; |
1258 |
cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs Emacs |
cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs@EXEEXT@ Emacs@EXEEXT@ |
1259 |
${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r |
${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r |
1260 |
/Developer/Tools/Rez -useDF \ |
/Developer/Tools/Rez -useDF \ |
1261 |
-o ${emacsapp}Contents/Resources/Emacs.rsrc \ |
-o ${emacsapp}Contents/Resources/Emacs.rsrc \ |
1262 |
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< |
/System/Library/Frameworks/Carbon.framework/Headers/Carbon.r $< |
1263 |
#endif |
#endif |
1264 |
|
|
1265 |
${libsrc}emacstool: ${libsrc}emacstool.c |
${libsrc}emacstool@EXEEXT@: ${libsrc}emacstool.c |
1266 |
cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool |
cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool@EXEEXT@ |
1267 |
bootstrapclean: |
bootstrapclean: |
1268 |
rm -f bootstrap-emacs |
rm -f bootstrap-emacs@EXEEXT@ |
1269 |
mostlyclean: |
mostlyclean: |
1270 |
rm -f temacs prefix-args core *.core \#* *.o libXMenu11.a liblw.a |
rm -f temacs@EXEEXT@ prefix-args@EXEEXT@ core *.core \#* *.o libXMenu11.a liblw.a |
1271 |
rm -f ../etc/DOC |
rm -f ../etc/DOC |
1272 |
rm -f bootstrap-emacs |
rm -f bootstrap-emacs@EXEEXT@ |
1273 |
clean: mostlyclean |
clean: mostlyclean |
1274 |
rm -f emacs-* emacs |
rm -f emacs-*@EXEEXT@ emacs@EXEEXT@ |
1275 |
/**/# This is used in making a distribution. |
/**/# This is used in making a distribution. |
1276 |
/**/# Do not use it on development directories! |
/**/# Do not use it on development directories! |
1277 |
distclean: clean |
distclean: clean |
1284 |
@echo "it deletes files that may require special tools to rebuild." |
@echo "it deletes files that may require special tools to rebuild." |
1285 |
rm -f TAGS |
rm -f TAGS |
1286 |
versionclean: |
versionclean: |
1287 |
-rm -f emacs emacs-* ../etc/DOC* |
-rm -f emacs@EXEEXT@ emacs-* ../etc/DOC* |
1288 |
extraclean: distclean |
extraclean: distclean |
1289 |
-rm -f *~ \#* m/?*~ s/?*~ |
-rm -f *~ \#* m/?*~ s/?*~ |
1290 |
|
|
1302 |
/* Arrange to make a tags table TAGS-LISP for ../lisp, |
/* Arrange to make a tags table TAGS-LISP for ../lisp, |
1303 |
plus TAGS for the C files, which includes ../lisp/TAGS by reference. */ |
plus TAGS for the C files, which includes ../lisp/TAGS by reference. */ |
1304 |
|
|
1305 |
ctagsfiles1 = [xyzXYZ]*.[hc] |
ctagsfiles1 = [xyzXYZ]*.[hc] |
1306 |
ctagsfiles2 = [a-wA-W]*.[hc] |
ctagsfiles2 = [a-wA-W]*.[hc] |
1307 |
|
|
1308 |
TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) |
TAGS: $(srcdir)/$(ctagsfiles1) $(srcdir)/$(ctagsfiles2) |
1322 |
|
|
1323 |
/* Bootstrapping. */ |
/* Bootstrapping. */ |
1324 |
|
|
1325 |
bootstrap: bootstrap-emacs |
bootstrap: bootstrap-emacs@EXEEXT@ |
1326 |
|
|
1327 |
/* Dump an Emacs executable named bootstrap-emacs containing the |
/* Dump an Emacs executable named bootstrap-emacs containing the |
1328 |
files from loadup.el in source form. */ |
files from loadup.el in source form. */ |
1329 |
|
|
1330 |
bootstrap-emacs: temacs |
bootstrap-emacs@EXEEXT@: temacs@EXEEXT@ |
1331 |
#ifdef CANNOT_DUMP |
#ifdef CANNOT_DUMP |
1332 |
ln temacs bootstrap-emacs |
ln temacs@EXEEXT@ bootstrap-emacs@EXEEXT@ |
1333 |
#else |
#else |
1334 |
#ifdef HAVE_SHM |
#ifdef HAVE_SHM |
1335 |
./temacs -nl -batch -l loadup bootstrap |
./temacs -nl -batch -l loadup bootstrap |
1336 |
#else /* ! defined (HAVE_SHM) */ |
#else /* ! defined (HAVE_SHM) */ |
1337 |
./temacs --batch --load loadup bootstrap |
./temacs --batch --load loadup bootstrap |
1338 |
#endif /* ! defined (HAVE_SHM) */ |
#endif /* ! defined (HAVE_SHM) */ |
1339 |
|
mv -f emacs@EXEEXT@ bootstrap-emacs@EXEEXT@ |
1340 |
#endif /* ! defined (CANNOT_DUMP) */ |
#endif /* ! defined (CANNOT_DUMP) */ |
|
mv -f emacs bootstrap-emacs |
|
1341 |
|
|