1include ../../make.conf
2include ../../$(MAKEINC)
3
4TEST_DOT_PATH = ../test-dot
5LIB_PATH = ../../$(OUTPUT_DIR)
6HEADER_PATH = -I../../src -I..
7
8TEST_SRCS = do_test_dot2.c test_dot2.c BLAS_dot2_testgen.c \
9	    dot2.c r_truth2.c \
10	    testgen_BLAS_sdot2.c testgen_BLAS_ddot2.c \
11	    testgen_BLAS_zdot2.c testgen_BLAS_cdot2.c
12
13TEST_OBJS = $(TEST_SRCS:.c=.o)
14TEST_DOT_OBJS = $(TEST_DOT_PATH)/testgen_aux.o \
15		$(TEST_DOT_PATH)/print_vector.o \
16		$(TEST_DOT_PATH)/copy_vector.o
17
18COMMON_OBJS = ../common/dummy_main.o
19
20ALL_OBJS = $(TEST_OBJS) $(TEST_DOT_OBJS) $(COMMON_OBJS)
21
22test: do_test_dot2
23	@echo Testing DOT2
24	./do_test_dot2 20 1 1.0 0 1 > dot2.results
25
26test-lib: $(TEST_OBJS)
27
28do_test_dot2: $(TEST_OBJS) $(COMMON_OBJS) $(LIB_PATH)/$(XBLASLIB)
29	$(LINKER) $(LDFLAGS) $(ALL_OBJS) $(LIB_PATH)/$(XBLASLIB) \
30	-o do_test_dot2 $(EXTRA_LIBS)
31
32.c.o:
33	$(CC) $(CFLAGS) $(HEADER_PATH) -c -o $@ $<
34
35clean:
36	rm -f *.o *~ *.BAK dot2.results do_test_dot2 core
37
38