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