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 {BLOCKINPUT_H_GROUP} ¶
492 {DISPEXTERN_H_GROUP} ¶
498 {Src}getloadavg.c.x Ä ¶
500 "{Includes}sys:types.h"
514 {INTERVALS_H_GROUP} ¶
515 "{Src}region-cache.h"
520 {INTERVALS_H_GROUP} ¶
524 {BLOCKINPUT_H_GROUP} ¶
525 "{Src}region-cache.h"
527 {Src}intervals.c.x Ä ¶
530 {INTERVALS_H_GROUP} ¶
535 {Src}keyboard.c.x Ä ¶
547 {DISPEXTERN_H_GROUP} ¶
550 {INTERVALS_H_GROUP} ¶
551 {BLOCKINPUT_H_GROUP} ¶
555 "{Includes}sys:ioctl.h" ¶
558 "{Includes}termio.h" ¶
559 "{Includes}sys:types.h" ¶
573 {BLOCKINPUT_H_GROUP} ¶
579 "{Includes}sys:types.h" ¶
580 "{Includes}sys:stat.h" ¶
581 "{Includes}sys:file.h" ¶
583 {INTERVALS_H_GROUP} ¶
586 "{Includes}epaths.h" ¶
612 {DISPEXTERN_H_GROUP} ¶
620 "{Includes}sys:types.h"
630 {DISPEXTERN_H_GROUP} ¶
637 "{Includes}sys:types.h" ¶
640 "{Includes}sys:time.h" ¶
649 "{Includes}sys:types.h" ¶
657 {Src}region-cache.c.x Ä ¶
661 "{Src}region-cache.h"
667 {DISPEXTERN_H_GROUP} ¶
678 "{Src}region-cache.h" ¶
680 {BLOCKINPUT_H_GROUP} ¶
681 {INTERVALS_H_GROUP} ¶
682 "{Includes}sys:types.h" ¶
685 {Src}strftime.c.x Ä ¶
687 "{Includes}sys:types.h" ¶
688 "{Includes}sys:time.h"
697 {INTERVALS_H_GROUP} ¶
703 {BLOCKINPUT_H_GROUP} ¶
704 "{Includes}sys:types.h" ¶
705 "{Includes}sys:stat.h" ¶
706 "{Includes}sys:ioctl.h" ¶
708 "{Includes}sys:types.h" ¶
714 {DISPEXTERN_H_GROUP} ¶
718 "{Includes}utime.h" ¶
720 "{Includes}dirent.h" ¶
721 "{Includes}sys:types.h"
735 {DISPEXTERN_H_GROUP} ¶
745 "{Includes}sys:file.h"
747 {Src}textproc.c.x Ä ¶
750 {INTERVALS_H_GROUP} ¶
775 {DISPEXTERN_H_GROUP} ¶
776 {BLOCKINPUT_H_GROUP} ¶
777 {INTERVALS_H_GROUP} ¶
788 {DISPEXTERN_H_GROUP} ¶
794 {BLOCKINPUT_H_GROUP} ¶
797 {INTERVALS_H_GROUP} ¶
803 "{Src}region-cache.h" ¶
811 "{Includes}sys:types.h" ¶
812 "{Includes}sys:stat.h" ¶
821 {DISPEXTERN_H_GROUP} ¶
822 {BLOCKINPUT_H_GROUP} ¶
824 {INTERVALS_H_GROUP} ¶
834 {BLOCKINPUT_H_GROUP} ¶
836 "{Includes}sys:types.h" ¶
841 "{Includes}utime.h" ¶
842 "{Includes}dirent.h" ¶
843 "{Includes}sys:types.h" ¶
844 "{Includes}sys:stat.h" ¶
846 "{Includes}sys:types.h" ¶
847 "{Includes}sys:param.h" ¶
852 "{Includes}sys:time.h" ¶
853 "{Includes}utsname.h"
865 {DISPEXTERN_H_GROUP} ¶
867 {INTERVALS_H_GROUP} ¶
869 {BLOCKINPUT_H_GROUP} ¶
870 "{Includes}epaths.h" ¶
875 "{Src}bitmaps:gray.xbm"
880 {BLOCKINPUT_H_GROUP} ¶
885 "{Includes}alloca.h" ¶
886 "{Includes}sys:types.h" ¶
888 "{Includes}termio.h" ¶
890 "{Includes}sys:stat.h" ¶
894 {DISPEXTERN_H_GROUP} ¶
904 {INTERVALS_H_GROUP} ¶
909 "{Includes}epaths.h" ¶
915 #----------------------------------------#
916 # Variables and rules for target "Clean" #
917 #----------------------------------------#
920 Delete -i {EmacsObjects} {MacObjects}
921 Delete -i "{EmacsTarget}"
922 Delete -i stdout stderr
923 Delete -i {Make-DocFile-Objects} {Make-DocFileDir}make-docfile
924 Delete -i "{Source}"Emacs.maclf.r "{Source}"EmacsMPW.maclf.r
927 Delete -i "Emacs CW"Å
928 Delete -y "emacs Data"
931 #--------------------------------------#
932 # Variables and rules for target "Doc" #
933 #--------------------------------------#
944 "{Src}casefiddle.c" ¶
967 "{Src}getloadavg.c" ¶
981 "{Src}region-cache.c" ¶
1004 {Lisp}menu-bar.elc ¶
1007 {Lisp}scroll-bar.elc ¶
1009 {Lisp}vms-patch.elc ¶
1014 {Lisp}disp-table.elc ¶
1015 {Lisp}dos-vars.elc ¶
1016 {Lisp}international:ccl.elc ¶
1017 {Lisp}international:codepage.elc ¶
1019 {Lisp}buff-menu.elc ¶
1020 {Lisp}byte-run.elc ¶
1021 {Lisp}cus-start.el ¶
1023 {Lisp}emacs-lisp:lisp-mode.elc ¶
1024 {Lisp}emacs-lisp:lisp.elc ¶
1025 {Lisp}facemenu.elc ¶
1028 {Lisp}float-sup.elc ¶
1036 {Lisp}bindings.elc ¶
1038 {Lisp}international:mule.elc ¶
1039 {Lisp}international:mule-conf.el ¶
1040 {Lisp}international:mule-cmds.elc ¶
1041 {Lisp}international:characters.elc ¶
1042 {Lisp}case-table.elc ¶
1043 {Lisp}language:chinese.elc ¶
1044 {Lisp}language:cyrillic.elc ¶
1045 {Lisp}language:indian.elc ¶
1046 {Lisp}language:ethiopic.elc ¶
1047 {Lisp}language:european.elc ¶
1048 {Lisp}language:tibetan.elc ¶
1049 {Lisp}language:vietnamese.elc ¶
1051 {Lisp}register.elc ¶
1056 {Lisp}term:tty-colors.elc ¶
1057 {Lisp}textmodes:fill.elc ¶
1058 {Lisp}textmodes:page.elc ¶
1059 {Lisp}textmodes:paragraphs.elc ¶
1060 {Lisp}textmodes:text-mode.elc ¶
1061 {Lisp}vc-hooks.elc ¶
1062 {Lisp}ediff-hook.elc ¶
1067 LispSourceDontCompile = ¶
1068 {Lisp}language:devanagari.el ¶
1069 {Lisp}language:english.el ¶
1070 {Lisp}language:czech.el ¶
1071 {Lisp}language:slovak.el ¶
1072 {Lisp}language:romanian.el ¶
1073 {Lisp}language:greek.el ¶
1074 {Lisp}language:hebrew.el ¶
1075 {Lisp}language:japanese.el ¶
1076 {Lisp}language:korean.el ¶
1077 {Lisp}language:lao.el ¶
1078 {Lisp}language:thai.el ¶
1079 {Lisp}language:misc-lang.el
1081 Doc Ä {DocTarget}DOC
1083 {DocTarget}DOC Ä {Makefile} {EmacsSource} {MacSource} {LispSource} {LispSourceDontCompile} {Make-DocFileDir}Make-DocFile
1084 {Make-DocFileDir}make-docfile {EmacsSource} > {DocTarget}DOC
1085 {Make-DocFileDir}make-docfile {MacSource} >> {DocTarget}DOC
1086 {Make-DocFileDir}make-docfile {LispSource} >> {DocTarget}DOC
1087 {Make-DocFileDir}make-docfile {LispSourceDontCompile} >> {DocTarget}DOC
1090 #-----------------------------------------------#
1091 # Variables and rules for target "Make-DocFile" #
1092 #-----------------------------------------------#
1094 Make-DocFile-Includes = -i :inc:
1097 Make-DocFile-PPCCOptions = -typecheck relaxed -w off -noMapCR ¶
1098 {Make-DocFile-Includes} {Make-DocFile-Sym}
1100 Make-DocFile-Objects = ¶
1101 "{Lib-Src}make-docfile.c.x" ¶
1104 Make-DocFile Ä {Make-DocFileDir}Make-DocFile
1106 {Make-DocFileDir}Make-DocFile Ä {Makefile} {Make-DocFile-Objects}
1108 -o {Make-DocFileDir}Make-DocFile ¶
1109 {Make-DocFile-Sym} ¶
1110 {Make-DocFile-Objects} ¶
1113 "{SharedLibraries}InterfaceLib" ¶
1114 "{SharedLibraries}StdCLib" ¶
1115 "{SharedLibraries}MathLib" ¶
1116 "{PPCLibraries}StdCRuntime.o" ¶
1117 "{PPCLibraries}PPCCRuntime.o" ¶
1118 "{PPCLibraries}PPCToolLibs.o"
1120 "{Lib-Src}make-docfile.c.x" Ä {Makefile} "{Lib-Src}make-docfile.c"
1121 {PPCC} "{Lib-Src}make-docfile.c" -o "{Lib-Src}make-docfile.c.x" {Make-DocFile-PPCCOptions}
1123 "{Source}chdir.c.x" Ä {Makefile} "{Source}chdir.c"
1124 {PPCC} "{Source}chdir.c" -o "{Source}chdir.c.x" {Make-DocFile-PPCCOptions}