2010-09-15 11:17:14 +01:00
|
|
|
|
|
|
|
srcdir=@srcdir@
|
|
|
|
abs_top_builddir=@abs_top_builddir@
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
|
2010-12-27 20:29:48 +00:00
|
|
|
TESTS = superuser-t keys-t
|
2010-09-15 11:17:14 +01:00
|
|
|
|
|
|
|
MODULE_CFLAGS=-I$(srcdir)/..
|
|
|
|
|
|
|
|
all check test tests: $(TESTS)
|
|
|
|
|
2010-12-27 20:29:48 +00:00
|
|
|
MODULE_LIBS = ../tap/libtap.a \
|
2010-09-15 11:17:14 +01:00
|
|
|
$(abs_top_builddir)/lib/libafsauthent.a \
|
|
|
|
$(abs_top_builddir)/lib/librxgk.a \
|
|
|
|
$(abs_top_builddir)/lib/libafsrpc.a \
|
|
|
|
$(abs_top_builddir)/lib/libafshcrypto.a \
|
|
|
|
$(LIB_rfc3961) $(LIB_roken) -lafsutil\
|
|
|
|
$(XLIBS)
|
2010-12-24 18:32:30 +00:00
|
|
|
|
2010-12-27 20:29:48 +00:00
|
|
|
superuser-t: superuser-t.o test.cs.o test.ss.o test.xdr.o
|
|
|
|
$(AFS_LDRULE) superuser-t.o test.cs.o test.ss.o test.xdr.o \
|
|
|
|
$(MODULE_LIBS)
|
|
|
|
|
|
|
|
keys-t: keys-t.o
|
|
|
|
$(AFS_LDRULE) keys-t.o $(MODULE_LIBS)
|
|
|
|
|
|
|
|
writekeyfile: writekeyfile.o
|
|
|
|
$(AFS_LDRULE) writekeyfile.o $(MODULE_LIBS)
|
|
|
|
|
2010-12-24 18:32:30 +00:00
|
|
|
test.cs.c: test.xg
|
|
|
|
$(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
|
|
|
|
|
|
|
|
test.ss.c: test.xg
|
|
|
|
$(RXGEN) -A -x -S -o $@ $(srcdir)/test.xg
|
|
|
|
|
|
|
|
test.xdr.c: test.xg
|
|
|
|
$(RXGEN) -A -x -c -o $@ $(srcdir)/test.xg
|
|
|
|
|
|
|
|
test.h: test.xg
|
|
|
|
$(RXGEN) -A -x -h -o $@ $(srcdir)/test.xg
|
|
|
|
|
|
|
|
superuser-t.o: test.h
|
|
|
|
|
2010-09-15 11:17:14 +01:00
|
|
|
clean:
|
2010-12-27 20:29:48 +00:00
|
|
|
rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
|
|
|
|
writekeyfile superuser-t keys-t
|