From: Patrik Gornicz Date: Thu, 17 Jul 2008 02:45:37 +0000 (-0400) Subject: prof and valgrind options added to Makefile X-Git-Tag: physics-premerge~200 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=63a52c99e571f716087638a273c31b7bdd8a5e9a;p=libbear.git prof and valgrind options added to Makefile --- 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}