afs-error-translation-update-20030308
[openafs.git] / src / util / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10
11 objects = assert.o base64.o casestrcpy.o ktime.o volparse.o hostparse.o \
12          hputil.o kreltime.o isathing.o get_krbrlm.o uuid.o serverLog.o \
13          dirpath.o fileutil.o netutils.o flipbase64.o \
14          afs_atomlist.o afs_lhash.o snprintf.o ${REGEX_OBJ}
15
16 includes = \
17         ${TOP_INCDIR}/afs/dirpath.h \
18         ${TOP_INCDIR}/afs/pthread_nosigs.h \
19         ${TOP_INCDIR}/afs/assert.h \
20         ${TOP_INCDIR}/afs/errors.h \
21         ${TOP_INCDIR}/afs/vice.h \
22         ${TOP_INCDIR}/afs/remote.h \
23         ${TOP_INCDIR}/afs/ktime.h \
24         ${TOP_INCDIR}/afs/fileutil.h \
25         ${TOP_INCDIR}/afs/netutils.h \
26         ${TOP_INCDIR}/afs/packages.h \
27         ${TOP_INCDIR}/afs/afsutil.h \
28         ${TOP_INCDIR}/afs/afsutil_prototypes.h \
29         ${TOP_INCDIR}/afs/pthread_glock.h \
30         ${TOP_INCDIR}/afs/afs_atomlist.h \
31         ${TOP_INCDIR}/afs/afs_lhash.h \
32         ${TOP_INCDIR}/afs/softsig.h \
33         ${TOP_INCDIR}/potpourri.h 
34
35 all: ${includes} \
36         ${TOP_LIBDIR}/util.a \
37         ${TOP_LIBDIR}/libafsutil.a \
38         sys
39
40 depinstall: ${includes}
41
42 dirpath.h: ${srcdir}/dirpath.hin Makefile
43         ( sed \
44                 -e "s+@afsconfdir+${afsconfdir}+" \
45                 -e "s+@viceetcdir+${viceetcdir}+" \
46                 -e "s+@afssrvbindir+${afssrvbindir}+" \
47                 -e "s+@afssrvsbindir+${afssrvsbindir}+" \
48                 -e "s+@afssrvlibexecdir+${afssrvlibexecdir}+" \
49                 -e "s+@afsdbdir+${afsdbdir}+" \
50                 -e "s+@afslogsdir+${afslogsdir}+" \
51                 -e "s+@afslocaldir+${afslocaldir}+" \
52                 -e "s+@afsbackupdir+${afsbackupdir}+" \
53                 -e "s+@afsbosconfigdir+${afsbosconfigdir}+" \
54                 ${srcdir}/dirpath.hin >dirpath.h.tmp && \
55                 mv dirpath.h.tmp dirpath.h )
56
57 util.a: ${objects} AFS_component_version_number.o
58         $(RM) -f util.a
59         $(AR) crv util.a ${objects} AFS_component_version_number.o
60         $(RANLIB) util.a
61
62 assert.o: ${srcdir}/assert.c ${includes}
63         ${CC} ${CFLAGS} -c ${srcdir}/assert.c
64
65 casestrcpy.o: ${srcdir}/casestrcpy.c ${includes}
66         ${CC} ${CFLAGS} -c ${srcdir}/casestrcpy.c
67
68 hputil.o: ${srcdir}/hputil.c ${includes}
69         ${CC} ${CFLAGS} -c ${srcdir}/hputil.c
70
71 flipbase64.o: ${srcdir}/flipbase64.c ${includes}
72         ${CC} ${CFLAGS} -c ${srcdir}/flipbase64.c
73
74 volparse.o: ${srcdir}/volparse.c ${includes}
75         ${CC} ${CFLAGS} -c ${srcdir}/volparse.c
76
77 snprintf.o: ${srcdir}/snprintf.c ${includes}
78         ${CC} ${CFLAGS} -c ${srcdir}/snprintf.c
79
80 base64.o: ${srcdir}/base64.c ${includes}
81         ${CC} ${CFLAGS} -c ${srcdir}/base64.c
82
83 hostparse.o: ${srcdir}/hostparse.c ${includes}
84         ${CC} ${CFLAGS} -c ${srcdir}/hostparse.c
85
86 ktime.o: ${srcdir}/ktime.c ${includes}
87         ${CC} ${CFLAGS} -c ${srcdir}/ktime.c
88
89 kreltime.o: ${srcdir}/kreltime.c ${includes}
90         ${CC} ${CFLAGS} -c ${srcdir}/kreltime.c
91
92 get_krbrlm.o: ${srcdir}/get_krbrlm.c ${includes}
93         ${CC} ${CFLAGS} -c ${srcdir}/get_krbrlm.c
94
95 uuid.o: ${srcdir}/uuid.c ${includes}
96         ${CC} ${CFLAGS} -c ${srcdir}/uuid.c
97
98 sys.o: ${srcdir}/sys.c AFS_component_version_number.c ${includes}
99         ${CC} ${CFLAGS} -c ${srcdir}/sys.c
100
101 sys: sys.o 
102         ${CC} ${LDFLAGS} -o sys sys.o
103
104 isathing.o: ${srcdir}/isathing.c ${includes}
105         ${CC} ${CFLAGS} -c ${srcdir}/isathing.c
106
107 serverLog.o: ${srcdir}/serverLog.c ${includes}
108         ${CC} ${CFLAGS} -c ${srcdir}/serverLog.c
109
110 dirpath.o: ${srcdir}/dirpath.c ${includes}
111         ${CC} ${CFLAGS} -c ${srcdir}/dirpath.c
112
113 fileutil.o: ${srcdir}/fileutil.c ${includes}
114         ${CC} ${CFLAGS} -c ${srcdir}/fileutil.c
115
116 netutils.o: ${srcdir}/netutils.c ${includes}
117         ${CC} ${CFLAGS} -c ${srcdir}/netutils.c
118
119 afs_atomlist.o: ${srcdir}/afs_atomlist.c ${includes}
120         ${CC} ${CFLAGS} -c ${srcdir}/afs_atomlist.c
121
122 afs_lhash.o: ${srcdir}/afs_lhash.c ${includes}
123         ${CC} ${CFLAGS} -c ${srcdir}/afs_lhash.c
124
125 #
126 # Install targets
127 #
128 KDIR=../libafs/afs
129 UKDIR=../libuafs/afs
130
131 install: \
132         ${DESTDIR}${includedir}/afs/dirpath.h \
133         ${DESTDIR}${includedir}/afs/pthread_nosigs.h \
134         ${DESTDIR}${includedir}/afs/assert.h \
135         ${DESTDIR}${includedir}/afs/errors.h \
136         ${DESTDIR}${includedir}/afs/vice.h \
137         ${DESTDIR}${includedir}/afs/remote.h \
138         ${DESTDIR}${includedir}/afs/ktime.h \
139         ${DESTDIR}${includedir}/afs/fileutil.h \
140         ${DESTDIR}${includedir}/afs/netutils.h \
141         ${DESTDIR}${includedir}/afs/packages.h \
142         ${DESTDIR}${includedir}/afs/afsutil.h \
143         ${DESTDIR}${includedir}/afs/afsutil_prototypes.h \
144         ${DESTDIR}${includedir}/afs/pthread_glock.h \
145         ${DESTDIR}${includedir}/afs/afs_atomlist.h \
146         ${DESTDIR}${includedir}/afs/afs_lhash.h \
147         ${DESTDIR}${includedir}/afs/softsig.h \
148         ${DESTDIR}${includedir}/potpourri.h \
149         ${DESTDIR}${libdir}/afs/util.a \
150         ${DESTDIR}${libdir}/afs/libafsutil.a \
151         ${DESTDIR}${bindir}/sys
152
153 ${TOP_INCDIR}/afs/dirpath.h: dirpath.h
154         ${INSTALL} $? $@
155
156 ${TOP_INCDIR}/afs/pthread_nosigs.h: ${srcdir}/pthread_nosigs.h
157         ${INSTALL} $? $@
158
159 ${TOP_INCDIR}/afs/assert.h: ${srcdir}/assert.h
160         ${INSTALL} $? $@
161
162 ${TOP_INCDIR}/afs/errors.h: ${srcdir}/errors.h
163         ${INSTALL} $? $@
164
165 ${TOP_INCDIR}/afs/vice.h: ${srcdir}/vice.h
166         ${INSTALL} $? $@
167
168 ${TOP_INCDIR}/afs/remote.h: ${srcdir}/remote.h
169         ${INSTALL} $? $@
170
171 ${TOP_INCDIR}/afs/ktime.h: ${srcdir}/ktime.h
172         ${INSTALL} $? $@
173
174 ${TOP_INCDIR}/afs/fileutil.h: ${srcdir}/fileutil.h
175         ${INSTALL} $? $@
176
177 ${TOP_INCDIR}/afs/netutils.h: ${srcdir}/netutils.h
178         ${INSTALL} $? $@
179
180 ${TOP_INCDIR}/afs/packages.h: ${srcdir}/packages.h
181         ${INSTALL} $? $@
182
183 ${TOP_INCDIR}/afs/afsutil.h: ${srcdir}/afsutil.h
184         ${INSTALL} $? $@
185
186 ${TOP_INCDIR}/afs/afsutil_prototypes.h: ${srcdir}/afsutil_prototypes.h
187         ${INSTALL} $? $@
188
189 ${TOP_INCDIR}/afs/pthread_glock.h: ${srcdir}/pthread_glock.h
190         ${INSTALL} $? $@
191
192 ${TOP_INCDIR}/afs/afs_atomlist.h: ${srcdir}/afs_atomlist.h
193         ${INSTALL} $? $@
194
195 ${TOP_INCDIR}/afs/afs_lhash.h: ${srcdir}/afs_lhash.h
196         ${INSTALL} $? $@
197
198 ${TOP_INCDIR}/afs/softsig.h: ${srcdir}/softsig.h
199         ${INSTALL} $? $@
200
201 ${TOP_INCDIR}/potpourri.h: ${srcdir}/potpourri.h
202         ${INSTALL} $? $@
203
204
205 ${TOP_LIBDIR}/util.a: util.a
206         ${INSTALL} $? $@
207
208 ${TOP_LIBDIR}/libafsutil.a: util.a
209         ${INSTALL} $? $@
210
211
212 ${DESTDIR}${includedir}/afs/dirpath.h: dirpath.h
213         ${INSTALL} $? $@
214
215 ${DESTDIR}${includedir}/afs/pthread_nosigs.h: ${srcdir}/pthread_nosigs.h
216         ${INSTALL} $? $@
217
218 ${DESTDIR}${includedir}/afs/assert.h: ${srcdir}/assert.h
219         ${INSTALL} $? $@
220
221 ${DESTDIR}${includedir}/afs/errors.h: ${srcdir}/errors.h
222         ${INSTALL} $? $@
223
224 ${DESTDIR}${includedir}/afs/vice.h: ${srcdir}/vice.h
225         ${INSTALL} $? $@
226
227 ${DESTDIR}${includedir}/afs/remote.h: ${srcdir}/remote.h
228         ${INSTALL} $? $@
229
230 ${DESTDIR}${includedir}/afs/ktime.h: ${srcdir}/ktime.h
231         ${INSTALL} $? $@
232
233 ${DESTDIR}${includedir}/afs/fileutil.h: ${srcdir}/fileutil.h
234         ${INSTALL} $? $@
235
236 ${DESTDIR}${includedir}/afs/netutils.h: ${srcdir}/netutils.h
237         ${INSTALL} $? $@
238
239 ${DESTDIR}${includedir}/afs/packages.h: ${srcdir}/packages.h
240         ${INSTALL} $? $@
241
242 ${DESTDIR}${includedir}/afs/afsutil.h: ${srcdir}/afsutil.h
243         ${INSTALL} $? $@
244
245 ${DESTDIR}${includedir}/afs/afsutil_prototypes.h: ${srcdir}/afsutil_prototypes.h
246         ${INSTALL} $? $@
247
248 ${DESTDIR}${includedir}/afs/pthread_glock.h: ${srcdir}/pthread_glock.h
249         ${INSTALL} $? $@
250
251 ${DESTDIR}${includedir}/afs/afs_atomlist.h: ${srcdir}/afs_atomlist.h
252         ${INSTALL} $? $@
253
254 ${DESTDIR}${includedir}/afs/afs_lhash.h: ${srcdir}/afs_lhash.h
255         ${INSTALL} $? $@
256
257 ${DESTDIR}${includedir}/afs/softsig.h: ${srcdir}/softsig.h
258         ${INSTALL} $? $@
259
260 ${DESTDIR}${includedir}/potpourri.h: ${srcdir}/potpourri.h
261         ${INSTALL} $? $@
262
263
264 ${DESTDIR}${libdir}/afs/util.a: util.a
265         ${INSTALL} $? $@
266
267 ${DESTDIR}${libdir}/afs/libafsutil.a: util.a
268         ${INSTALL} $? $@
269
270
271 ${DESTDIR}${bindir}/sys: sys
272         ${INSTALL} $? $@
273
274
275 ${DEST}/include/afs/dirpath.h: dirpath.h
276         ${INSTALL} $? $@
277
278 ${DEST}/include/afs/pthread_nosigs.h: ${srcdir}/pthread_nosigs.h
279         ${INSTALL} $? $@
280
281 ${DEST}/include/afs/assert.h: ${srcdir}/assert.h
282         ${INSTALL} $? $@
283
284 ${DEST}/include/afs/errors.h: ${srcdir}/errors.h
285         ${INSTALL} $? $@
286
287 ${DEST}/include/afs/vice.h: ${srcdir}/vice.h
288         ${INSTALL} $? $@
289
290 ${DEST}/include/afs/remote.h: ${srcdir}/remote.h
291         ${INSTALL} $? $@
292
293 ${DEST}/include/afs/ktime.h: ${srcdir}/ktime.h
294         ${INSTALL} $? $@
295
296 ${DEST}/include/afs/fileutil.h: ${srcdir}/fileutil.h
297         ${INSTALL} $? $@
298
299 ${DEST}/include/afs/netutils.h: ${srcdir}/netutils.h
300         ${INSTALL} $? $@
301
302 ${DEST}/include/afs/packages.h: ${srcdir}/packages.h
303         ${INSTALL} $? $@
304
305 ${DEST}/include/afs/afsutil.h: ${srcdir}/afsutil.h
306         ${INSTALL} $? $@
307
308 ${DEST}/include/afs/afsutil_prototypes.h: ${srcdir}/afsutil_prototypes.h
309         ${INSTALL} $? $@
310
311 ${DEST}/include/afs/pthread_glock.h: ${srcdir}/pthread_glock.h
312         ${INSTALL} $? $@
313
314 ${DEST}/include/afs/afs_atomlist.h: ${srcdir}/afs_atomlist.h
315         ${INSTALL} $? $@
316
317 ${DEST}/include/afs/afs_lhash.h: ${srcdir}/afs_lhash.h
318         ${INSTALL} $? $@
319
320 ${DEST}/include/afs/softsig.h: ${srcdir}/softsig.h
321         ${INSTALL} $? $@
322
323 ${DEST}/include/potpourri.h: ${srcdir}/potpourri.h
324         ${INSTALL} $? $@
325
326
327 ${DEST}/lib/afs/util.a: util.a
328         ${INSTALL} $? $@
329
330 ${DEST}/lib/afs/libafsutil.a: util.a
331         ${INSTALL} $? $@
332
333
334 ${DEST}/bin/sys: sys
335         ${INSTALL} $? $@
336
337 #
338 # Misc targets
339 #
340
341 clean:
342         $(RM) -f ${objects} sys dirpath.h
343         $(RM) -f util.a *.o core AFS_component_version_number.c
344
345 test:
346         cd test; $(MAKE)
347
348 include ../config/Makefile.version
349
350 dest: \
351         ${DEST}/include/afs/dirpath.h \
352         ${DEST}/include/afs/pthread_nosigs.h \
353         ${DEST}/include/afs/assert.h \
354         ${DEST}/include/afs/errors.h \
355         ${DEST}/include/afs/vice.h \
356         ${DEST}/include/afs/remote.h \
357         ${DEST}/include/afs/ktime.h \
358         ${DEST}/include/afs/fileutil.h \
359         ${DEST}/include/afs/netutils.h \
360         ${DEST}/include/afs/packages.h \
361         ${DEST}/include/afs/afsutil.h \
362         ${DEST}/include/afs/afsutil_prototypes.h \
363         ${DEST}/include/afs/pthread_glock.h \
364         ${DEST}/include/afs/afs_atomlist.h \
365         ${DEST}/include/afs/afs_lhash.h \
366         ${DEST}/include/afs/softsig.h \
367         ${DEST}/include/potpourri.h \
368         ${DEST}/lib/afs/util.a \
369         ${DEST}/lib/afs/libafsutil.a \
370         ${DEST}/bin/sys
371