X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?p=physics.git;a=blobdiff_plain;f=src%2FMakefile;h=915e4ede3b87f8d75f97be10ac415c98835c0878;hp=1d89438a912ff7bae87cd4f607e28493b3be65b5;hb=63a52c99e571f716087638a273c31b7bdd8a5e9a;hpb=7367a340e152d21c6f81244c3eab12f2500fb64e diff --git a/src/Makefile b/src/Makefile index 1d89438..915e4ed 100644 --- a/src/Makefile +++ b/src/Makefile @@ -56,7 +56,7 @@ depend: ${SRCS} .PHONY: clean clean: - rm -f ${OBJS} ${TARGET} *~ + rm -f ${OBJS} ${TARGET} *~ prof gmon.out .PHONY: distclean distclean: clean @@ -67,12 +67,21 @@ tags: ${SRCS} ctags $^ tar: clean - cd ..; tar -cjf bluestar.tar.bz2 images/ source/ + cd ..; tar -cjf physics.tar.bz2 src/ .PHONY: run run: all ${TARGET} -include ${DEPEND} +.PHONY: val +val: all + valgrind ${TARGET} + +.PHONY: prof +prof: all + ${TARGET} + gprof -b ${TARGET} > prof + kprof -f prof +include ${DEPEND}