You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile 1.1 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. UTEST_CHECK = 1
  2. TOPDIR = ..
  3. override TARGET_ARCH=
  4. override TARGET_MACH=
  5. UTESTBIN=openblas_utest
  6. .PHONY : all
  7. .NOTPARALLEL : all run_test $(UTESTBIN)
  8. include $(TOPDIR)/Makefile.system
  9. 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
  10. #test_rot.o test_swap.o test_axpy.o test_dotu.o test_dsdot.o test_fork.o
  11. ifneq ($(NO_LAPACK), 1)
  12. OBJS += test_potrs.o
  13. ifneq ($(NO_CBLAS), 1)
  14. ifneq ($(NO_LAPACKE), 1)
  15. OBJS += test_kernel_regress.o
  16. endif
  17. endif
  18. endif
  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. ifeq ($(C_COMPILER), PGI)
  27. OBJS = utest_main2.o
  28. endif
  29. ifeq ($(OSNAME), AIX)
  30. OBJS = utest_main2.o
  31. endif
  32. all : run_test
  33. $(UTESTBIN): $(OBJS)
  34. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
  35. run_test: $(UTESTBIN)
  36. ifndef CROSS
  37. ./$(UTESTBIN)
  38. endif
  39. clean:
  40. -rm -f *.o $(UTESTBIN)
  41. libs: