From 63a52c99e571f716087638a273c31b7bdd8a5e9a Mon Sep 17 00:00:00 2001 From: Patrik Gornicz Date: Wed, 16 Jul 2008 22:45:37 -0400 Subject: [PATCH] prof and valgrind options added to Makefile --- src/Makefile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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} -- 2.10.2