Makefile 938 B

123456789101112131415161718
  1. CFLAGS=-O3 -Wall -lm -lSDL2
  2. all: tmzdemo2
  3. # See https://www.gnu.org/software/make/manual/make.html#Catalogue-of-Rules
  4. # and why that doesn't work anymore: https://stackoverflow.com/questions/9417169/why-does-the-library-linker-flag-sometimes-have-to-go-at-the-end-using-gcc
  5. # Thus we need the explicit rule below.
  6. tmzdemo2: gridtmz.o ricker.o snapshot2d.o plot2d.o updatetmz.o tfsftmz.o grid1dez.o abctmz.o plotWindow.o incident.o material.o source.o
  7. gcc tmzdemo2.c gridtmz.o ricker.o snapshot2d.o plot2d.o updatetmz.o tfsftmz.o grid1dez.o abctmz.o plotWindow.o incident.o material.o source.o -o tmzdemo2 $(CFLAGS)
  8. deptree:
  9. cinclude2dot 2>/dev/null | sed -e "s/.[hc]\"/\"/g" > deptree.dot && \
  10. twopi -Tsvg deptree.dot -odeptree.svg && \
  11. rm -f deptree.dot
  12. clean:
  13. rm -f tmzdemo2 gridtmz.o ricker.o snapshot2d.o plot2d.o updatetmz.o tfsftmz.o grid1dez.o abctmz.o plotWindow.o incident.o material.o source.o deptree.dot deptree.svg