diff options
| author | Andrew Choi | 2002-04-26 23:39:06 +0000 |
|---|---|---|
| committer | Andrew Choi | 2002-04-26 23:39:06 +0000 |
| commit | e0f712ba55fa0d073f6ab93606e428f61fc7caf2 (patch) | |
| tree | 7dc6d3403fafcbee1a83288ac840f7eba1d92b44 /src/Makefile.in | |
| parent | 501d8923ae2cdec4ef50f050bb66d3715ba2a8f6 (diff) | |
| download | emacs-e0f712ba55fa0d073f6ab93606e428f61fc7caf2.tar.gz emacs-e0f712ba55fa0d073f6ab93606e428f61fc7caf2.zip | |
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
Diffstat (limited to 'src/Makefile.in')
| -rw-r--r-- | src/Makefile.in | 54 |
1 files changed, 50 insertions, 4 deletions
diff --git a/src/Makefile.in b/src/Makefile.in index 1d8f1adb4cb..82d1e78aaa0 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -159,6 +159,12 @@ CC = C_COMPILER | |||
| 159 | #define LD_SWITCH_SYSTEM_TEMACS | 159 | #define LD_SWITCH_SYSTEM_TEMACS |
| 160 | #endif | 160 | #endif |
| 161 | 161 | ||
| 162 | /* Some s/SYSTEM.h files define this to request special switches | ||
| 163 | for compiling temacs. */ | ||
| 164 | #ifndef C_SWITCH_SYSTEM_TEMACS | ||
| 165 | #define C_SWITCH_SYSTEM_TEMACS | ||
| 166 | #endif | ||
| 167 | |||
| 162 | /* Some m/MACHINE.h files define this to request special switches in ld. */ | 168 | /* Some m/MACHINE.h files define this to request special switches in ld. */ |
| 163 | #ifndef LD_SWITCH_MACHINE | 169 | #ifndef LD_SWITCH_MACHINE |
| 164 | #define LD_SWITCH_MACHINE | 170 | #define LD_SWITCH_MACHINE |
| @@ -266,7 +272,7 @@ TOOLKIT_DEFINES = | |||
| 266 | 272 | ||
| 267 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM | 273 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_MACHINE and C_SWITCH_X_SYSTEM |
| 268 | since it may have -I options that should override those two. */ | 274 | since it may have -I options that should override those two. */ |
| 269 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAG) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM ${CFLAGS} | 275 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(TOOLKIT_DEFINES) $(MYCPPFLAG) -I. -I${srcdir} C_SWITCH_MACHINE C_SWITCH_SYSTEM C_SWITCH_SITE C_SWITCH_X_SITE C_SWITCH_X_MACHINE C_SWITCH_X_SYSTEM C_SWITCH_SYSTEM_TEMACS ${CFLAGS} |
| 270 | .c.o: | 276 | .c.o: |
| 271 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< | 277 | $(CC) -c $(CPPFLAGS) $(ALL_CFLAGS) $< |
| 272 | 278 | ||
| @@ -531,10 +537,17 @@ MSDOS_OBJ = dosfns.o msdos.o w16select.o | |||
| 531 | #endif | 537 | #endif |
| 532 | #endif | 538 | #endif |
| 533 | 539 | ||
| 540 | #ifdef HAVE_CARBON | ||
| 541 | XMENU_OBJ = | ||
| 542 | MAC_OBJ = mac.o macterm.o macfns.o macmenu.o fontset.o | ||
| 543 | emacsapp = ../mac/Emacs.app/ | ||
| 544 | #else | ||
| 545 | XMENU_OBJ = xmenu.o | ||
| 546 | #endif | ||
| 534 | 547 | ||
| 535 | /* lastfile must follow all files | 548 | /* lastfile must follow all files |
| 536 | whose initialized data areas should be dumped as pure by dump-emacs. */ | 549 | whose initialized data areas should be dumped as pure by dump-emacs. */ |
| 537 | obj= dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o \ | 550 | obj= dispnew.o frame.o scroll.o xdisp.o $(XMENU_OBJ) window.o \ |
| 538 | charset.o coding.o category.o ccl.o\ | 551 | charset.o coding.o category.o ccl.o\ |
| 539 | cm.o term.o xfaces.o $(XOBJ) \ | 552 | cm.o term.o xfaces.o $(XOBJ) \ |
| 540 | emacs.o keyboard.o macros.o keymap.o sysdep.o \ | 553 | emacs.o keyboard.o macros.o keymap.o sysdep.o \ |
| @@ -547,13 +560,14 @@ obj= dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o \ | |||
| 547 | process.o callproc.o \ | 560 | process.o callproc.o \ |
| 548 | region-cache.o sound.o atimer.o \ | 561 | region-cache.o sound.o atimer.o \ |
| 549 | doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \ | 562 | doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \ |
| 550 | $(MSDOS_OBJ) | 563 | $(MSDOS_OBJ) $(MAC_OBJ) |
| 551 | 564 | ||
| 552 | /* Object files used on some machine or other. | 565 | /* Object files used on some machine or other. |
| 553 | These go in the DOC file on all machines | 566 | These go in the DOC file on all machines |
| 554 | in case they are needed there. */ | 567 | in case they are needed there. */ |
| 555 | SOME_MACHINE_OBJECTS = sunfns.o dosfns.o msdos.o \ | 568 | SOME_MACHINE_OBJECTS = sunfns.o dosfns.o msdos.o \ |
| 556 | xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o | 569 | xterm.o xfns.o xmenu.o xselect.o xrdb.o \ |
| 570 | mac.o macterm.o macfns.o macmenu.o | ||
| 557 | 571 | ||
| 558 | 572 | ||
| 559 | #ifdef TERMINFO | 573 | #ifdef TERMINFO |
| @@ -1168,6 +1182,38 @@ composite.o: composite.c buffer.h charset.h $(INTERVAL_SRC) $(config_h) | |||
| 1168 | 1182 | ||
| 1169 | sunfns.o: sunfns.c buffer.h window.h dispextern.h $(config_h) | 1183 | sunfns.o: sunfns.c buffer.h window.h dispextern.h $(config_h) |
| 1170 | 1184 | ||
| 1185 | #ifdef HAVE_CARBON | ||
| 1186 | abbrev.o buffer.o callint.o cmds.o dispnew.o editfns.o fileio.o frame.o \ | ||
| 1187 | fontset.o indent.o insdel.o keyboard.o macros.o minibuf.o msdos.o process.o \ | ||
| 1188 | scroll.o sysdep.o term.o widget.o window.o xdisp.o xfaces.o xfns.o xmenu.o \ | ||
| 1189 | xterm.o xselect.o sound.o: macgui.h | ||
| 1190 | mac.o: mac.c process.h sysselect.h systime.h $(config_h) | ||
| 1191 | macfns.o: macfns.c charset.h macterm.h macgui.h frame.h window.h buffer.h \ | ||
| 1192 | dispextern.h macgui.h fontset.h $(INTERVAL_SRC) keyboard.h blockinput.h \ | ||
| 1193 | atimer.h systime.h epaths.h termhooks.h coding.h ccl.h systime.h $(config_h) | ||
| 1194 | macmenu.o: macmenu.c termhooks.h frame.h window.h dispextern.h macgui.h \ | ||
| 1195 | keyboard.h blockinput.h atimer.h systime.h buffer.h macterm.h $(config_h) | ||
| 1196 | macterm.o: blockinput.h atimer.h systime.h syssignal.h macterm.h macgui.h \ | ||
| 1197 | frame.h charset.h ccl.h dispextern.h fontset.h termhooks.h termopts.h \ | ||
| 1198 | termchar.h gnu.h disptab.h buffer.h window.h keyboard.h $(INTERVAL_SRC) \ | ||
| 1199 | process.h coding.h $(config_h) | ||
| 1200 | |||
| 1201 | macosx-app: ${emacsapp}Contents/MacOS/Emacs \ | ||
| 1202 | ${emacsapp}Contents/Resources/Emacs.rsrc | ||
| 1203 | |||
| 1204 | ${emacsapp}Contents/MacOS/Emacs: emacs | ||
| 1205 | if [ -d ${emacsapp}Contents/MacOS/ ]; then true; else \ | ||
| 1206 | mkdir ${emacsapp}Contents/MacOS/; \ | ||
| 1207 | fi | ||
| 1208 | cd ${emacsapp}Contents/MacOS/; cp ../../../../src/emacs Emacs | ||
| 1209 | |||
| 1210 | ${emacsapp}Contents/Resources/Emacs.rsrc: ../mac/src/Emacs.r | ||
| 1211 | /Developer/Tools/Rez -useDF -o \ | ||
| 1212 | ${emacsapp}Contents/Resources/Emacs.rsrc \ | ||
| 1213 | /System/Library/Frameworks/Carbon.framework/Headers/Carbon.r \ | ||
| 1214 | ../mac/src/Emacs.r | ||
| 1215 | #endif | ||
| 1216 | |||
| 1171 | ${libsrc}emacstool: ${libsrc}emacstool.c | 1217 | ${libsrc}emacstool: ${libsrc}emacstool.c |
| 1172 | cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool | 1218 | cd ${libsrc}; ${MAKE} ${MFLAGS} emacstool |
| 1173 | bootstrapclean: | 1219 | bootstrapclean: |