auth: Rewrite KeyFile handling code
[openafs.git] / tests / auth / Makefile.in
1
2 srcdir=@srcdir@
3 abs_top_builddir=@abs_top_builddir@
4 include @TOP_OBJDIR@/src/config/Makefile.config
5 include @TOP_OBJDIR@/src/config/Makefile.pthread
6
7 TESTS = superuser-t keys-t
8
9 MODULE_CFLAGS=-I$(srcdir)/..
10
11 all check test tests: $(TESTS)
12
13 MODULE_LIBS =   ../tap/libtap.a \
14                 $(abs_top_builddir)/lib/libafsauthent.a \
15                 $(abs_top_builddir)/lib/libafsrpc.a \
16                 $(abs_top_builddir)/lib/libafshcrypto.a \
17                 $(LIB_rfc3961) $(LIB_roken) -lafsutil\
18                 $(XLIBS)
19
20 superuser-t: superuser-t.o test.cs.o test.ss.o test.xdr.o
21         $(AFS_LDRULE) superuser-t.o test.cs.o test.ss.o test.xdr.o \
22                 $(MODULE_LIBS)
23
24 keys-t: keys-t.o
25         $(AFS_LDRULE) keys-t.o $(MODULE_LIBS)
26
27 writekeyfile: writekeyfile.o
28         $(AFS_LDRULE) writekeyfile.o $(MODULE_LIBS)
29
30 test.cs.c: test.xg
31         $(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
32
33 test.ss.c: test.xg
34         $(RXGEN) -A -x -S -o $@ $(srcdir)/test.xg
35
36 test.xdr.c: test.xg
37         $(RXGEN) -A -x -c -o $@ $(srcdir)/test.xg
38
39 test.h: test.xg
40         $(RXGEN) -A -x -h -o $@ $(srcdir)/test.xg
41
42 superuser-t.o: test.h
43
44 clean:
45         rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
46                 writekeyfile superuser-t keys-t