2 # $Id: make_mac.sh,v 1.1.1.1 2000-09-22 15:33:26 hr Exp $
4 # This MPW script builds the dmake executable using the Metroworks PPC compiler
5 # and linker. The resulting dmake binary will only run on the PPC platform.
7 # To execute this script, you will need the following tools:
9 # - CodeWarrior for MacOS Release 5 or later
11 # To run this script, you need to open the MPW Shell that is bundled with CodeWarrior.
12 # If you have another instance of MPW installed other than the one bundled with
13 # CodeWarrior, you may encounter problems. Once you open the MPW Shell that is bundled
14 # with CodeWarrior, you will need to set MPW's working directory to the "dmake"
15 # directory (the directory above the directory that this script is in). Then, execute
16 # this script from the MPW Worksheet by typing the following command:
21 if ( "{0}" != ':mac:make_mac.sh' )
22 Echo
"You cannot run this script from the current directory."
23 Echo
"To run this script, you need to be in the ¶"dmake¶
" directory and then"
24 Echo
"execute the following command: ¶":mac
:make_mac.sh¶
""
27 if ( ! `Exists -d objects` )
30 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle infer.c
31 Move
-y infer.c.o objects
32 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
make.c
33 Move
-y make.c.o objects
34 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle stat.c
35 Move
-y stat.c.o objects
36 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
expand.c
37 Move
-y expand.c.o objects
38 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle dmstring.c
39 Move
-y dmstring.c.o objects
40 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
hash.c
41 Move
-y hash.c.o objects
42 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle dag.c
43 Move
-y dag.c.o objects
44 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle dmake.c
45 Move
-y dmake.c.o objects
46 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle path.c
47 Move
-y path.c.o objects
48 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle imacs.c
49 Move
-y imacs.c.o objects
50 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle sysintf.c
51 Move
-y sysintf.c.o objects
52 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle parse.c
53 Move
-y parse.c.o objects
54 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle getinp.c
55 Move
-y getinp.c.o objects
56 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle quit.c
57 Move
-y quit.c.o objects
58 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle state.c
59 Move
-y state.c.o objects
60 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle dmdump.c
61 Move
-y dmdump.c.o objects
62 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle macparse.c
63 Move
-y macparse.c.o objects
64 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle rulparse.c
65 Move
-y rulparse.c.o objects
66 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle percent.c
67 Move
-y percent.c.o objects
68 # Note that function.c needs to have __useAppleExts__ defined. Otherwise, it won't link.
69 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-d __useAppleExts__
-sym off
-proto ignoreoldstyle
function.c
70 Move
-y function.c.o objects
71 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:arlib.c
72 Move
-y arlib.c.o objects
73 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:bogus.c
74 Move
-y bogus.c.o objects
75 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:dirbrk.c
76 Move
-y dirbrk.c.o objects
77 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:directry.c
78 Move
-y directry.c.o objects
79 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:environ.c
80 Move
-y environ.c.o objects
81 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:main.c
82 Move
-y main.c.o objects
83 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:rmprq.c
84 Move
-y rmprq.c.o objects
85 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:ruletab.c
86 Move
-y ruletab.c.o objects
87 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:tempnam.c
88 Move
-y tempnam.c.o objects
89 MWCPPC
-o : -ansi off
-I :mac
-d _MPW
-sym off
-proto ignoreoldstyle
:mac
:tomacfil.c
90 Move
-y tomacfil.c.o objects
91 MWLinkPPC
-w -c 'MPS ' -t MPST
-sym off
-xm m
-o dmake
:objects
:infer.c.o
:objects
:make.c.o ¶
92 :objects
:stat.c.o
:objects
:expand.c.o
:objects
:dmstring.c.o
:objects
:hash.c.o ¶
93 :objects
:dag.c.o
:objects
:dmake.c.o
:objects
:path.c.o
:objects
:imacs.c.o ¶
94 :objects
:sysintf.c.o
:objects
:parse.c.o
:objects
:getinp.c.o
:objects
:quit.c.o ¶
95 :objects
:state.c.o
:objects
:dmdump.c.o
:objects
:macparse.c.o
:objects
:rulparse.c.o ¶
96 :objects
:percent.c.o
:objects
:function.c.o
:objects
:arlib.c.o
:objects
:bogus.c.o ¶
97 :objects
:dirbrk.c.o
:objects
:directry.c.o
:objects
:environ.c.o
:objects
:main.c.o ¶
98 :objects
:rmprq.c.o
:objects
:ruletab.c.o
:objects
:tempnam.c.o
:objects
:tomacfil.c.o ¶
99 "{SharedLibraries}StdCLib" ¶
100 "{SharedLibraries}InterfaceLib" ¶
101 "{PPCLibraries}StdCRuntime.o" ¶
102 "{PPCLibraries}PPCCRuntime.o" ¶
103 "{PPCLibraries}PPCToolLibs.o"
104 SetFile
-a l
:startup
:config.mk
105 Duplicate
-y :mac
:template.mk
:startup
:config.mk