Makefile.template 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. #
  2. # Makefile for TM5, generated by runtm5.py .
  3. #
  4. # --- init --------------------------------------------
  5. .PHONY: help clean
  6. # --- compiler -----------------------------------------
  7. # compiler and flags:
  8. FC = ${fc}
  9. FFLAGS = ${fflags}
  10. FFLAGS_BASIC = ${fflags_basic}
  11. # linker and flags:
  12. LINKER = ${fc}
  13. LDFLAGS = ${ldflags}
  14. LIBS = ${libs}
  15. # --- help ---------------------------------------------
  16. help:
  17. @echo " "
  18. @echo " Usage:"
  19. @echo " "
  20. @echo " ${make} tm5.x"
  21. @echo " "
  22. @echo " ${make} clean # remove object files etc"
  23. @echo " "
  24. # --- implicit rules ---------------------------------
  25. # how to form object files from f90 source:
  26. %.o: %.F90
  27. $(FC) -c -o $@ $(FFLAGS) $<
  28. @echo ' '
  29. # how to form object files from f90 source:
  30. %.o: %.f90
  31. $(FC) -c -o $@ $(FFLAGS) $<
  32. @echo ' '
  33. # specials: no optim, otherwise some compilers fail ...
  34. mdf.o:
  35. $(FC) -c -o $@ $(FFLAGS_BASIC) $<
  36. @echo ' '
  37. # --- targets -----------------------------------------
  38. include .depend_tm5
  39. clean:
  40. /bin/rm -f *.mod *.o *.x .depend_tm5