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