summaryrefslogtreecommitdiffstats
path: root/src/mac/kconfig/MakeFile
blob: b9c36909952a76d15dbd2342ee3c9418b14de942 (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
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
#
# Copyright 1991-1994 by The University of Texas at Austin
# All rights reserved.
#
# For infomation contact:
# Rick Watson
# University of Texas
# Computation Center, COM 1
# Austin, TX 78712
# r.watson@utexas.edu
# 512-471-3241
#
#
# MPW-style lines for the MakeFile.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.
#
# This first part is long enough that NFS/Share doesn't notice the non-ASCII
# characters in the rest of the file, so it claims that the file is type
# TEXT, which is what we want.  The non-ASCII chars are necessary for MPW 
# Make.

all Ä 'CNS Config'

#define dangerouspattersn
INCFOLDER= :::include:

OBJS = ¶
	kconfig.c.o ¶
	WindowUtil.c.o ¶
	kadm.c.o ¶
	mac_stubs.c.o ¶
	des_cornell.c.o ¶
	dnr.c.o

COptions = -sym full -w -mbg ch8 -b -r -i "{INCFOLDER}"

#
# our ldef
#
ldef.rsrc Ä ldef.c.o
	Link -w -rt LDEF=128 ldef.c.o -o ldef.rsrc
	
#
# kconfig
#
'CNS Config' Ä kconfig.r kconfig.rsrc kconfig.vers ldef.rsrc {OBJS}
	Delete -i 'CNS Config'
	Link -sym Full -map -mf -ra =resProtected -msg nodup -o 'CNS Config' ¶
		-t APPL -c 'RWkc' -l ¶
		{OBJS} ¶
		"{Libraries}"Interface.o ¶
		"{CLibraries}"StdCLib.o ¶
		"{Libraries}"Runtime.o ¶
		> 'CNS Config.map'
	Rez -append -o 'CNS Config' kconfig.r
	setfile -a B 'CNS Config'
	
SRCS= ¶
	glue.h ¶
	ldef.c ¶
	Makefile ¶
	kconfig.c ¶
	kconfig.h ¶
	kconfig.r ¶
	kconfig.rsrc ¶
	kconfig.vers ¶
	WindowUtil.c ¶
	WindowUtil.h ¶
	ReleaseNotes ¶
	kadm.c ¶
	kadm.h ¶
	dnr.c ¶
	encrypt.h

mac_stubs.c Ä :::lib:krb:mac_stubs.c
	duplicate -y :::lib:krb:mac_stubs.c mac_stubs.c

# version 8.0 is K8 10/08/93
# version 9.0 is K9 10/14/93
# version 10.0 is version released to Cygnus, 9/8/94
	
newversion Ä
	set newversion 10.0
	project kconfigProject
	for i in {SRCS}
	  checkin -m -y -t "b{newversion}" "{i},{newversion}"
	end

orphans Ä
	for i in {SRCS}
		Echo "Delete 'ckid';" | Rez -a -m -o "{i}"
	end

#
# Xport disk
#
xportdisk Ä
	for i in {SRCS}
		duplicate -y {i} xport:kconfig:{i}
	end

clean Ä
	delete -y Ŷ~
	delete -y Ŷ#

#
# Prototypes.
#
# Prototypes are not automatically built -- use target "proto" or "depend".
#
# Builds {file}.proto.h.new and then duplicates that file as
# {file}.proto.h only if the files are different. This prevents
# recompiles due to proto.h files that didn't actually change.
# 
# Building {file}.proto.h.new instead of {file}.proto.h also prevents 
# spurious invocations of mkptypes whenever a file that {file}.proto.h 
# depends on changes.
#

PTYPES = ¶
	:proto:kconfig.proto.h.new ¶
	:proto:WindowUtil.proto.h.new ¶
	:proto:kadm.proto.h.new 

# default rule for relating prototype.h.new files to source files
":proto:" Ä ":"

proto Ä {PTYPES}

.proto.h.new Ä .c
	mkptypes -A -e -W "{Default}.c" > "{TargDir}{Default}.proto.h.new"
	equal -d -q "{Default}.proto.h" "{TargDir}{Default}.proto.h.new" || ¶
		duplicate -y "{TargDir}{Default}.proto.h.new" "{Default}.proto.h"

#
# Dependancies
#
CPP = ¶
	:cpp:kconfig.cpp ¶
	:cpp:WindowUtil.cpp ¶
	:cpp:kadm.cpp ¶
	:cpp:des_cornell.cpp

# default rule for relating object files to source files
":cpp:" Ä ¶
	":"

# Rule to build .cpp preprocessor output files. Syntax check only and write cpp output.
.cpp Ä .c
	C "{DepDir}{Default}.c" -e2 -c {COptions} > "{TargDir}{Default}.cpp"
	
depend Ä {CPP} proto
	perl "{mpw}local:depend.perl" Makefile ":cpp:" ":obj:" {CPP}
	Rename -y Makefile Makefile.bak
	Rename -y Makefile.new Makefile
	Echo "Include ¶"Makefile.bak¶" 'ckid';" | Rez -m -a -o "Makefile" #Transfer the ckid


# DO NOT DELETE THIS LINE -- mkdep uses it.
# DO NOT PUT ANYTHING AFTER THIS LINE. IT WILL GO AWAY.

kconfig.c.o Ä "kconfig.proto.h"
kconfig.c.o Ä "kconfig.c"
kconfig.c.o Ä "kconfig.vers"
kconfig.c.o Ä "glue.h"
kconfig.c.o Ä "kconfig.h"

WindowUtil.c.o Ä "glue.h"
WindowUtil.c.o Ä "WindowUtil.c"
WindowUtil.c.o Ä "WindowUtil.h"

kadm.c.o Ä "kconfig.proto.h"
kadm.c.o Ä "kadm.c"
kadm.c.o Ä "desproto.h"
kadm.c.o Ä "kadm.h"
kadm.c.o Ä "glue.h"
kadm.c.o Ä "kadm.proto.h"
kadm.c.o Ä "kconfig.h"

des_cornell.c.o Ä "glue.h"
des_cornell.c.o Ä "des_cornell.c"
des_cornell.c.o Ä "desproto.h"
des_cornell.c.o Ä "encrypt.h"

# IF YOU PUT ANYTHING HERE IT WILL GO AWAY