OpenBLAS/utest/Makefile

33 lines
511 B
Makefile
Raw Normal View History

UTEST_CHECK = 1
TOPDIR = ..
2016-02-19 06:01:48 +08:00
UTESTBIN=openblas_utest
2014-07-08 17:26:49 +08:00
.PHONY : all
2016-02-19 06:01:48 +08:00
.NOTPARALLEL : all run_test $(UTESTBIN)
2014-07-08 17:26:49 +08:00
include $(TOPDIR)/Makefile.system
OBJS=utest_main.o test_amax.o
#test_rot.o test_swap.o test_axpy.o test_dotu.o test_rotmg.o test_dsdot.o test_fork.o
2016-03-01 14:05:56 +08:00
ifneq ($(NO_LAPACK), 1)
OBJS += test_potrs.o
endif
all : run_test
2016-02-19 06:01:48 +08:00
$(UTESTBIN): $(OBJS)
$(CC) $(CFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
2016-02-19 06:01:48 +08:00
run_test: $(UTESTBIN)
ifndef CROSS
2016-02-19 06:01:48 +08:00
./$(UTESTBIN)
endif
clean:
2016-02-19 06:01:48 +08:00
-rm -f *.o $(UTESTBIN)
libs: