d22c3d4e287a49d0bdc42c20399649760414f3b2
[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)/lib/libopr.a \
18                 $(LIB_rfc3961) $(LIB_roken) -lafsutil\
19                 $(XLIBS)
20
21 authcon-t: authcon-t.o ../common/config.o
22         $(AFS_LDRULE) authcon-t.o ../common/config.o \
23                 $(MODULE_LIBS)
24
25 superuser-t: superuser-t.o ../common/config.o test.cs.o test.ss.o test.xdr.o
26         $(AFS_LDRULE) superuser-t.o ../common/config.o \
27                 test.cs.o test.ss.o test.xdr.o \
28                 $(MODULE_LIBS)
29
30 keys-t: keys-t.o ../common/config.o
31         $(AFS_LDRULE) keys-t.o ../common/config.o $(MODULE_LIBS)
32
33 realms-t: realms-t.o ../common/config.o
34         $(AFS_LDRULE) realms-t.o ../common/config.o $(MODULE_LIBS)
35
36 writekeyfile: writekeyfile.o
37         $(AFS_LDRULE) writekeyfile.o $(MODULE_LIBS)
38
39 test.cs.c: test.xg
40         $(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
41
42 test.ss.c: test.xg
43         $(RXGEN) -A -x -S -o $@ $(srcdir)/test.xg
44
45 test.xdr.c: test.xg
46         $(RXGEN) -A -x -c -o $@ $(srcdir)/test.xg
47
48 test.h: test.xg
49         $(RXGEN) -A -x -h -o $@ $(srcdir)/test.xg
50
51 superuser-t.o: test.h
52
53 clean:
54         rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
55                 writekeyfile $(TESTS)