OpenBLAS/utest/Makefile

55 lines
1.1 KiB
Makefile
Raw Normal View History

UTEST_CHECK = 1
TOPDIR = ..
override TARGET_ARCH=
override TARGET_MACH=
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
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
2016-03-01 14:05:56 +08:00
ifneq ($(NO_LAPACK), 1)
OBJS += test_potrs.o
ifneq ($(NO_CBLAS), 1)
ifneq ($(NO_LAPACKE), 1)
OBJS += test_kernel_regress.o
2018-02-10 21:10:55 +08:00
endif
endif
endif
2018-02-10 21:10:55 +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
ifndef USE_OPENMP
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
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
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)
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: