1 # Make file for building GNU Emacs on the Macintosh.
2 # Copyright (C) 1999, 2000 Free Software Foundation, Inc.
4 # Author: Andrew Choi <akochoi@users.sourceforge.net>
6 # This file is part of GNU Emacs.
8 # GNU Emacs is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License as published by
10 # the Free Software Foundation; either version 2, or (at your option)
13 # GNU Emacs is distributed in the hope that it will be useful,
14 # but WITHOUT ANY WARRANTY; without even the implied warranty of
15 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 # GNU General Public License for more details.
18 # You should have received a copy of the GNU General Public License
19 # along with GNU Emacs; see the file COPYING. If not, write to
20 # the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
21 # Boston, MA 02111-1307, USA. */
23 # Defines the following targets:
24 # Emacs (default) - normal Emacs build.
25 # Clean - remove all object and executable files to prepare for a fresh build.
26 # Doc - generate the "DOC" file in ~emacs/etc/.
27 # Make-DocFile - build the make-docfile tool, utility for generating "DOC".
28 # PrepSource - prepare the source files after unstuffing the distribution.
29 # PrepDist - prepare for distribution: generate diff files; move mac-win.el to {Patches}.
31 Src = ::src: # emacs's src directory
32 Includes = :inc: # mac includes directory (common for MPW and CW)
33 Source = :src: # mac source directory
34 Lib-Src = ::lib-src: # ~emacs/lib-src directory, containing make-docfile.c
35 EmacsTarget = :Emacs MPW # pathname of target executable file
36 DocTarget = ::etc: # where the generated DOC file should be placed
37 Lisp = ::lisp: # emacs's lisp directory
38 Make-DocFileDir = {Lib-Src} # directory containing make-docfile tool
40 Makefile = makefile.MPW # self reference
42 SymOption = # -sym on # remove hash mark before "-sym on" to enable source debugging
43 OptOption = # -opt speed # alternatively set to -opt off or -opt size
45 # The -noMapCR options and the two -d's must not be removed.
47 PPCCOptions = {SymOption} {OptOption} -noMapCR -enum int ¶
48 -typecheck relaxed -w off ¶
49 -includes unix -i {Includes},{Src} ¶
50 -d emacs=1 -d HAVE_CONFIG_H -d MAC_OS -d MAC_OS8
52 LinkOptions = {SymOption} -d
54 CONFIG_H_GROUP = "{Includes}config.h" "{Includes}s-mac.h" "{Includes}utsname.h" "{Includes}m-mac.h"
55 DISPEXTERN_H_GROUP = "{Src}dispextern.h" "{Src}macgui.h"
56 INTERVALS_H_GROUP = "{Src}intervals.h" "{Src}dispextern.h" "{Src}macgui.h"
57 WINDOW_H_GROUP = "{Src}window.h" {DISPEXTERN_H_GROUP}
58 BLOCKINPUT_H_GROUP = "{Src}blockinput.h" "{Src}atimer.h" "{Src}systime.h" ¶
59 "{Includes}sys:time.h" "{Includes}sys:time.h"
61 # The list all object files from the GNU Emacs 21.0 distribution.
72 "{Src}casefiddle.c.x" ¶
80 "{Src}composite.c.x" ¶
95 "{Src}getloadavg.c.x" ¶
98 "{Src}intervals.c.x" ¶
110 "{Src}region-cache.c.x" ¶
113 "{Src}strftime.c.x" ¶
118 "{Src}textprop.c.x" ¶
125 # The list of object files generated from new source files of the Macintosh port.
133 # The next two are the dependency rules for building Emacs.
135 Emacs ÄÄ {Makefile} {DocTarget}DOC {EmacsObjects} {MacObjects}
138 {EmacsObjects} {MacObjects} ¶
139 "{SharedLibraries}InterfaceLib" ¶
140 "{SharedLibraries}StdCLib" ¶
141 "{SharedLibraries}MathLib" ¶
142 "{SharedLibraries}AppleScriptLib" ¶
143 "{SharedLibraries}TextEncodingConverter" ¶
144 "{SharedLibraries}AppearanceLib" ¶
145 "{PPCLibraries}StdCRuntime.o" ¶
146 "{PPCLibraries}PPCCRuntime.o" ¶
147 "{PPCLibraries}PPCToolLibs.o" ¶
150 Emacs ÄÄ {Makefile} "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
151 Rez -a "{Source}"Emacs.maclf.r -o "{EmacsTarget}"
152 Rez -a "{Source}"EmacsMPW.maclf.r -o "{EmacsTarget}"
153 SetFile "{EmacsTarget}" -t APPL -c 'EMAx' -a B
155 # Rez cannot handle files with Unix style end lines at all. So generate
156 # them. It does not hurt if Emacs.r and EmacsMPW.r already have Mac end
159 "{Source}"Emacs.maclf.r Ä "{Source}"Emacs.r
160 translate ¶0x0a ¶n < "{Source}"Emacs.r > "{Source}"Emacs.maclf.r
162 "{Source}"EmacsMPW.maclf.r Ä "{Source}"EmacsMPW.r
163 translate ¶0x0a ¶n < "{Source}"EmacsMPW.r > "{Source}"EmacsMPW.maclf.r
165 # Here comes a long boring list of rules saying which files depend on which
166 # other ones. I generated them by hand using the "-p" option of the MrC compiler.
167 # Know about MakeMake, but this is probably more accurate.
181 {INTERVALS_H_GROUP} ¶
186 {BLOCKINPUT_H_GROUP} ¶
201 "{Includes}sys:time.h" ¶
202 {BLOCKINPUT_H_GROUP} ¶
204 "{Includes}sys:time.h"
208 "{Includes}sys:types.h" ¶
209 "{Includes}sys:stat.h" ¶
210 "{Includes}sys:param.h" ¶
212 {INTERVALS_H_GROUP} ¶
217 "{Src}region-cache.h" ¶
219 {BLOCKINPUT_H_GROUP} ¶
222 {Src}bytecode.c.x Ä ¶
237 {Src}callproc.c.x Ä ¶
239 "{Includes}sys:types.h" ¶
240 "{Includes}sys:file.h" ¶
241 "{Includes}sys:types.h" ¶
242 "{Includes}sys:stat.h" ¶
250 "{Includes}epaths.h" ¶
271 {Src}category.c.x Ä ¶
287 "{Includes}sys:types.h" ¶
321 {Src}composite.c.x Ä ¶
340 "{Includes}sys:types.h" ¶
341 "{Includes}sys:stat.h" ¶
343 "{Includes}sys:time.h" ¶
344 "{Includes}dirent.h" ¶
359 {DISPEXTERN_H_GROUP} ¶
367 {INTERVALS_H_GROUP} ¶
368 {BLOCKINPUT_H_GROUP} ¶
379 "{Includes}sys:types.h" ¶
380 "{Includes}sys:file.h" ¶
393 "{Includes}sys:types.h" ¶
396 {INTERVALS_H_GROUP} ¶
403 "{Includes}sys:time.h"
407 "{Includes}sys:types.h" ¶
408 "{Includes}sys:file.h" ¶
409 "{Includes}sys:types.h" ¶
410 "{Includes}sys:stat.h" ¶
413 {INTERVALS_H_GROUP} ¶
416 "{Includes}termio.h" ¶
417 {BLOCKINPUT_H_GROUP} ¶
427 {BLOCKINPUT_H_GROUP} ¶
434 "{Includes}sys:types.h" ¶
435 "{Includes}sys:stat.h" ¶
438 {INTERVALS_H_GROUP} ¶
445 "{Includes}sys:time.h" ¶
448 {Src}filemode.c.x Ä ¶
450 "{Includes}sys:types.h" ¶
451 "{Includes}sys:stat.h"
453 {Src}floatfns.c.x Ä ¶
465 {INTERVALS_H_GROUP} ¶
476 {DISPEXTERN_H_GROUP} ¶
491 {DISPEXTERN_H_GROUP} ¶
497 {Src}getloadavg.c.x Ä ¶
499 "{Includes}sys:types.h"
513 {INTERVALS_H_GROUP} ¶
514 "{Src}region-cache.h"
519 {INTERVALS_H_GROUP} ¶
523 {BLOCKINPUT_H_GROUP} ¶
524 "{Src}region-cache.h"
526 {Src}intervals.c.x Ä ¶
529 {INTERVALS_H_GROUP} ¶
534 {Src}keyboard.c.x Ä ¶
546 {DISPEXTERN_H_GROUP} ¶
549 {INTERVALS_H_GROUP} ¶
550 {BLOCKINPUT_H_GROUP} ¶
554 "{Includes}sys:ioctl.h" ¶
557 "{Includes}termio.h" ¶
558 "{Includes}sys:types.h" ¶
572 {BLOCKINPUT_H_GROUP} ¶
578 "{Includes}sys:types.h" ¶
579 "{Includes}sys:stat.h" ¶
580 "{Includes}sys:file.h" ¶
582 {INTERVALS_H_GROUP} ¶
585 "{Includes}epaths.h" ¶
611 {DISPEXTERN_H_GROUP} ¶
619 "{Includes}sys:types.h"
629 {DISPEXTERN_H_GROUP} ¶
636 "{Includes}sys:types.h" ¶
639 "{Includes}sys:time.h" ¶
648 "{Includes}sys:types.h" ¶
656 {Src}region-cache.c.x Ä ¶
660 "{Src}region-cache.h"
666 {DISPEXTERN_H_GROUP} ¶
677 "{Src}region-cache.h" ¶
679 {BLOCKINPUT_H_GROUP} ¶
680 {INTERVALS_H_GROUP} ¶
681 "{Includes}sys:types.h" ¶
684 {Src}strftime.c.x Ä ¶
686 "{Includes}sys:types.h" ¶
687 "{Includes}sys:time.h"
696 {INTERVALS_H_GROUP} ¶
702 {BLOCKINPUT_H_GROUP} ¶
703 "{Includes}sys:types.h" ¶
704 "{Includes}sys:stat.h" ¶
705 "{Includes}sys:ioctl.h" ¶
707 "{Includes}sys:types.h" ¶
713 {DISPEXTERN_H_GROUP} ¶
717 "{Includes}utime.h" ¶
719 "{Includes}dirent.h" ¶
720 "{Includes}sys:types.h"
734 {DISPEXTERN_H_GROUP} ¶
744 "{Includes}sys:file.h"
746 {Src}textproc.c.x Ä ¶
749 {INTERVALS_H_GROUP} ¶
774 {DISPEXTERN_H_GROUP} ¶
775 {BLOCKINPUT_H_GROUP} ¶
776 {INTERVALS_H_GROUP} ¶
787 {DISPEXTERN_H_GROUP} ¶
795 {INTERVALS_H_GROUP} ¶
800 "{Src}region-cache.h" ¶
808 "{Includes}sys:types.h" ¶
809 "{Includes}sys:stat.h" ¶
818 {DISPEXTERN_H_GROUP} ¶
819 {BLOCKINPUT_H_GROUP} ¶
821 {INTERVALS_H_GROUP} ¶
831 {BLOCKINPUT_H_GROUP} ¶
833 "{Includes}sys:types.h" ¶
838 "{Includes}utime.h" ¶
839 "{Includes}dirent.h" ¶
840 "{Includes}sys:types.h" ¶
841 "{Includes}sys:stat.h" ¶
843 "{Includes}sys:types.h" ¶
844 "{Includes}sys:param.h" ¶
849 "{Includes}sys:time.h" ¶
850 "{Includes}utsname.h"
862 {DISPEXTERN_H_GROUP} ¶
864 {INTERVALS_H_GROUP} ¶
866 {BLOCKINPUT_H_GROUP} ¶
867 "{Includes}epaths.h" ¶
872 "{Src}bitmaps:gray.xbm"
877 {BLOCKINPUT_H_GROUP} ¶
882 "{Includes}alloca.h" ¶
883 "{Includes}sys:types.h" ¶
885 "{Includes}termio.h" ¶
887 "{Includes}sys:stat.h" ¶
891 {DISPEXTERN_H_GROUP} ¶
901 {INTERVALS_H_GROUP} ¶
906 "{Includes}epaths.h" ¶
912 #----------------------------------------#
913 # Variables and rules for target "Clean" #
914 #----------------------------------------#
917 Delete -i {EmacsObjects} {MacObjects}
918 Delete -i "{EmacsTarget}"
919 Delete -i stdout stderr
920 Delete -i {Make-DocFile-Objects} {Make-DocFileDir}make-docfile
921 Delete -i "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
924 Delete -i "Emacs CW"Å
925 Delete -y "emacs Data"
928 #--------------------------------------#
929 # Variables and rules for target "Doc" #
930 #--------------------------------------#
941 "{Src}casefiddle.c" ¶
964 "{Src}getloadavg.c" ¶
978 "{Src}region-cache.c" ¶
1001 {Lisp}menu-bar.elc ¶
1004 {Lisp}scroll-bar.elc ¶
1006 {Lisp}vms-patch.elc ¶
1011 {Lisp}disp-table.elc ¶
1012 {Lisp}dos-vars.elc ¶
1013 {Lisp}international:ccl.elc ¶
1014 {Lisp}international:codepage.elc ¶
1016 {Lisp}buff-menu.elc ¶
1017 {Lisp}byte-run.elc ¶
1018 {Lisp}cus-start.el ¶
1020 {Lisp}emacs-lisp:lisp-mode.elc ¶
1021 {Lisp}emacs-lisp:lisp.elc ¶
1022 {Lisp}facemenu.elc ¶
1025 {Lisp}float-sup.elc ¶
1033 {Lisp}bindings.elc ¶
1035 {Lisp}international:mule.elc ¶
1036 {Lisp}international:mule-conf.el ¶
1037 {Lisp}international:mule-cmds.elc ¶
1038 {Lisp}international:characters.elc ¶
1039 {Lisp}case-table.elc ¶
1040 {Lisp}language:chinese.elc ¶
1041 {Lisp}language:cyrillic.elc ¶
1042 {Lisp}language:indian.elc ¶
1043 {Lisp}language:ethiopic.elc ¶
1044 {Lisp}language:european.elc ¶
1045 {Lisp}language:tibetan.elc ¶
1046 {Lisp}language:vietnamese.elc ¶
1048 {Lisp}register.elc ¶
1053 {Lisp}term:tty-colors.elc ¶
1054 {Lisp}textmodes:fill.elc ¶
1055 {Lisp}textmodes:page.elc ¶
1056 {Lisp}textmodes:paragraphs.elc ¶
1057 {Lisp}textmodes:text-mode.elc ¶
1058 {Lisp}vc-hooks.elc ¶
1059 {Lisp}ediff-hook.elc ¶
1064 LispSourceDontCompile = ¶
1065 {Lisp}language:devanagari.el ¶
1066 {Lisp}language:english.el ¶
1067 {Lisp}language:czech.el ¶
1068 {Lisp}language:slovak.el ¶
1069 {Lisp}language:romanian.el ¶
1070 {Lisp}language:greek.el ¶
1071 {Lisp}language:hebrew.el ¶
1072 {Lisp}language:japanese.el ¶
1073 {Lisp}language:korean.el ¶
1074 {Lisp}language:lao.el ¶
1075 {Lisp}language:thai.el ¶
1076 {Lisp}language:misc-lang.el
1078 Doc Ä {DocTarget}DOC
1080 {DocTarget}DOC Ä {Makefile} {EmacsSource} {MacSource} {LispSource} {LispSourceDontCompile} {Make-DocFileDir}Make-DocFile
1081 {Make-DocFileDir}make-docfile {EmacsSource} > {DocTarget}DOC
1082 {Make-DocFileDir}make-docfile {MacSource} >> {DocTarget}DOC
1083 {Make-DocFileDir}make-docfile {LispSource} >> {DocTarget}DOC
1084 {Make-DocFileDir}make-docfile {LispSourceDontCompile} >> {DocTarget}DOC
1087 #-----------------------------------------------#
1088 # Variables and rules for target "Make-DocFile" #
1089 #-----------------------------------------------#
1091 Make-DocFile-Includes = -i :inc:
1094 Make-DocFile-PPCCOptions = -typecheck relaxed -w off -noMapCR ¶
1095 {Make-DocFile-Includes} {Make-DocFile-Sym}
1097 Make-DocFile-Objects = ¶
1098 "{Lib-Src}make-docfile.c.x" ¶
1101 Make-DocFile Ä {Make-DocFileDir}Make-DocFile
1103 {Make-DocFileDir}Make-DocFile Ä {Makefile} {Make-DocFile-Objects}
1105 -o {Make-DocFileDir}Make-DocFile ¶
1106 {Make-DocFile-Sym} ¶
1107 {Make-DocFile-Objects} ¶
1110 "{SharedLibraries}InterfaceLib" ¶
1111 "{SharedLibraries}StdCLib" ¶
1112 "{SharedLibraries}MathLib" ¶
1113 "{PPCLibraries}StdCRuntime.o" ¶
1114 "{PPCLibraries}PPCCRuntime.o" ¶
1115 "{PPCLibraries}PPCToolLibs.o"
1117 "{Lib-Src}make-docfile.c.x" Ä {Makefile} "{Lib-Src}make-docfile.c"
1118 {PPCC} "{Lib-Src}make-docfile.c" -o "{Lib-Src}make-docfile.c.x" {Make-DocFile-PPCCOptions}
1120 "{Source}chdir.c.x" Ä {Makefile} "{Source}chdir.c"
1121 {PPCC} "{Source}chdir.c" -o "{Source}chdir.c.x" {Make-DocFile-PPCCOptions}