include @TOP_OBJDIR@/src/config/Makefile.config
include @TOP_OBJDIR@/src/config/Makefile.pthread
-TESTS = vos-t
+BINS = vos-t
-MODULE_CFLAGS=-I$(srcdir)/../.. -I$(srcdir)/../common/
+MODULE_CFLAGS=-I$(TOP_OBJDIR) -I$(srcdir)/../common/
-all check test tests: $(TESTS)
+all: $(BINS)
-# The direct reference of viced libraries here is a colossal hack, but
-# we're just not building pthreaded versions of the vldb interface at the moment.
-# Soon, I hope ...
-
-MODULE_LIBS = ../tap/libtap.a \
- $(abs_top_builddir)/src/viced/vldbint.cs.o \
- $(abs_top_builddir)/src/viced/vldbint.xdr.o \
- $(abs_top_builddir)/lib/libafsauthent.a \
- $(abs_top_builddir)/lib/libafsrpc.a \
- $(abs_top_builddir)/lib/libafshcrypto.a \
- $(abs_top_builddir)/lib/libopr.a \
- $(LIB_rfc3961) $(LIB_roken) -lafsutil\
+MODULE_LIBS = $(abs_top_builddir)/tests/common/libafstest_common.la \
+ $(abs_top_builddir)/src/vlserver/liboafs_vldb.la \
$(XLIBS)
-vos-t: vos-t.o ../common/config.o ../common/servers.o ../common/ubik.o
- $(AFS_LDRULE) vos-t.o ../common/config.o ../common/servers.o \
- ../common/ubik.o $(MODULE_LIBS)
+vos-t: vos-t.o
+ $(LT_LDRULE_static) vos-t.o $(MODULE_LIBS)
clean:
- rm -f *.o $(TESTS)
+ $(LT_CLEAN)
+ rm -f *.o $(BINS)