aboutsummaryrefslogtreecommitdiffstats
path: root/mac
diff options
context:
space:
mode:
authorKaroly Lorentey2005-03-06 13:31:20 +0000
committerKaroly Lorentey2005-03-06 13:31:20 +0000
commita0d878a9ccbfb7c68dd7cfbe05c2b71b9bd5c830 (patch)
tree79ba80d6f6c4b787c60b36ebcd87c1b26f0906e1 /mac
parentab455350da7728b0f8e1daf92c084092d8a04c29 (diff)
parentbe6e87e51aaa3a114bc4ff2ceccbc7c9aa2b30d0 (diff)
downloademacs-a0d878a9ccbfb7c68dd7cfbe05c2b71b9bd5c830.tar.gz
emacs-a0d878a9ccbfb7c68dd7cfbe05c2b71b9bd5c830.zip
Merged from miles@gnu.org--gnu-2005 (patch 34-36, 142-158)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-142 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-143 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-144 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-145 (make-text-button): Default button type if not specified * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-146 quick-install-emacs: Use mkdir --verbose only when requested * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-147 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-148 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-149 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-150 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-151 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-152 Add info/dir to arch branch * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-153 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-154 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-155 Merge from gnus--rel--5.10 * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-156 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-157 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-158 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-34 Merge from emacs--cvs-trunk--0 * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-35 Update from CVS * miles@gnu.org--gnu-2005/gnus--rel--5.10--patch-36 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-303
Diffstat (limited to 'mac')
-rw-r--r--mac/ChangeLog14
-rw-r--r--mac/INSTALL6
-rw-r--r--mac/inc/config.h2
-rw-r--r--mac/makefile.MPW45
-rw-r--r--mac/src/EmacsMPW.r14
5 files changed, 65 insertions, 16 deletions
diff --git a/mac/ChangeLog b/mac/ChangeLog
index a12d8bc4673..a0083af7e43 100644
--- a/mac/ChangeLog
+++ b/mac/ChangeLog
@@ -1,3 +1,17 @@
12005-03-05 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2
3 * INSTALL: Mention new target `NonCarbon'.
4
52005-03-04 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
6
7 * makefile.MPW (NonCarbon): New target. The target `Emacs' is now
8 used for the Carbon build that defines HAVE_CARBON.
9
10 * inc/config.h (HAVE_STDLIB_H): Define to 1.
11
12 * src/EmacsMPW.r (SIZE): Increase preferred memory size to 32MB.
13 [HAVE_CARBON] (crfg): New resource for extra stack space.
14
12004-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> 152004-12-24 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
2 16
3 * makefile.MPW: Add dependencies for fringe.c.x, image.c.x, and 17 * makefile.MPW: Add dependencies for fringe.c.x, image.c.x, and
diff --git a/mac/INSTALL b/mac/INSTALL
index 88306ae0573..4463b8f32e2 100644
--- a/mac/INSTALL
+++ b/mac/INSTALL
@@ -182,6 +182,12 @@ makefile.mpw. I.e., execute the commands
182 make Emacs -f makefile.MPW > Emacs.MakeScript 182 make Emacs -f makefile.MPW > Emacs.MakeScript
183 Emacs.MakeScript 183 Emacs.MakeScript
184 184
185The above commands create an executable that uses the Carbon API. The
186non-Carbon version can also be created by replacing all the
187occurrences of `Emacs' above with `NonCarbon'. Not that the
188non-Carbon version does not support some features such as file
189dialogs, drag-and-drop, and unicode menus.
190
185To build Emacs using CodeWarrior, start up the CodeWarrior IDE, choose 191To build Emacs using CodeWarrior, start up the CodeWarrior IDE, choose
186File->Import Project... and select the file cw6-mcp.xml. When 192File->Import Project... and select the file cw6-mcp.xml. When
187prompted to save the project, navigate to same directory as the file 193prompted to save the project, navigate to same directory as the file
diff --git a/mac/inc/config.h b/mac/inc/config.h
index 4f9d36c030c..c996cce4bfd 100644
--- a/mac/inc/config.h
+++ b/mac/inc/config.h
@@ -184,7 +184,7 @@ Boston, MA 02111-1307, USA. */
184/* #undef HAVE_TERMIOS_H */ 184/* #undef HAVE_TERMIOS_H */
185#define HAVE_LIMITS_H 1 185#define HAVE_LIMITS_H 1
186#define HAVE_STRING_H 1 186#define HAVE_STRING_H 1
187/* #undef HAVE_STDLIB_H */ 187#define HAVE_STDLIB_H 1
188/* #undef HAVE_TERMCAP_H */ 188/* #undef HAVE_TERMCAP_H */
189/* #undef HAVE_TERM_H */ 189/* #undef HAVE_TERM_H */
190/* #undef HAVE_STDIO_EXT_H */ 190/* #undef HAVE_STDIO_EXT_H */
diff --git a/mac/makefile.MPW b/mac/makefile.MPW
index 870052996b7..bd7ced4a14f 100644
--- a/mac/makefile.MPW
+++ b/mac/makefile.MPW
@@ -21,7 +21,8 @@
21# Boston, MA 02111-1307, USA. */ 21# Boston, MA 02111-1307, USA. */
22# 22#
23# Defines the following targets: 23# Defines the following targets:
24# Emacs (default) - normal Emacs build. 24# Emacs (default) - normal Carbon Emacs build.
25# NonCarbon - non-Carbon Emacs build.
25# Clean - remove all object and executable files to prepare for a fresh build. 26# Clean - remove all object and executable files to prepare for a fresh build.
26# Doc - generate the "DOC" file in ~emacs/etc/. 27# Doc - generate the "DOC" file in ~emacs/etc/.
27# Make-DocFile - build the make-docfile tool, utility for generating "DOC". 28# Make-DocFile - build the make-docfile tool, utility for generating "DOC".
@@ -38,7 +39,9 @@ Lisp = ::lisp: # emacs's lisp directory
38Make-DocFileDir = {Lib-Src} # directory containing make-docfile tool 39Make-DocFileDir = {Lib-Src} # directory containing make-docfile tool
39 40
40Makefile = makefile.MPW # self reference 41Makefile = makefile.MPW # self reference
42NonCarbonMakeOut = NonCarbon.MakeOut # temporary file for non-Carbon build script
41 43
44CarbonOption = -d HAVE_CARBON
42SymOption = # -sym on # remove hash mark before "-sym on" to enable source debugging 45SymOption = # -sym on # remove hash mark before "-sym on" to enable source debugging
43OptOption = # -opt speed # alternatively set to -opt off or -opt size 46OptOption = # -opt speed # alternatively set to -opt off or -opt size
44 47
@@ -47,7 +50,7 @@ OptOption = # -opt speed # alternatively set to -opt off or -opt size
47PPCCOptions = {SymOption} {OptOption} -noMapCR -enum int -alloca ¶ 50PPCCOptions = {SymOption} {OptOption} -noMapCR -enum int -alloca ¶
48 -typecheck relaxed -w off ¶ 51 -typecheck relaxed -w off ¶
49 -includes unix -i {Includes},{Src} ¶ 52 -includes unix -i {Includes},{Src} ¶
50 -d emacs=1 -d HAVE_CONFIG_H -d MAC_OS -d MAC_OS8 53 -d emacs=1 -d HAVE_CONFIG_H -d MAC_OS -d MAC_OS8 {CarbonOption}
51 54
52LinkOptions = {SymOption} -d 55LinkOptions = {SymOption} -d
53 56
@@ -132,29 +135,42 @@ MacObjects = ¶
132 "{Src}macmenu.c.x" ¶ 135 "{Src}macmenu.c.x" ¶
133 "{Src}macterm.c.x" 136 "{Src}macterm.c.x"
134 137
138StdLibraries = ¶
139 "{SharedLibraries}CarbonLib" ¶
140 "{SharedLibraries}StdCLib" ¶
141 "{PPCLibraries}StdCRuntime.o" ¶
142 "{PPCLibraries}PPCCRuntime.o"
143
144NonCarbonLibs = ¶
145 "{SharedLibraries}InterfaceLib" ¶
146 "{SharedLibraries}StdCLib" ¶
147 "{SharedLibraries}MathLib" ¶
148 "{SharedLibraries}AppleScriptLib" ¶
149 "{SharedLibraries}TextEncodingConverter" ¶
150 "{SharedLibraries}AppearanceLib" ¶
151 "{SharedLibraries}QuickTimeLib" ¶
152 "{PPCLibraries}StdCRuntime.o" ¶
153 "{PPCLibraries}PPCCRuntime.o" ¶
154 "{PPCLibraries}PPCToolLibs.o"
155
135# The next two are the dependency rules for building Emacs. 156# The next two are the dependency rules for building Emacs.
136 157
137Emacs ÄÄ {Makefile} {DocTarget}DOC {EmacsObjects} {MacObjects} 158Emacs ÄÄ {Makefile} {DocTarget}DOC {EmacsObjects} {MacObjects}
138 PPCLink ¶ 159 PPCLink ¶
139 {LinkOptions} ¶ 160 {LinkOptions} ¶
140 {EmacsObjects} {MacObjects} ¶ 161 {EmacsObjects} {MacObjects} ¶
141 "{SharedLibraries}InterfaceLib" ¶ 162 {StdLibraries} ¶
142 "{SharedLibraries}StdCLib" ¶
143 "{SharedLibraries}MathLib" ¶
144 "{SharedLibraries}AppleScriptLib" ¶
145 "{SharedLibraries}TextEncodingConverter" ¶
146 "{SharedLibraries}AppearanceLib" ¶
147 "{SharedLibraries}QuickTimeLib" ¶
148 "{PPCLibraries}StdCRuntime.o" ¶
149 "{PPCLibraries}PPCCRuntime.o" ¶
150 "{PPCLibraries}PPCToolLibs.o" ¶
151 -o "{EmacsTarget}" 163 -o "{EmacsTarget}"
152 164
153Emacs ÄÄ {Makefile} "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r 165Emacs ÄÄ {Makefile} "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
154 Rez -a "{Source}"Emacs.maclf.r -o "{EmacsTarget}" 166 Rez {CarbonOption} -a "{Source}"Emacs.maclf.r -o "{EmacsTarget}"
155 Rez -a "{Source}"EmacsMPW.maclf.r -o "{EmacsTarget}" 167 Rez {CarbonOption} -a "{Source}"EmacsMPW.maclf.r -o "{EmacsTarget}"
156 SetFile "{EmacsTarget}" -t APPL -c 'EMAx' -a B 168 SetFile "{EmacsTarget}" -t APPL -c 'EMAx' -a B
157 169
170NonCarbon Ä
171 Make -f "{Makefile}" -d CarbonOption="" -d StdLibraries='{NonCarbonLibs}' > "{NonCarbonMakeOut}"
172 "{NonCarbonMakeOut}"
173
158# Rez cannot handle files with Unix style end lines at all. So generate 174# Rez cannot handle files with Unix style end lines at all. So generate
159# them. It does not hurt if Emacs.r and EmacsMPW.r already have Mac end 175# them. It does not hurt if Emacs.r and EmacsMPW.r already have Mac end
160# lines. 176# lines.
@@ -951,6 +967,7 @@ Clean Ä
951 Delete -i stdout stderr 967 Delete -i stdout stderr
952 Delete -i {Make-DocFile-Objects} {Make-DocFileDir}make-docfile 968 Delete -i {Make-DocFile-Objects} {Make-DocFileDir}make-docfile
953 Delete -i "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r 969 Delete -i "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
970 Delete -i "{NonCarbonMakeOut}"
954 971
955DistClean Ä Clean 972DistClean Ä Clean
956 Delete -i "Emacs CW"Å 973 Delete -i "Emacs CW"Å
diff --git a/mac/src/EmacsMPW.r b/mac/src/EmacsMPW.r
index ad49ab3b76d..7db45ca4f80 100644
--- a/mac/src/EmacsMPW.r
+++ b/mac/src/EmacsMPW.r
@@ -42,6 +42,18 @@ resource 'SIZE' (-1) {
42 reserved, 42 reserved,
43 reserved, 43 reserved,
44 reserved, 44 reserved,
45 16777216, 45 33554432,
46 16777216 46 16777216
47}; 47};
48
49#ifdef HAVE_CARBON
50resource 'cfrg' (0) {
51 {
52 kPowerPCCFragArch, kIsCompleteCFrag, kNoVersionNum, kNoVersionNum,
53 311296, /* 48K (default) + 256K (EXTRA_STACK_ALLOC in macterm.c) */
54 kNoAppSubFolder,
55 kApplicationCFrag, kDataForkCFragLocator, kZeroOffset, kCFragGoesToEOF,
56 "",
57 }
58};
59#endif