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.2 kB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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 test_dnrm2.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. ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
  22. ifneq ($(USE_OPENMP), 1)
  23. OBJS += test_fork.o
  24. endif
  25. OBJS += test_post_fork.o
  26. endif
  27. ifeq ($(C_COMPILER), PGI)
  28. OBJS = utest_main2.o
  29. endif
  30. ifeq ($(C_COMPILER), SUN)
  31. OBJS = utest_main2.o
  32. endif
  33. ifeq ($(OSNAME), AIX)
  34. OBJS = utest_main2.o
  35. endif
  36. all : run_test
  37. $(UTESTBIN): $(OBJS)
  38. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
  39. run_test: $(UTESTBIN)
  40. ifneq ($(CROSS), 1)
  41. ./$(UTESTBIN)
  42. endif
  43. clean:
  44. -rm -f *.o $(UTESTBIN)
  45. libs: