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" ¶
107 "{Src}mocklisp.c.x" ¶
111 "{Src}region-cache.c.x" ¶
114 "{Src}strftime.c.x" ¶
119 "{Src}textprop.c.x" ¶
126 # The list of object files generated from new source files of the Macintosh port.
130 "{Source}macfns.c.x" ¶
131 "{Source}macmenu.c.x" ¶
132 "{Source}macterm.c.x"
134 # The next two are the dependency rules for building Emacs.
136 Emacs ÄÄ {Makefile} {DocTarget}DOC {EmacsObjects} {MacObjects}
139 {EmacsObjects} {MacObjects} ¶
140 "{SharedLibraries}InterfaceLib" ¶
141 "{SharedLibraries}StdCLib" ¶
142 "{SharedLibraries}MathLib" ¶
143 "{SharedLibraries}AppleScriptLib" ¶
144 "{SharedLibraries}TextEncodingConverter" ¶
145 "{SharedLibraries}AppearanceLib" ¶
146 "{PPCLibraries}StdCRuntime.o" ¶
147 "{PPCLibraries}PPCCRuntime.o" ¶
148 "{PPCLibraries}PPCToolLibs.o" ¶
151 Emacs ÄÄ {Makefile} "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
152 Rez -a "{Source}"Emacs.maclf.r -o "{EmacsTarget}"
153 Rez -a "{Source}"EmacsMPW.maclf.r -o "{EmacsTarget}"
154 SetFile "{EmacsTarget}" -t APPL -c 'EMAx' -a B
156 # Rez cannot handle files with Unix style end lines at all. So generate
157 # them. It does not hurt if Emacs.r and EmacsMPW.r already have Mac end
160 "{Source}"Emacs.maclf.r Ä "{Source}"Emacs.r
161 translate ¶0x0a ¶n < "{Source}"Emacs.r > "{Source}"Emacs.maclf.r
163 "{Source}"EmacsMPW.maclf.r Ä "{Source}"EmacsMPW.r
164 translate ¶0x0a ¶n < "{Source}"EmacsMPW.r > "{Source}"EmacsMPW.maclf.r
166 # Here comes a long boring list of rules saying which files depend on which
167 # other ones. I generated them by hand using the "-p" option of the MrC compiler.
168 # Know about MakeMake, but this is probably more accurate.
182 {INTERVALS_H_GROUP} ¶
187 {BLOCKINPUT_H_GROUP} ¶
202 "{Includes}sys:time.h" ¶
203 {BLOCKINPUT_H_GROUP} ¶
205 "{Includes}sys:time.h"
209 "{Includes}sys:types.h" ¶
210 "{Includes}sys:stat.h" ¶
211 "{Includes}sys:param.h" ¶
213 {INTERVALS_H_GROUP} ¶
218 "{Src}region-cache.h" ¶
220 {BLOCKINPUT_H_GROUP} ¶
223 {Src}bytecode.c.x Ä ¶
239 {Src}callproc.c.x Ä ¶
241 "{Includes}sys:types.h" ¶
242 "{Includes}sys:file.h" ¶
243 "{Includes}sys:types.h" ¶
244 "{Includes}sys:stat.h" ¶
252 "{Includes}epaths.h" ¶
273 {Src}category.c.x Ä ¶
289 "{Includes}sys:types.h" ¶
323 {Src}composite.c.x Ä ¶
342 "{Includes}sys:types.h" ¶
343 "{Includes}sys:stat.h" ¶
345 "{Includes}sys:time.h" ¶
346 "{Includes}dirent.h" ¶
361 {DISPEXTERN_H_GROUP} ¶
369 {INTERVALS_H_GROUP} ¶
370 {BLOCKINPUT_H_GROUP} ¶
374 "{Includes}macterm.h" ¶
375 "{Includes}macgui.h" ¶
381 "{Includes}sys:types.h" ¶
382 "{Includes}sys:file.h" ¶
395 "{Includes}sys:types.h" ¶
398 {INTERVALS_H_GROUP} ¶
405 "{Includes}sys:time.h"
409 "{Includes}sys:types.h" ¶
410 "{Includes}sys:file.h" ¶
411 "{Includes}sys:types.h" ¶
412 "{Includes}sys:stat.h" ¶
415 {INTERVALS_H_GROUP} ¶
418 "{Includes}termio.h" ¶
419 {BLOCKINPUT_H_GROUP} ¶
429 {BLOCKINPUT_H_GROUP} ¶
436 "{Includes}sys:types.h" ¶
437 "{Includes}sys:stat.h" ¶
440 {INTERVALS_H_GROUP} ¶
447 "{Includes}sys:time.h" ¶
450 {Src}filemode.c.x Ä ¶
452 "{Includes}sys:types.h" ¶
453 "{Includes}sys:stat.h"
455 {Src}floatfns.c.x Ä ¶
467 {INTERVALS_H_GROUP} ¶
478 {DISPEXTERN_H_GROUP} ¶
487 "{Includes}macterm.h" ¶
488 "{Includes}macgui.h" ¶
493 {DISPEXTERN_H_GROUP} ¶
499 {Src}getloadavg.c.x Ä ¶
501 "{Includes}sys:types.h"
515 {INTERVALS_H_GROUP} ¶
516 "{Src}region-cache.h"
521 {INTERVALS_H_GROUP} ¶
525 {BLOCKINPUT_H_GROUP} ¶
526 "{Src}region-cache.h"
528 {Src}intervals.c.x Ä ¶
531 {INTERVALS_H_GROUP} ¶
536 {Src}keyboard.c.x Ä ¶
548 {DISPEXTERN_H_GROUP} ¶
551 {INTERVALS_H_GROUP} ¶
552 {BLOCKINPUT_H_GROUP} ¶
556 "{Includes}sys:ioctl.h" ¶
559 "{Includes}termio.h" ¶
560 "{Includes}sys:types.h" ¶
561 "{Includes}macterm.h" ¶
562 "{Includes}macgui.h" ¶
574 {BLOCKINPUT_H_GROUP} ¶
580 "{Includes}sys:types.h" ¶
581 "{Includes}sys:stat.h" ¶
582 "{Includes}sys:file.h" ¶
584 {INTERVALS_H_GROUP} ¶
587 "{Includes}epaths.h" ¶
613 {DISPEXTERN_H_GROUP} ¶
621 "{Includes}sys:types.h"
623 {Src}mocklisp.c.x Ä ¶
636 {DISPEXTERN_H_GROUP} ¶
643 "{Includes}sys:types.h" ¶
646 "{Includes}sys:time.h" ¶
655 "{Includes}sys:types.h" ¶
663 {Src}region-cache.c.x Ä ¶
667 "{Src}region-cache.h"
673 {DISPEXTERN_H_GROUP} ¶
684 "{Src}region-cache.h" ¶
686 {BLOCKINPUT_H_GROUP} ¶
687 {INTERVALS_H_GROUP} ¶
688 "{Includes}sys:types.h" ¶
691 {Src}strftime.c.x Ä ¶
693 "{Includes}sys:types.h" ¶
694 "{Includes}sys:time.h"
703 {INTERVALS_H_GROUP} ¶
709 {BLOCKINPUT_H_GROUP} ¶
710 "{Includes}sys:types.h" ¶
711 "{Includes}sys:stat.h" ¶
712 "{Includes}sys:ioctl.h" ¶
714 "{Includes}sys:types.h" ¶
720 {DISPEXTERN_H_GROUP} ¶
724 "{Includes}utime.h" ¶
726 "{Includes}dirent.h" ¶
727 "{Includes}sys:types.h"
741 {DISPEXTERN_H_GROUP} ¶
744 "{Includes}macterm.h" ¶
745 "{Includes}macgui.h" ¶
751 "{Includes}sys:file.h"
753 {Src}textproc.c.x Ä ¶
756 {INTERVALS_H_GROUP} ¶
781 {DISPEXTERN_H_GROUP} ¶
782 {BLOCKINPUT_H_GROUP} ¶
783 {INTERVALS_H_GROUP} ¶
784 "{Includes}macterm.h" ¶
785 "{Includes}macgui.h" ¶
794 {DISPEXTERN_H_GROUP} ¶
802 {INTERVALS_H_GROUP} ¶
807 "{Src}region-cache.h" ¶
809 "{Includes}macterm.h" ¶
810 "{Includes}macgui.h" ¶
815 "{Includes}sys:types.h" ¶
816 "{Includes}sys:stat.h" ¶
821 "{Includes}macterm.h" ¶
822 "{Includes}macgui.h" ¶
825 {DISPEXTERN_H_GROUP} ¶
826 {BLOCKINPUT_H_GROUP} ¶
828 {INTERVALS_H_GROUP} ¶
838 {BLOCKINPUT_H_GROUP} ¶
840 "{Includes}sys:types.h" ¶
845 "{Includes}utime.h" ¶
846 "{Includes}dirent.h" ¶
847 "{Includes}sys:types.h" ¶
848 "{Includes}sys:stat.h" ¶
850 "{Includes}sys:types.h" ¶
851 "{Includes}sys:param.h" ¶
856 "{Includes}sys:time.h" ¶
857 "{Includes}utsname.h"
863 "{Includes}macterm.h" ¶
864 "{Includes}macgui.h" ¶
869 {DISPEXTERN_H_GROUP} ¶
871 {INTERVALS_H_GROUP} ¶
873 {BLOCKINPUT_H_GROUP} ¶
874 "{Includes}epaths.h" ¶
879 "{Src}bitmaps:gray.xbm"
881 {Source}macterm.c Ä ¶
884 {BLOCKINPUT_H_GROUP} ¶
886 "{Includes}macterm.h" ¶
887 "{Includes}macgui.h" ¶
889 "{Includes}alloca.h" ¶
890 "{Includes}sys:types.h" ¶
892 "{Includes}termio.h" ¶
894 "{Includes}sys:stat.h" ¶
898 {DISPEXTERN_H_GROUP} ¶
908 {INTERVALS_H_GROUP} ¶
913 "{Includes}epaths.h" ¶
919 #----------------------------------------#
920 # Variables and rules for target "Clean" #
921 #----------------------------------------#
924 Delete -i {EmacsObjects} {MacObjects}
925 Delete -i "{EmacsTarget}"
926 Delete -i stdout stderr
927 Delete -i {Make-DocFile-Objects} {Make-DocFileDir}make-docfile
928 Delete -i "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
931 Delete -i "Emacs CW"Å
932 Delete -y "emacs Data"
935 #--------------------------------------#
936 # Variables and rules for target "Doc" #
937 #--------------------------------------#
948 "{Src}casefiddle.c" ¶
971 "{Src}getloadavg.c" ¶
986 "{Src}region-cache.c" ¶
1004 "{Source}macfns.c" ¶
1012 {Lisp}scroll-bar.el ¶
1014 {Lisp}vms-patch.el ¶
1019 {Lisp}disp-table.el ¶
1021 {Lisp}international:ccl.el ¶
1022 {Lisp}international:codepage.el ¶
1024 {Lisp}buff-menu.el ¶
1026 {Lisp}cus-start.el ¶
1028 {Lisp}emacs-lisp:lisp-mode.el ¶
1029 {Lisp}emacs-lisp:lisp.el ¶
1033 {Lisp}float-sup.el ¶
1043 {Lisp}international:mule.el ¶
1044 {Lisp}international:mule-conf.el ¶
1045 {Lisp}international:mule-cmds.el ¶
1046 {Lisp}international:characters.el ¶
1047 {Lisp}case-table.el ¶
1048 {Lisp}language:chinese.el ¶
1049 {Lisp}language:cyrillic.el ¶
1050 {Lisp}language:indian.el ¶
1051 {Lisp}language:devanagari.el ¶
1052 {Lisp}language:english.el ¶
1053 {Lisp}language:ethiopic.el ¶
1054 {Lisp}language:european.el ¶
1055 {Lisp}language:czech.el ¶
1056 {Lisp}language:slovak.el ¶
1057 {Lisp}language:romanian.el ¶
1058 {Lisp}language:greek.el ¶
1059 {Lisp}language:hebrew.el ¶
1060 {Lisp}language:japanese.el ¶
1061 {Lisp}language:korean.el ¶
1062 {Lisp}language:lao.el ¶
1063 {Lisp}language:thai.el ¶
1064 {Lisp}language:tibetan.el ¶
1065 {Lisp}language:vietnamese.el ¶
1066 {Lisp}language:misc-lang.el ¶
1073 {Lisp}term:tty-colors.el ¶
1074 {Lisp}textmodes:fill.el ¶
1075 {Lisp}textmodes:page.el ¶
1076 {Lisp}textmodes:paragraphs.el ¶
1077 {Lisp}textmodes:text-mode.el ¶
1079 {Lisp}ediff-hook.el ¶
1085 Doc Ä {DocTarget}DOC
1087 {DocTarget}DOC Ä {Makefile} {EmacsSource} {MacSource} {LispSource} {Make-DocFileDir}Make-DocFile
1088 {Make-DocFileDir}make-docfile {EmacsSource} > {DocTarget}DOC
1089 {Make-DocFileDir}make-docfile {MacSource} >> {DocTarget}DOC
1090 {Make-DocFileDir}make-docfile {LispSource} >> {DocTarget}DOC
1093 #-----------------------------------------------#
1094 # Variables and rules for target "Make-DocFile" #
1095 #-----------------------------------------------#
1097 Make-DocFile-Includes = -i :inc:
1100 Make-DocFile-PPCCOptions = -typecheck relaxed -w off -noMapCR ¶
1101 {Make-DocFile-Includes} {Make-DocFile-Sym}
1103 Make-DocFile-Objects = ¶
1104 "{Lib-Src}make-docfile.c.x" ¶
1107 Make-DocFile Ä {Make-DocFileDir}Make-DocFile
1109 {Make-DocFileDir}Make-DocFile Ä {Makefile} {Make-DocFile-Objects}
1111 -o {Make-DocFileDir}Make-DocFile ¶
1112 {Make-DocFile-Sym} ¶
1113 {Make-DocFile-Objects} ¶
1116 "{SharedLibraries}InterfaceLib" ¶
1117 "{SharedLibraries}StdCLib" ¶
1118 "{SharedLibraries}MathLib" ¶
1119 "{PPCLibraries}StdCRuntime.o" ¶
1120 "{PPCLibraries}PPCCRuntime.o" ¶
1121 "{PPCLibraries}PPCToolLibs.o"
1123 "{Lib-Src}make-docfile.c.x" Ä {Makefile} "{Lib-Src}make-docfile.c"
1124 {PPCC} "{Lib-Src}make-docfile.c" -o "{Lib-Src}make-docfile.c.x" {Make-DocFile-PPCCOptions}
1126 "{Source}chdir.c.x" Ä {Makefile} "{Source}chdir.c"
1127 {PPCC} "{Source}chdir.c" -o "{Source}chdir.c.x" {Make-DocFile-PPCCOptions}