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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. testlsame: lsame.o lsametst.o
  6. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  7. testslamch: slamch.o lsame.o slamchtst.o
  8. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  9. testdlamch: dlamch.o lsame.o dlamchtst.o
  10. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  11. testsecond: second_$(TIMER).o secondtst.o
  12. @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
  13. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  14. testdsecnd: dsecnd_$(TIMER).o dsecndtst.o
  15. @echo "[INFO] : TIMER value: $(TIMER) (given by make.inc)"
  16. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  17. testieee: tstiee.o
  18. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  19. testversion: ilaver.o LAPACK_version.o
  20. $(FC) $(FFLAGS) $(LDFLAGS) -o $@ $^
  21. .PHONY: run
  22. run: all
  23. ./testlsame
  24. ./testslamch
  25. ./testdlamch
  26. ./testsecond
  27. ./testdsecnd
  28. ./testieee
  29. ./testversion
  30. .PHONY: clean cleanobj cleanexe cleantest
  31. clean: cleanobj cleanexe cleantest
  32. cleanobj:
  33. rm -f *.o
  34. cleanexe:
  35. rm -f test*
  36. cleantest:
  37. rm -f core
  38. slamch.o: slamch.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<
  39. dlamch.o: dlamch.f ; $(FC) $(FFLAGS_NOOPT) -c -o $@ $<