Replace vpermpd with vpermilpd
[platform/upstream/openblas.git] / utest / Makefile
1 UTEST_CHECK = 1
2 TOPDIR  = ..
3
4 UTESTBIN=openblas_utest
5
6 .PHONY : all
7 .NOTPARALLEL : all run_test $(UTESTBIN)
8
9 include $(TOPDIR)/Makefile.system
10
11 OBJS=utest_main.o test_amax.o test_rotmg.o test_axpy.o test_dotu.o test_dsdot.o test_swap.o test_rot.o
12 #test_rot.o test_swap.o test_axpy.o test_dotu.o test_dsdot.o test_fork.o
13
14 ifneq ($(NO_LAPACK), 1)
15 OBJS += test_potrs.o
16 OBJS += test_kernel_regress.o
17 endif
18
19 #this does not work with OpenMP nor with native Windows or Android threads
20 # FIXME TBD if this works on OSX, SunOS, POWER and zarch
21 ifndef USE_OPENMP
22 ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
23 OBJS += test_fork.o
24 endif
25 endif
26
27 all : run_test
28
29 $(UTESTBIN): $(OBJS)
30         $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
31
32 run_test: $(UTESTBIN)
33 ifndef CROSS
34         ./$(UTESTBIN)
35 endif
36
37 clean:
38         -rm -f *.o $(UTESTBIN)
39
40 libs: