2011-02-16 17:33:06 +08:00
|
|
|
UTEST_CHECK = 1
|
|
|
|
|
TOPDIR = ..
|
|
|
|
|
|
2019-08-14 04:29:48 +08:00
|
|
|
override TARGET_ARCH=
|
|
|
|
|
override TARGET_MACH=
|
|
|
|
|
|
2016-02-19 06:01:48 +08:00
|
|
|
UTESTBIN=openblas_utest
|
2012-04-26 15:39:03 +08:00
|
|
|
|
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
|
2011-02-16 17:33:06 +08:00
|
|
|
|
2020-02-20 01:24:01 +08:00
|
|
|
OBJS=utest_main.o test_min.o test_amax.o test_ismin.o test_rotmg.o test_axpy.o test_dotu.o test_dsdot.o test_swap.o test_rot.o
|
2018-02-10 21:10:55 +08:00
|
|
|
#test_rot.o test_swap.o test_axpy.o test_dotu.o test_dsdot.o test_fork.o
|
2011-02-16 17:33:06 +08:00
|
|
|
|
2016-03-01 14:05:56 +08:00
|
|
|
ifneq ($(NO_LAPACK), 1)
|
2018-02-20 17:07:17 +08:00
|
|
|
OBJS += test_potrs.o
|
2019-08-14 04:29:48 +08:00
|
|
|
ifneq ($(NO_CBLAS), 1)
|
|
|
|
|
ifneq ($(NO_LAPACKE), 1)
|
2019-05-15 02:32:23 +08:00
|
|
|
OBJS += test_kernel_regress.o
|
2018-02-10 21:10:55 +08:00
|
|
|
endif
|
2019-08-14 04:29:48 +08:00
|
|
|
endif
|
|
|
|
|
endif
|
2018-02-10 21:10:55 +08:00
|
|
|
|
2018-02-20 17:07:17 +08:00
|
|
|
#this does not work with OpenMP nor with native Windows or Android threads
|
|
|
|
|
# FIXME TBD if this works on OSX, SunOS, POWER and zarch
|
2018-02-12 03:58:27 +08:00
|
|
|
ifndef USE_OPENMP
|
2018-02-20 17:07:17 +08:00
|
|
|
ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
|
2018-02-10 21:10:55 +08:00
|
|
|
OBJS += test_fork.o
|
2016-03-01 14:05:56 +08:00
|
|
|
endif
|
2018-02-12 03:58:27 +08:00
|
|
|
endif
|
2016-03-01 14:05:56 +08:00
|
|
|
|
2020-02-07 17:15:18 +08:00
|
|
|
ifeq ($(C_COMPILER), PGI)
|
|
|
|
|
OBJS = utest_main2.o
|
|
|
|
|
endif
|
2020-06-25 18:58:13 +08:00
|
|
|
ifeq ($(OSNAME), AIX)
|
|
|
|
|
OBJS = utest_main2.o
|
|
|
|
|
endif
|
2020-02-07 17:15:18 +08:00
|
|
|
|
2011-02-16 17:33:06 +08:00
|
|
|
all : run_test
|
|
|
|
|
|
2016-02-19 06:01:48 +08:00
|
|
|
$(UTESTBIN): $(OBJS)
|
2016-10-13 04:32:25 +08:00
|
|
|
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
|
2011-02-16 17:33:06 +08:00
|
|
|
|
2016-02-19 06:01:48 +08:00
|
|
|
run_test: $(UTESTBIN)
|
2016-04-22 23:21:18 +08:00
|
|
|
ifndef CROSS
|
2016-02-19 06:01:48 +08:00
|
|
|
./$(UTESTBIN)
|
2016-04-22 23:21:18 +08:00
|
|
|
endif
|
2011-02-16 17:33:06 +08:00
|
|
|
|
|
|
|
|
clean:
|
2016-02-19 06:01:48 +08:00
|
|
|
-rm -f *.o $(UTESTBIN)
|
2011-02-16 17:33:06 +08:00
|
|
|
|
|
|
|
|
libs:
|