800fb47c60d088e140b8015b43b79a4ec4344adb
[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 = authcon-t superuser-t keys-t realms-t
8
9 MODULE_CFLAGS=-I$(srcdir)/../.. -I$(srcdir)/../common/
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                 $(abs_top_builddir)/src/opr/liboafs_opr.la \
18                 $(LIB_rfc3961) $(LIB_roken) -lafsutil\
19                 $(XLIBS)
20
21 authcon-t: authcon-t.o ../common/config.o
22         $(LT_LDRULE_static) authcon-t.o ../common/config.o \
23                 $(MODULE_LIBS)
24
25 superuser-t: superuser-t.o ../common/config.o ../common/rxkad.o \
26              test.cs.o test.ss.o test.xdr.o
27         $(LT_LDRULE_static) superuser-t.o ../common/config.o \
28                 ../common/rxkad.o ../common/servers.o \
29                 test.cs.o test.ss.o test.xdr.o \
30                 $(MODULE_LIBS)
31
32 keys-t: keys-t.o ../common/config.o
33         $(LT_LDRULE_static) keys-t.o ../common/config.o $(MODULE_LIBS)
34
35 realms-t: realms-t.o ../common/config.o
36         $(LT_LDRULE_static) realms-t.o ../common/config.o $(MODULE_LIBS)
37
38 writekeyfile: writekeyfile.o
39         $(LT_LDRULE_static) writekeyfile.o $(MODULE_LIBS)
40
41 test.cs.c: test.xg
42         $(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
43
44 test.ss.c: test.xg
45         $(RXGEN) -A -x -S -o $@ $(srcdir)/test.xg
46
47 test.xdr.c: test.xg
48         $(RXGEN) -A -x -c -o $@ $(srcdir)/test.xg
49
50 test.h: test.xg
51         $(RXGEN) -A -x -h -o $@ $(srcdir)/test.xg
52
53 superuser-t.o: test.h
54
55 clean:
56         $(LT_CLEAN)
57         rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
58                 writekeyfile $(TESTS)