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