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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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 test_zscal.o \
  10. test_amin.o
  11. #test_rot.o test_swap.o test_axpy.o test_dotu.o test_dsdot.o test_fork.o
  12. ifneq ($(NO_LAPACK), 1)
  13. OBJS += test_potrs.o
  14. ifneq ($(NO_CBLAS), 1)
  15. ifneq ($(NO_LAPACKE), 1)
  16. OBJS += test_kernel_regress.o
  17. endif
  18. endif
  19. endif
  20. #this does not work with OpenMP nor with native Windows or Android threads
  21. # FIXME TBD if this works on OSX, SunOS, POWER and zarch
  22. ifeq ($(OSNAME), $(filter $(OSNAME),Linux CYGWIN_NT))
  23. ifneq ($(USE_OPENMP), 1)
  24. OBJS += test_fork.o
  25. endif
  26. OBJS += test_post_fork.o
  27. endif
  28. ifeq ($(C_COMPILER), PGI)
  29. OBJS = utest_main2.o
  30. endif
  31. ifeq ($(C_COMPILER), SUN)
  32. OBJS = utest_main2.o
  33. endif
  34. ifeq ($(OSNAME), AIX)
  35. OBJS = utest_main2.o
  36. endif
  37. all : run_test
  38. ifeq ($(OSNAME), AIX)
  39. ifeq ($(USE_OPENMP), 1)
  40. $(UTESTBIN): $(OBJS)
  41. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB)
  42. else
  43. $(UTESTBIN): $(OBJS)
  44. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
  45. endif
  46. else
  47. $(UTESTBIN): $(OBJS)
  48. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ ../$(LIBNAME) $(EXTRALIB) $(FEXTRALIB)
  49. endif
  50. run_test: $(UTESTBIN)
  51. ifneq ($(CROSS), 1)
  52. ./$(UTESTBIN)
  53. endif
  54. clean:
  55. -rm -f *.o $(UTESTBIN)
  56. libs: