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