aboutsummaryrefslogtreecommitdiff
path: root/expat/lib/Makefile.MPW
blob: 046af005147bd19808fe8eaec318da5ac9f7db43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
#   File:       Makefile.MPW
#   Targets:    All, Dynamic, Static (and Clean, Clean-All)
#   Created:    Tuesday, July 02, 2002
#
#   MPW Makefile for building expat under the "classic" (i.e. pre-X) Mac OS
#   Copyright © 2002 Daryle Walker
#   Portions Copyright © 2002 Thomas Wegner
#   See the COPYING file for distribution information
#
#   Description: 
#   This Makefile lets you build static, dynamic (i.e. shared) and stub 
#   versions of the expat library as well as the elements.c and outline.c 
#   examples (built as tools for MPW). This is for PPC only; it should be 
#   no problem to build a 68K version of the expat library, though.
#
# 	Usage: 
#			       Buildprogram All
#			 or    Buildprogram Dynamic
#			 or    Buildprogram Static
#
#   Note: You first have to rename this file to "Makefile", or the Buildprogram 
#         commando will not recognize it.
#

MAKEFILE        = Makefile
¥MondoBuild¥    = {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified

ObjDir          = :
SrcDir          = :
HdrDir          = :

ToolDir         = ::examples:

Includes        = -i {HdrDir}

Sym-PPC         = -sym off

Defines         = -d MACOS_CLASSIC

PPCCOptions     = {Includes} {Sym-PPC} -w 35 {Defines}

FragName        = libexpat


### Source Files ###

SrcFiles        ="{SrcDir}xmlparse.c""{SrcDir}xmlrole.c""{SrcDir}xmltok.c"

ToolSrcFiles    ="{ToolDir}elements.c""{ToolDir}outline.c"


### Object Files ###

ObjFiles-PPC    ="{ObjDir}xmlparse.c.o""{ObjDir}xmlrole.c.o""{ObjDir}xmltok.c.o"

ElementToolObjFile   =  "{ObjDir}elements.c.o"

OutlineToolObjFile   =  "{ObjDir}outline.c.o"


### Libraries ###

StLibFiles-PPC    ="{PPCLibraries}StdCRuntime.o""{PPCLibraries}PPCCRuntime.o""{PPCLibraries}PPCToolLibs.o"

ShLibFiles-PPC    ="{SharedLibraries}InterfaceLib""{SharedLibraries}StdCLib""{SharedLibraries}MathLib"

LibFiles-PPC    ={StLibFiles-PPC}{ShLibFiles-PPC}


### Special Files ###

ExportFile      = "{ObjDir}{FragName}.exp"

StLibFile       = "{ObjDir}{FragName}.MrC.o"

ShLibFile       = "{ObjDir}{FragName}"

StubFile        = "{ObjDir}{FragName}.stub"

ElementsTool    = "{ToolDir}elements"

OutlineTool     = "{ToolDir}outline"


### Default Rules ###

.c.o  Ä  .c  {¥MondoBuild¥}
	{PPCC} {depDir}{default}.c -o {targDir}{default}.c.o {PPCCOptions}


### Build Rules ###

All  Ä  Dynamic {ElementsTool} {OutlineTool}

Static  Ä  {StLibFile}

Dynamic  Ä  Static {ShLibFile} {StubFile}

{StLibFile}  ÄÄ  {ObjFiles-PPC} {StLibFiles-PPC} {¥MondoBuild¥}
	PPCLink ¶
		-o {Targ}{ObjFiles-PPC}{StLibFiles-PPC}{Sym-PPC}-mf -d ¶
		-t 'XCOF'-c 'MPS '-xm l

{ShLibFile}  ÄÄ  {StLibFile} {ShLibFiles-PPC} {ExportFile} {¥MondoBuild¥}
	PPCLink ¶
		-o {Targ}{StLibFile}{ShLibFiles-PPC}{Sym-PPC}-@export {ExportFile}-fragname {FragName}-mf -d ¶
		-t 'shlb'-c '????'-xm s

{StubFile}  ÄÄ  {ShLibFile} {¥MondoBuild¥}
	shlb2stub -o {Targ} {ShLibFile}

{ElementsTool}  ÄÄ  {ElementToolObjFile} {StubFile} {LibFiles-PPC} {¥MondoBuild¥}
	PPCLink ¶
		-o {Targ}{ElementToolObjFile}{StLibFile}{LibFiles-PPC}{Sym-PPC}-mf -d ¶
		-t 'MPST'-c 'MPS '

{OutlineTool}  ÄÄ  {OutlineToolObjFile} {StubFile} {LibFiles-PPC} {¥MondoBuild¥}
	PPCLink ¶
		-o {Targ}{OutlineToolObjFile}{StLibFile}{LibFiles-PPC}{Sym-PPC}-mf -d ¶
		-t 'MPST'-c 'MPS '


### Special Rules ###

{ExportFile}  ÄÄ  "{HdrDir}expat.h" {¥MondoBuild¥}
	StreamEdit -d ¶
		-e "/¥('XMLPARSEAPI('Å') ')Ç0,1È'XML_'([A-Za-z0-9_]+)¨1'('/ Print 'XML_' ¨1""{HdrDir}expat.h" > {Targ}


### Required Dependencies ###

"{ObjDir}xmlparse.c.o"  Ä  "{SrcDir}xmlparse.c"
"{ObjDir}xmlrole.c.o"  Ä  "{SrcDir}xmlrole.c"
"{ObjDir}xmltok.c.o"  Ä  "{SrcDir}xmltok.c"

"{ObjDir}elements.c.o"  Ä "{ToolDir}elements.c"
"{ObjDir}outline.c.o"  Ä "{ToolDir}outline.c"


### Optional Dependencies ###
### Build this target to clean out generated intermediate files. ###

Clean  Ä
	Delete {ObjFiles-PPC} {ExportFile} {ElementToolObjFile} {OutlineToolObjFile}

### Build this target to clean out all generated files. ###

Clean-All  Ä  Clean
	Delete {StLibFile} {ShLibFile} {StubFile} {ElementsTool} {OutlineTool}

### Build this target to generate "include file" dependencies. ###

Dependencies  Ä  $OutOfDate
	MakeDepend ¶
		-append {MAKEFILE}-ignore "{CIncludes}"-objdir "{ObjDir}"-objext .o ¶
		{Defines}{Includes}{SrcFiles}