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 2.0 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. TOPSRCDIR = ..
  2. include $(TOPSRCDIR)/make.inc
  3. .PHONY: all testlsame testslamch testdlamch testsecond testdsecnd testieee testversion
  4. all: testlsame testslamch testdlamch testsecond testdsecnd testieee testversion
  5. ifneq ($(C_LAPACK), 1)
  6. testlsame: lsame.o lsametst.o
  7. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  8. testslamch: slamch.o lsame.o slamchtst.o
  9. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  10. testdlamch: dlamch.o lsame.o dlamchtst.o
  11. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  12. testsecond: second_$(TIMER).o secondtst.o
  13. @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
  14. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  15. testdsecnd: dsecnd_$(TIMER).o dsecndtst.o
  16. @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
  17. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  18. testieee: tstiee.o
  19. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  20. testversion: ilaver.o LAPACK_version.o
  21. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  22. else
  23. testlsame: lsame.o lsametst.o
  24. $(CC) -O2 -o $@ $^
  25. testslamch: slamch.o lsame.o slamchtst.o
  26. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  27. testdlamch: dlamch.o lsame.o dlamchtst.o
  28. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  29. testsecond: second_$(TIMER).o secondtst.o
  30. @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
  31. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  32. testdsecnd: dsecnd_$(TIMER).o dsecndtst.o
  33. @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
  34. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  35. testieee: tstiee.o
  36. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  37. testversion: ilaver.o LAPACK_version.o
  38. $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
  39. endif
  40. .PHONY: run
  41. run: all
  42. ./testlsame
  43. ./testslamch
  44. ./testdlamch
  45. ./testsecond
  46. ./testdsecnd
  47. ./testieee
  48. ./testversion
  49. .PHONY: clean cleanobj cleanexe cleantest
  50. clean: cleanobj cleanexe cleantest
  51. cleanobj:
  52. rm -f *.o
  53. cleanexe:
  54. rm -f test*
  55. cleantest:
  56. rm -f core
  57. ifneq ($(C_LAPACK), 1)
  58. slamch.o: slamch.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
  59. dlamch.o: dlamch.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
  60. else
  61. slamch.o: slamch.c ; $(CC) $(CFLAGS) -c -o $@ $<
  62. dlamch.o: dlamch.c ; $(CC) $(CFLAGS) -c -o $@ $<
  63. endif