aboutsummaryrefslogtreecommitdiffstats
path: root/mac/makefile.MPW
diff options
context:
space:
mode:
Diffstat (limited to 'mac/makefile.MPW')
-rw-r--r--mac/makefile.MPW45
1 files changed, 31 insertions, 14 deletions
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"Å