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
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" "{Includes}macgui.h"
56 INTERVALS_H_GROUP = "{Src}intervals.h" "{Src}dispextern.h" "{Includes}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.
129 "{Source}macfns.c.x" ¶
130 "{Source}macmenu.c.x" ¶
131 "{Source}macterm.c.x"
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} ¶
372 "{Includes}macterm.h" ¶
373 "{Includes}macgui.h" ¶
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} ¶
485 "{Includes}macterm.h" ¶
486 "{Includes}macgui.h" ¶
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" ¶
559 "{Includes}macterm.h" ¶
560 "{Includes}macgui.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} ¶
737 "{Includes}macterm.h" ¶
738 "{Includes}macgui.h" ¶
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} ¶
777 "{Includes}macterm.h" ¶
778 "{Includes}macgui.h" ¶
787 {DISPEXTERN_H_GROUP} ¶
795 {INTERVALS_H_GROUP} ¶
800 "{Src}region-cache.h" ¶
802 "{Includes}macterm.h" ¶
803 "{Includes}macgui.h" ¶
808 "{Includes}sys:types.h" ¶
809 "{Includes}sys:stat.h" ¶
814 "{Includes}macterm.h" ¶
815 "{Includes}macgui.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"
856 "{Includes}macterm.h" ¶
857 "{Includes}macgui.h" ¶
862 {DISPEXTERN_H_GROUP} ¶
864 {INTERVALS_H_GROUP} ¶
866 {BLOCKINPUT_H_GROUP} ¶
867 "{Includes}epaths.h" ¶
872 "{Src}bitmaps:gray.xbm"
874 {Source}macterm.c Ä ¶
877 {BLOCKINPUT_H_GROUP} ¶
879 "{Includes}macterm.h" ¶
880 "{Includes}macgui.h" ¶
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:devanagari.elc ¶
1044 {Lisp}language:english.elc ¶
1045 {Lisp}language:ethiopic.elc ¶
1046 {Lisp}language:european.elc ¶
1047 {Lisp}language:czech.elc ¶
1048 {Lisp}language:slovak.elc ¶
1049 {Lisp}language:romanian.elc ¶
1050 {Lisp}language:greek.elc ¶
1051 {Lisp}language:hebrew.elc ¶
1052 {Lisp}language:japanese.elc ¶
1053 {Lisp}language:korean.elc ¶
1054 {Lisp}language:lao.elc ¶
1055 {Lisp}language:thai.elc ¶
1056 {Lisp}language:tibetan.elc ¶
1057 {Lisp}language:vietnamese.elc ¶
1058 {Lisp}language:misc-lang.elc ¶
1060 {Lisp}register.elc ¶
1065 {Lisp}term:tty-colors.elc ¶
1066 {Lisp}textmodes:fill.elc ¶
1067 {Lisp}textmodes:page.elc ¶
1068 {Lisp}textmodes:paragraphs.elc ¶
1069 {Lisp}textmodes:text-mode.elc ¶
1070 {Lisp}vc-hooks.elc ¶
1071 {Lisp}ediff-hook.elc ¶
1077 Doc Ä {DocTarget}DOC
1079 {DocTarget}DOC Ä {Makefile} {EmacsSource} {MacSource} {LispSource} {Make-DocFileDir}Make-DocFile
1080 {Make-DocFileDir}make-docfile {EmacsSource} > {DocTarget}DOC
1081 {Make-DocFileDir}make-docfile {MacSource} >> {DocTarget}DOC
1082 {Make-DocFileDir}make-docfile {LispSource} >> {DocTarget}DOC
1085 #-----------------------------------------------#
1086 # Variables and rules for target "Make-DocFile" #
1087 #-----------------------------------------------#
1089 Make-DocFile-Includes = -i :inc:
1092 Make-DocFile-PPCCOptions = -typecheck relaxed -w off -noMapCR ¶
1093 {Make-DocFile-Includes} {Make-DocFile-Sym}
1095 Make-DocFile-Objects = ¶
1096 "{Lib-Src}make-docfile.c.x" ¶
1099 Make-DocFile Ä {Make-DocFileDir}Make-DocFile
1101 {Make-DocFileDir}Make-DocFile Ä {Makefile} {Make-DocFile-Objects}
1103 -o {Make-DocFileDir}Make-DocFile ¶
1104 {Make-DocFile-Sym} ¶
1105 {Make-DocFile-Objects} ¶
1108 "{SharedLibraries}InterfaceLib" ¶
1109 "{SharedLibraries}StdCLib" ¶
1110 "{SharedLibraries}MathLib" ¶
1111 "{PPCLibraries}StdCRuntime.o" ¶
1112 "{PPCLibraries}PPCCRuntime.o" ¶
1113 "{PPCLibraries}PPCToolLibs.o"
1115 "{Lib-Src}make-docfile.c.x" Ä {Makefile} "{Lib-Src}make-docfile.c"
1116 {PPCC} "{Lib-Src}make-docfile.c" -o "{Lib-Src}make-docfile.c.x" {Make-DocFile-PPCCOptions}
1118 "{Source}chdir.c.x" Ä {Makefile} "{Source}chdir.c"
1119 {PPCC} "{Source}chdir.c" -o "{Source}chdir.c.x" {Make-DocFile-PPCCOptions}