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
|
|
|
|
|
2012-02-28 13:50:33 +00:00
|
|
|
TESTS = authcon-t superuser-t keys-t realms-t
|
2010-09-15 11:17:14 +01:00
|
|
|
|
2012-05-07 21:52:16 +01:00
|
|
|
MODULE_CFLAGS=-I$(srcdir)/../.. -I$(srcdir)/../common/
|
2010-09-15 11:17:14 +01:00
|
|
|
|
|
|
|
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/libafsrpc.a \
|
|
|
|
$(abs_top_builddir)/lib/libafshcrypto.a \
|
2012-09-06 01:18:09 +01:00
|
|
|
$(abs_top_builddir)/src/opr/liboafs_opr.la \
|
2012-05-24 09:14:18 +01:00
|
|
|
$(abs_top_builddir)/src/util/liboafs_util.la \
|
|
|
|
$(LIB_rfc3961) $(LIB_roken) \
|
2010-09-15 11:17:14 +01:00
|
|
|
$(XLIBS)
|
2010-12-24 18:32:30 +00:00
|
|
|
|
2011-05-30 17:47:35 +01:00
|
|
|
authcon-t: authcon-t.o ../common/config.o
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_LDRULE_static) authcon-t.o ../common/config.o \
|
2011-03-04 22:37:10 +00:00
|
|
|
$(MODULE_LIBS)
|
|
|
|
|
2012-04-20 18:13:30 +01:00
|
|
|
superuser-t: superuser-t.o ../common/config.o ../common/rxkad.o \
|
|
|
|
test.cs.o test.ss.o test.xdr.o
|
2012-09-06 01:18:09 +01:00
|
|
|
$(LT_LDRULE_static) superuser-t.o ../common/config.o \
|
2012-05-21 18:04:32 +01:00
|
|
|
../common/rxkad.o ../common/servers.o \
|
2011-02-24 13:52:40 +00:00
|
|
|
test.cs.o test.ss.o test.xdr.o \
|
2010-12-27 20:29:48 +00:00
|
|
|
$(MODULE_LIBS)
|
|
|
|
|
2011-05-30 17:47:35 +01:00
|
|
|
keys-t: keys-t.o ../common/config.o
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_LDRULE_static) keys-t.o ../common/config.o $(MODULE_LIBS)
|
2010-12-27 20:29:48 +00:00
|
|
|
|
2012-02-28 13:50:33 +00:00
|
|
|
realms-t: realms-t.o ../common/config.o
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_LDRULE_static) realms-t.o ../common/config.o $(MODULE_LIBS)
|
2012-02-28 13:50:33 +00:00
|
|
|
|
2010-12-27 20:29:48 +00:00
|
|
|
writekeyfile: writekeyfile.o
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_LDRULE_static) writekeyfile.o $(MODULE_LIBS)
|
2010-12-27 20:29:48 +00:00
|
|
|
|
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
|
|
|
|
|
2011-05-30 17:47:35 +01:00
|
|
|
superuser-t.o: test.h
|
2010-12-24 18:32:30 +00:00
|
|
|
|
2010-09-15 11:17:14 +01:00
|
|
|
clean:
|
2012-05-21 18:04:32 +01:00
|
|
|
$(LT_CLEAN)
|
2010-12-27 20:29:48 +00:00
|
|
|
rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
|
2011-03-04 22:37:10 +00:00
|
|
|
writekeyfile $(TESTS)
|