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

12345678910111213141516171819202122232425262728293031323334353637383940
  1. UTEST_CHECK = 1
  2. TOPDIR = ..
  3. UTESTBIN=openblas_utest
  4. .PHONY : all
  5. .NOTPARALLEL : all run_test $(UTESTBIN)
  6. include $(TOPDIR)/Makefile.system
  7. 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
  8. #test_rot.o test_swap.o test_axpy.o test_dotu.o test_dsdot.o test_fork.o
  9. ifneq ($(NO_LAPACK), 1)
  10. OBJS += test_potrs.o
  11. endif
  12. #this does not work with OpenMP nor with native Windows or Android threads
  13. # FIXME TBD if this works on OSX, SunOS, POWER and zarch
  14. ifndef USE_OPENMP
  15. ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
  16. OBJS += test_fork.o
  17. endif
  18. endif
  19. all : run_test
  20. $(UTESTBIN): $(OBJS)
  21. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
  22. run_test: $(UTESTBIN)
  23. ifndef CROSS
  24. ./$(UTESTBIN)
  25. endif
  26. clean:
  27. -rm -f *.o $(UTESTBIN)
  28. libs: