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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. sroundup_lwork.o: sroundup_lwork.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
  61. droundup_lwork.o: droundup_lwork.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
  62. else
  63. slamch.o: slamch.c ; $(CC) $(CFLAGS) -O0 -c -o $@ $<
  64. dlamch.o: dlamch.c ; $(CC) $(CFLAGS) -O0 -c -o $@ $<
  65. endif