1include ../../make.conf
2include ../../$(MAKEINC)
3
4TEST_DOT_PATH = ../test-dot
5LIB_PATH = ../../$(OUTPUT_DIR)
6HEADER_PATH = -I../../src -I..
7TEST_GBMV_PATH = ../test-gbmv
8TEST_TRSV_PATH = ../test-trsv
9
10TEST_GBMV_OBJS = $(TEST_GBMV_PATH)/gbmv-support.o
11TEST_TRSV_OBJS = $(TEST_TRSV_PATH)/BLAS_dot_testgen_trsv.o \
12	$(TEST_TRSV_PATH)/testgen_BLAS_sdot_x.o
13
14TEST_DOT_OBJS = $(TEST_DOT_PATH)/testgen_BLAS_sdot.o \
15		$(TEST_DOT_PATH)/testgen_BLAS_ddot.o \
16		$(TEST_DOT_PATH)/testgen_BLAS_cdot.o \
17		$(TEST_DOT_PATH)/testgen_BLAS_zdot.o \
18		$(TEST_DOT_PATH)/testgen_aux.o \
19		$(TEST_DOT_PATH)/test_dot.o \
20		$(TEST_DOT_PATH)/BLAS_dot_testgen.o \
21		$(TEST_DOT_PATH)/print_vector.o \
22		$(TEST_DOT_PATH)/copy_vector.o
23
24TEST_SRCS = do_test_tbsv.c BLAS_tbsv_testgen.c tbsv-support.c
25
26TEST_OBJS = $(TEST_SRCS:.c=.o)
27COMMON_OBJS = ../common/dummy_main.o
28
29ALL_OBJS = $(TEST_OBJS) $(TEST_DOT_OBJS) \
30	$(TEST_GBMV_OBJS) $(TEST_TRSV_OBJS) $(COMMON_OBJS)
31
32test: do_test_tbsv
33	@echo Testing TBSV - default quick test
34	./do_test_tbsv 9 1 1.0 3 0.01 > tbsv.results
35
36test-few: do_test_tbsv
37	@echo Testing TBSV - preforming a small set of tests
38	./do_test_tbsv 9 1 1.0 3 $(DO_FEW_TESTS) > tbsv.results
39
40test-some: do_test_tbsv
41	@echo Testing TBSV - preforming some tests : not all tests
42	./do_test_tbsv 9 1 1.0 3 $(DO_SOME_TESTS) > tbsv.results
43
44test-all: do_test_tbsv
45	@echo Testing TBSV Very Thoroughly
46	./do_test_tbsv 9 1 1.0 3 $(DO_ALL_TESTS) > tbsv.results
47
48test-none: do_test_tbsv
49	@echo NOT Testing TBSV - PREFORMING NO TESTS. NOT TESTING
50	./do_test_tbsv 9 1 1.0 3 $(DO_NO_TESTS) > tbsv.results
51
52do_test_tbsv: $(ALL_OBJS) $(LIB_PATH)/$(XBLASLIB)
53	$(LINKER) $(LDFLAGS) $(ALL_OBJS) $(LIB_PATH)/$(XBLASLIB) \
54	-o do_test_tbsv $(EXTRA_LIBS)
55
56.c.o:
57	$(CC) $(CFLAGS) $(HEADER_PATH) -c -o $@ $<
58
59clean:
60	rm -f *.o *~ *.BAK tbsv.results do_test_tbsv core
61
62