Build system: Move install definitions to include
[openafs.git] / src / tests / Makefile.in
1 srcdir          = @srcdir@
2 include @TOP_OBJDIR@/src/config/Makefile.config
3 include @TOP_OBJDIR@/src/config/Makefile.lwp
4
5
6 SHELL           = /bin/sh
7
8 INCDIRS=-I${TOP_OBJDIR}/src/config -I${TOP_INCDIR}/afs -I${TOP_INCDIR}
9 INCLIBS=-L${SRCDIR}/lib/afs -L${TOP_LIBDIR}
10
11 LIBS=\
12         libdumpscan.a \
13         libxfiles.a \
14         ${TOP_LIBDIR}/libauth.a \
15         ${TOP_LIBDIR}/libaudit.a \
16         ${TOP_LIBDIR}/libvolser.a \
17         ${TOP_LIBDIR}/libvldb.a \
18         ${TOP_LIBDIR}/libubik.a \
19         ${TOP_LIBDIR}/librxkad.a \
20         ${TOP_LIBDIR}/libsys.a \
21         ${TOP_LIBDIR}/librx.a \
22         ${TOP_LIBDIR}/liblwp.a \
23         ${TOP_LIBDIR}/util.a \
24         ${TOP_LIBDIR}/libafscom_err.a \
25         ${XLIBS}
26
27 OBJS_afsdump_scan    = afsdump_scan.o repair.o
28 OBJS_afsdump_xsed    = afsdump_xsed.o repair.o
29 OBJS_libxfiles.a     = xfiles.o xf_errs.o xf_printf.o int64.o \
30                        xf_files.o xf_rxcall.o xf_profile.o
31 OBJS_libdumpscan.a   = primitive.o util.o dumpscan_errs.o parsetag.o \
32                        parsedump.o parsevol.o parsevnode.o dump.o \
33                        directory.o pathname.o backuphdr.o stagehdr.o
34
35 TARGETS = libxfiles.a libdumpscan.a \
36           afsdump_scan afsdump_dirlist afsdump_extract dumptool
37
38 all: run-tests OpenAFS/Dirpath.pm libxfiles.a libdumpscan.a $(TEST_PROGRAMS)\
39         afsdump_scan afsdump_dirlist afsdump_extract dumptool OpenAFS/Dirpath.sh
40         @chmod +x run-tests
41
42 generated: xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h
43
44 afsdump_scan: libxfiles.a libdumpscan.a $(OBJS_afsdump_scan)
45         $(AFS_LDRULE) $(OBJS_afsdump_scan) $(LIBS)
46
47
48 afsdump_xsed: libxfiles.a libdumpscan.a $(OBJS_afsdump_xsed)
49         $(AFS_LDRULE) $(OBJS_afsdump_xsed) $(LIBS)
50
51 afsdump_dirlist: libxfiles.a libdumpscan.a afsdump_dirlist.o
52         $(AFS_LDRULE) afsdump_dirlist.o $(LIBS)
53
54 afsdump_extract: libxfiles.a libdumpscan.a afsdump_extract.o
55         $(AFS_LDRULE) afsdump_extract.o $(LIBS)
56
57 null-search: libxfiles.a libdumpscan.a null-search.c
58         $(AFS_LDRULE) null-search.c $(LIBS)
59
60 dumptool: dumptool.c
61         $(AFS_LDRULE) dumptool dumptool.c
62
63 libxfiles.a: $(OBJS_libxfiles.a)
64         -rm -f libxfiles.a
65         $(AR) r libxfiles.a $(OBJS_libxfiles.a)
66         $(RANLIB) libxfiles.a
67
68 libdumpscan.a: $(OBJS_libdumpscan.a)
69         -rm -f libdumpscan.a
70         $(AR) r libdumpscan.a $(OBJS_libdumpscan.a)
71         $(RANLIB) libdumpscan.a
72
73 xf_errs.c xf_errs.h: xf_errs.et
74         $(COMPILE_ET) xf_errs.et
75
76 dumpscan_errs.c dumpscan_errs.h: dumpscan_errs.et
77         $(COMPILE_ET) dumpscan_errs.et
78
79 util.o xfiles.o xf_files.o: xf_errs.h
80 backuphdr.o directory.o parsedump.o parsetag.o: dumpscan_errs.h
81 parsevnode.o parsevol.o pathname.o stagehdr.o:  dumpscan_errs.h
82 util.o:                                         dumpscan_errs.h
83
84 # repair addresses the same storage as two different types of structs at the
85 # same time.
86 CFLAGS_repair.o = @CFLAGS_NOSTRICT@
87 repair.o: repair.c dumpscan_errs.h
88
89 ${TOP_LIBDIR}/libxfiles.a: libxfiles.a
90         ${INSTALL_DATA} $? $@
91
92 ${TOP_LIBDIR}/libdumpscan.a: libdumpscan.a
93         ${INSTALL_DATA} $? $@
94
95 SYS_LIBS        = ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/util.a
96
97 AUTH_LIBS       = ${TOP_LIBDIR}/libauth.a ${SYS_LIBS}
98
99 INT_LIBS        = ${TOP_LIBDIR}/libafsint.a ${TOP_LIBDIR}/libsys.a ${TOP_LIBDIR}/librxkad.a ${TOP_LIBDIR}/librx.a ${TOP_LIBDIR}/liblwp.a ${TOP_LIBDIR}/libafscom_err.a ${TOP_LIBDIR}/util.a
100
101 TEST_PROGRAMS = write-ro-file hello-world read-vs-mmap read-vs-mmap2     \
102                 mmap-and-read large-dir large-dir2 large-dir3 mountpoint \
103                 test-setgroups test-setpag hardlink1 hardlink2 mkdir2    \
104                 create-files create-symlinks create-dirs dup2-and-unlog  \
105                 readdir-vs-lstat read-write create-remove mkdir3         \
106                 symlink echo-n test-parallel1 test-parallel2 create-stat \
107                 kill-softly kill-softer rm-rf exit-wo-close              \
108                 mmap-vs-read mmap-vs-read2 strange-characters-c pine     \
109                 append-over-page write-ucc utime-dir mmap-shared-write   \
110                 rename5 rename-under-feet write-closed write-closed2     \
111                 truncate fchmod make-page utime-file rename6             \
112                 write3 still-there-p write-large afscp hardlink4         \
113                 intr-read asu truncate-files mmap-cat blocks-new-file    \
114                 fsx write-rand
115
116 TEST_OBJS     = write-ro-file.o read-vs-mmap.o read-vs-mmap2.o             \
117                 mmap-and-read.o large-dir.o large-dir2.o large-dir3.o      \
118                 test-setgroups.o test-setpag.o hardlink1.o hardlink2.o     \
119                 mkdir2.o create-files.o create-symlinks.o create-dirs.o    \
120                 dup2-and-unlog.o readdir-vs-lstat.o read-write.o           \
121                 create-remove.o symlink.o echo-n.o test-parallel1.o        \
122                 test-parallel1.o mkdir3.o rename6.o                        \
123                 create-stat.o kill-softly.o kill-softer.o rm-rf.o          \
124                 exit-wo-close.o mmap-vs-read.o mmap-vs-read2.o             \
125                 strange-characters-c.o pine.o append-over-page.o           \
126                 write-ucc.o utime-dir.o mmap-shared-write.o rename5.o      \
127                 rename-under-feet.o write-closed.o write-closed2.o         \
128                 truncate.o fchmod.o make-page.o utime-file.o               \
129                 write3.o still-there-p.o write-large.o hardlink4.o         \
130                 intr-read.o asu.o truncate-files.o mmap-cat.o              \
131                 blocks-new-file.o fsx.o afscp.o afscp_callback.o           \
132                 write-rand.o
133
134 TEST_SRCS     = write-ro-file.c read-vs-mmap.c read-vs-mmap2.c             \
135                 mmap-and-read.c large-dir.c large-dir2.c large-dir3.c      \
136                 test-setgroups.c test-setpag.c hardlink1.c hardlink2.c     \
137                 mkdir2.c create-files.c create-symlinks.c create-dirs.c    \
138                 dup2-and-unlog.c readdir-vs-lstat.c read-write.c           \
139                 create-remove.c symlink.c echo-n.c test-parallel1.c        \
140                 test-parallel2.c mkdir3.c rename6.c                        \
141                 create-stat.c kill-softly.c kill-softer.c rm-rf.c          \
142                 exit-wo-close.c mmap-vs-read.c mmap-vs-read2.c             \
143                 strange-characters-c.c pine.c append-over-page.c           \
144                 write-ucc.c utime-dir.c mmap-shared-write.c rename5.c      \
145                 rename-under-feet.c write-closed.c write-closed2.c         \
146                 truncate.c fchmod.c make-page.c utime-file.c               \
147                 write3.c still-there-p.c write-large.c hardlink4.c         \
148                 intr-read.c asu.c truncate-files.c mmap-cat.c              \
149                 blocks-new-file.c fsx.c afscp.c afscp_callback.c           \
150                 write-rand.c
151
152 EXTRA_OBJS = err.o errx.o warn.o warnx.o vwarn.o vwarnx.o verr.o verrx.o warnerr.o snprintf.o 
153
154 fsx: fsx.o $(EXTRA_OBJS)
155         $(AFS_LDRULE) fsx.o $(EXTRA_OBJS) $(LIBS)
156
157 write-rand: write-rand.o $(EXTRA_OBJS)
158         $(AFS_LDRULE) write-rand.o $(EXTRA_OBJS) $(LIBS)
159
160 write-ro-file: write-ro-file.o $(EXTRA_OBJS)
161         $(AFS_LDRULE) write-ro-file.o $(EXTRA_OBJS) $(LIBS)
162
163 write-large: write-large.o $(EXTRA_OBJS)
164         $(AFS_LDRULE) write-large.o $(EXTRA_OBJS) $(LIBS)
165
166 read-vs-mmap: read-vs-mmap.o $(EXTRA_OBJS)
167         $(AFS_LDRULE) read-vs-mmap.o $(EXTRA_OBJS) $(LIBS)
168
169 read-vs-mmap2: read-vs-mmap2.o $(EXTRA_OBJS)
170         $(AFS_LDRULE) read-vs-mmap2.o $(EXTRA_OBJS) $(LIBS)
171
172 mmap-vs-read: mmap-vs-read.o $(EXTRA_OBJS)
173         $(AFS_LDRULE) mmap-vs-read.o $(EXTRA_OBJS) $(LIBS)
174
175 mmap-vs-read2: mmap-vs-read2.o $(EXTRA_OBJS)
176         $(AFS_LDRULE) mmap-vs-read2.o $(EXTRA_OBJS) $(LIBS)
177
178 read-write: read-write.o $(EXTRA_OBJS)
179         $(AFS_LDRULE) read-write.o $(EXTRA_OBJS) $(LIBS)
180
181 mmap-and-read: mmap-and-read.o $(EXTRA_OBJS)
182         $(AFS_LDRULE) mmap-and-read.o $(EXTRA_OBJS) $(LIBS)
183
184 large-dir: large-dir.o $(EXTRA_OBJS)
185         $(AFS_LDRULE) large-dir.o $(EXTRA_OBJS) $(LIBS)
186
187 large-dir2: large-dir2.o $(EXTRA_OBJS)
188         $(AFS_LDRULE) large-dir2.o $(EXTRA_OBJS) $(LIBS)
189
190 large-dir3: large-dir3.o $(EXTRA_OBJS)
191         $(AFS_LDRULE) large-dir3.o $(EXTRA_OBJS) $(LIBS)
192
193 fchmod: fchmod.o $(EXTRA_OBJS)
194         $(AFS_LDRULE) fchmod.o $(EXTRA_OBJS) $(LIBS)
195
196 truncate: truncate.o $(EXTRA_OBJS)
197         $(AFS_LDRULE) truncate.o $(EXTRA_OBJS) $(LIBS)
198
199 make-page: make-page.o $(EXTRA_OBJS)
200         $(AFS_LDRULE) make-page.o $(EXTRA_OBJS) $(LIBS)
201
202 still-there-p: still-there-p.o $(EXTRA_OBJS)
203         $(AFS_LDRULE) still-there-p.o $(EXTRA_OBJS) $(LIBS)
204
205 intr-read: intr-read.o $(EXTRA_OBJS)
206         $(AFS_LDRULE) intr-read.o $(EXTRA_OBJS) $(LIBS)
207
208 blocks-new-file: blocks-new-file.o $(EXTRA_OBJS)
209         $(AFS_LDRULE) blocks-new-file.o $(EXTRA_OBJS) $(LIBS)
210
211 asu: asu.o $(EXTRA_OBJS)
212         $(AFS_LDRULE) asu.o $(EXTRA_OBJS) $(LIBS)
213
214 test-setgroups: test-setgroups.o $(EXTRA_OBJS)
215         $(AFS_LDRULE) test-setgroups.o $(EXTRA_OBJS) $(SYS_LIBS) $(LIBS)
216
217 test-setpag: test-setpag.o $(EXTRA_OBJS)
218         $(AFS_LDRULE) test-setpag.o $(EXTRA_OBJS) $(SYS_LIBS) $(LIBS)
219
220 hardlink1: hardlink1.o $(EXTRA_OBJS)
221         $(AFS_LDRULE) hardlink1.o $(EXTRA_OBJS) $(LIBS)
222
223 hardlink2: hardlink2.o $(EXTRA_OBJS)
224         $(AFS_LDRULE) hardlink2.o $(EXTRA_OBJS) $(LIBS)
225
226 hardlink4: hardlink4.o $(EXTRA_OBJS)
227         $(AFS_LDRULE) hardlink4.o $(EXTRA_OBJS) $(LIBS)
228
229 mkdir2: mkdir2.o $(EXTRA_OBJS)
230         $(AFS_LDRULE) mkdir2.o $(EXTRA_OBJS) $(LIBS)
231
232 mkdir3: mkdir3.o $(EXTRA_OBJS)
233         $(AFS_LDRULE) mkdir3.o $(EXTRA_OBJS) $(LIBS)
234
235 create-files: create-files.o $(EXTRA_OBJS)
236         $(AFS_LDRULE) create-files.o $(EXTRA_OBJS) $(LIBS)
237
238 create-symlinks: create-symlinks.o $(EXTRA_OBJS)
239         $(AFS_LDRULE) create-symlinks.o $(EXTRA_OBJS) $(LIBS)
240
241 create-dirs: create-dirs.o $(EXTRA_OBJS)
242         $(AFS_LDRULE) create-dirs.o $(EXTRA_OBJS) $(LIBS)
243
244 create-remove: create-remove.o $(EXTRA_OBJS)
245         $(AFS_LDRULE) create-remove.o $(EXTRA_OBJS) $(LIBS)
246
247 dup2-and-unlog: dup2-and-unlog.o $(EXTRA_OBJS)
248         $(AFS_LDRULE) dup2-and-unlog.o  $(EXTRA_OBJS) $(AUTH_LIBS) $(LIBS)
249
250 readdir-vs-lstat: readdir-vs-lstat.o $(EXTRA_OBJS)
251         $(AFS_LDRULE) readdir-vs-lstat.o $(EXTRA_OBJS) $(LIBS)
252
253 symlink: symlink.o $(EXTRA_OBJS)
254         $(AFS_LDRULE) symlink.o $(EXTRA_OBJS) $(LIBS)
255
256 echo-n: echo-n.o $(EXTRA_OBJS)
257         $(AFS_LDRULE) echo-n.o $(EXTRA_OBJS)
258
259 test-parallel1: test-parallel1.o $(EXTRA_OBJS)
260         $(AFS_LDRULE) test-parallel1.o $(EXTRA_OBJS) $(LIBS)
261
262 test-parallel2: test-parallel2.o $(EXTRA_OBJS)
263         $(AFS_LDRULE) test-parallel2.o $(EXTRA_OBJS) $(LIBS)
264
265 create-stat: create-stat.o fs_lib.o $(EXTRA_OBJS)
266         $(AFS_LDRULE) create-stat.o fs_lib.o $(EXTRA_OBJS) $(SYS_LIBS) $(LIBS)
267
268 kill-softly: kill-softly.o $(EXTRA_OBJS)
269         $(AFS_LDRULE) kill-softly.o $(EXTRA_OBJS) $(LIBS)
270
271 kill-softer: kill-softer.o $(EXTRA_OBJS)
272         $(AFS_LDRULE) kill-softer.o $(EXTRA_OBJS) $(LIBS)
273
274 rm-rf: rm-rf.o fs_lib.o $(EXTRA_OBJS)
275         $(AFS_LDRULE) rm-rf.o fs_lib.o $(EXTRA_OBJS) $(SYS_LIBS) $(LIBS)
276
277 exit-wo-close: exit-wo-close.o $(EXTRA_OBJS)
278         $(AFS_LDRULE) exit-wo-close.o $(EXTRA_OBJS) $(LIBS)
279
280 strange-characters-c: strange-characters-c.o $(EXTRA_OBJS)
281         $(AFS_LDRULE) strange-characters-c.o $(EXTRA_OBJS) $(LIBS)
282
283 pine: pine.o $(EXTRA_OBJS)
284         $(AFS_LDRULE) pine.o $(EXTRA_OBJS) $(LIBS)
285
286 append-over-page: append-over-page.o $(EXTRA_OBJS)
287         $(AFS_LDRULE) append-over-page.o $(EXTRA_OBJS) $(LIBS)
288
289 write-ucc: write-ucc.o $(EXTRA_OBJS)
290         $(AFS_LDRULE) write-ucc.o $(EXTRA_OBJS) $(LIBS)
291
292 utime-dir: utime-dir.o $(EXTRA_OBJS)
293         $(AFS_LDRULE) utime-dir.o $(EXTRA_OBJS) $(LIBS)
294
295 utime-file: utime-file.o $(EXTRA_OBJS)
296         $(AFS_LDRULE) utime-file.o $(EXTRA_OBJS) $(LIBS)
297
298 mmap-shared-write: mmap-shared-write.o $(EXTRA_OBJS)
299         $(AFS_LDRULE) mmap-shared-write.o $(EXTRA_OBJS) $(LIBS)
300
301 rename5: rename5.o $(EXTRA_OBJS)
302         $(AFS_LDRULE) rename5.o $(EXTRA_OBJS) $(LIBS)
303
304 rename6: rename6.o $(EXTRA_OBJS)
305         $(AFS_LDRULE) rename6.o $(EXTRA_OBJS) $(LIBS)
306
307 write3: write3.o $(EXTRA_OBJS)
308         $(AFS_LDRULE) write3.o $(EXTRA_OBJS) $(LIBS)
309
310 rename-under-feet: rename-under-feet.o $(EXTRA_OBJS)
311         $(AFS_LDRULE) rename-under-feet.o $(EXTRA_OBJS) $(LIBS)
312
313 write-closed: write-closed.o $(EXTRA_OBJS)
314         $(AFS_LDRULE) write-closed.o $(EXTRA_OBJS) $(LIBS)
315
316 write-closed2: write-closed2.o $(EXTRA_OBJS)
317         $(AFS_LDRULE) write-closed2.o $(EXTRA_OBJS) $(SYS_LIBS) $(LIBS)
318
319 truncate-files: truncate-files.o $(EXTRA_OBJS)
320         $(AFS_LDRULE) truncate-files.o $(EXTRA_OBJS) $(LIBS)
321
322 mmap-cat: mmap-cat.o $(EXTRA_OBJS)
323         $(AFS_LDRULE) mmap-cat.o $(EXTRA_OBJS) $(LIBS)
324
325 run-tests: run-tests.in
326         (cd ../..; CONFIG_FILES=src/tests/run-tests CONFIG_HEADERS= $(SHELL) @TOP_OBJDIR@/config.status)
327         @chmod +x run-tests
328
329 afscp: afscp.o afscp_callback.o $(EXTRA_OBJS)
330         $(AFS_LDRULE) afscp.o afscp_callback.o $(EXTRA_OBJS) $(INT_LIBS) ${XLIBS}
331
332 hello-world:   hello-world.in
333         sed -e "s!%CC%!$(CC)!" $(srcdir)/hello-world.in > $@
334         chmod +x hello-world
335
336 mountpoint:   mountpoint.in
337         sed -e "s!%bindir%!$(bindir)!" $(srcdir)/mountpoint.in > $@
338         chmod +x mountpoint
339
340 dest:
341
342 install:
343
344 uninstall:
345
346 clean:
347         -rm -f xf_errs.c xf_errs.h dumpscan_errs.c dumpscan_errs.h *.o \
348         $(TARGETS) run-tests $(TEST_PROGRAMS) OpenAFS/Dirpath.pm OpenAFS/Dirpath.sh
349
350 include ../config/Makefile.version
351
352 TAGS:   $(TEST_SRCS)
353         etags $(TEST_SRCS)
354
355 check: run-tests $(TEST_PROGRAMS)
356         ./run-tests -all
357
358 check-fast: run-tests $(TEST_PROGRAMS)
359         ./run-tests -all -fast
360
361 # Note: The autoconf variables are not fully expanded
362 #       until make is run so we resort to creating the
363 #       configuration at make time.
364 OpenAFS/Dirpath.pm: Makefile
365         @echo "Creating OpenAFS/Dirpath.pm"
366         @echo "# This is -*- perl -*-"                          >$@
367         @echo "# auto-generated by src/tests/Makefile"          >>$@
368         @echo "# DO NOT EDIT"                                   >>$@
369         @echo "package OpenAFS::Dirpath;"                       >>$@
370         @echo "use strict;"                                     >>$@
371         @echo "use vars qw( @ISA @EXPORT \$$openafsdirpath);"   >>$@
372         @echo "@ISA = qw(Exporter);"                            >>$@
373         @echo "require Exporter;"                               >>$@
374         @echo "@EXPORT = qw(\$$openafsdirpath);"                >>$@
375         @echo ""                                                >>$@
376         @echo "\$$openafsdirpath = {"                           >>$@
377         @echo "  'afsconfdir'       => '@afsconfdir@',"         >>$@
378         @echo "  'viceetcdir'       => '@viceetcdir@',"         >>$@
379         @echo "  'afssrvbindir'     => '@afssrvbindir@',"       >>$@
380         @echo "  'afssrvsbindir'    => '@afssrvsbindir@',"      >>$@
381         @echo "  'afssrvlibexecdir' => '@afssrvlibexecdir@',"   >>$@
382         @echo "  'afsdbdir'         => '@afsdbdir@',"           >>$@
383         @echo "  'afslogsdir'       => '@afslogsdir@',"         >>$@
384         @echo "  'afslocaldir'      => '@afslocaldir@',"        >>$@
385         @echo "  'afsbackupdir'     => '@afsbackupdir@',"       >>$@
386         @echo "  'afsbosconfigdir'  => '@afsbosconfigdir@',"    >>$@
387         @echo "  'ostype'           => '@MKAFS_OSTYPE@',"       >>$@
388         @if test "@afsconfdir@" = "/usr/afs/etc" ; then \
389                 echo "  # transarc paths" ;\
390                 echo "  'cachedir'     => '/usr/vice/cache'," ;\
391                 echo "  'afsddir'      => '/usr/vice/etc'," ;\
392                 echo "  'initdir'      => '/usr/vice/etc',"  ;\
393                 echo "  'afskerneldir' => '/usr/vice/etc/modload'," ;\
394                 echo "  'afswsbindir'  => '/usr/afsws/bin'," ;\
395         else \
396                 echo "  # modern paths" ;\
397                 echo "  'cachedir'     => '@localstatedir@/openafs/cache'," ;\
398                 echo "  'afsddir'      => '@afssrvsbindir@'," ;\
399                 echo "  'initdir'      => '@sysconfdir@',"  ;\
400                 echo "  'afskerneldir' => '@afskerneldir@'," ;\
401                 echo "  'afswsbindir'  => '@afssrvbindir@'," ;\
402         fi >>$@
403         @echo "};"                                              >>$@
404         @echo ""                                                >>$@
405         @echo "1;"                                              >>$@
406
407 OpenAFS/Dirpath.sh: Makefile
408         @echo "Creating OpenAFS/Dirpath.sh"                                     
409         @echo "# auto-generated by src/tests/Makefile"            >$@
410         @echo "# source or '.' in this file in shell"              >>$@
411         @echo "# DO NOT EDIT"                                                      >>$@
412         @echo "  AFSCONFDIR=@afsconfdir@"         >>$@
413         @echo "  VICEETCDIR=@viceetcdir@"         >>$@
414         @echo "  AFSSRVBINDIR=@afssrvbindir@"       >>$@
415         @echo "  AFSSRVSBINDIR=@afssrvsbindir@"      >>$@
416         @echo "  AFSSRVLIBEXECDIR=@afssrvlibexecdir@"   >>$@
417         @echo "  AFSDBDIR=@afsdbdir@"           >>$@
418         @echo "  AFSLOGSDIR=@afslogsdir@"         >>$@
419         @echo "  AFSLOCALDIR=@afslocaldir@"        >>$@
420         @echo "  AFSBACKUPDIR=@afsbackupdir@"       >>$@
421         @echo "  AFSBOSCONFIGDIR=@afsbosconfigdir@"    >>$@
422         @echo "  OSTYPE=@MKAFS_OSTYPE@"       >>$@
423         @if test "@afsconfdir@" = "/usr/afs/etc" ;  then \
424                 echo "# transarc paths" ;\
425                 echo "  CACHEDIR=/usr/vice/cache" ;\
426                 echo "  AFSDDIR=/usr/vice/etc" ;\
427                 echo "  INITDIR=/usr/vice/etc" ; \
428                 echo "  AFSKERNELDIR=/usr/vice/etc/modload" ;\
429                 echo "  AFSWSBINDIR=/usr/afsws/bin" ;\
430         else \
431                 echo "# modern paths" ;\
432             echo "  CACHEDIR=@localstatedir@/openafs/cache" ;\
433             echo "  AFSDDIR=@afssrvsbindir@" ;\
434             echo "  INITDIR=@sysconfdir@"  ;\
435             echo "  AFSKERNELDIR=@afskerneldir@" ;\
436             echo "  AFSWSBINDIR=@afssrvbindir@" ;\
437         fi >>$@
438         @echo "export AFSCONFDIR VICEETCDIR AFSSRVBINDIR AFSSRVSBINDIR" >>$@
439         @echo "export AFSSRVLIBEXECDIR AFSDBDIR AFSLOGSDIR AFSLOCALDIR" >>$@
440         @echo "export AFSBACKUPDIR AFSBOSCONFIGDIR OSTYPE CACHEDIR AFSDDIR" >>$@
441         @echo "export INITDIR AFSKERNELDIR AFSWSBINDIR" >>$@
442
443 .PHONY:         all install clean realclean distclean mostlyclean install uninstall check