include @TOP_OBJDIR@/src/config/Makefile.config
include @TOP_OBJDIR@/src/config/Makefile.pthread
-MODULE_CFLAGS = -I$(srcdir)/../..
+MODULE_CFLAGS = -I$(TOP_OBJDIR) -I$(srcdir)/../common/
-LIBS = ../tap/libtap.a \
- $(abs_top_builddir)/lib/libcmd.a \
- $(abs_top_builddir)/lib/libafscom_err.a \
- $(abs_top_builddir)/src/opr/liboafs_opr.la \
- $(abs_top_builddir)/lib/util.a
+LIBS = $(abs_top_builddir)/tests/common/libafstest_common.la \
+ $(abs_top_builddir)/src/cmd/liboafs_cmd.la \
+ $(abs_top_builddir)/src/comerr/liboafs_comerr.la \
+ $(abs_top_builddir)/src/opr/liboafs_opr.la
-tests = command-t
+BINS = command-t
-all check test tests: $(tests)
+all: $(BINS)
command-t: command-t.o $(LIBS)
$(LT_LDRULE_static) command-t.o $(LIBS) $(LIB_roken) $(XLIBS)
clean distclean:
$(LT_CLEAN)
- $(RM) -f $(tests) *.o core
+ $(RM) -f $(BINS) *.o core