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 953 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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_amax.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. all : run_test
  27. $(UTESTBIN): $(OBJS)
  28. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
  29. run_test: $(UTESTBIN)
  30. ifndef CROSS
  31. ./$(UTESTBIN)
  32. endif
  33. clean:
  34. -rm -f *.o $(UTESTBIN)
  35. libs: