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