.PHONY: clean
clean:
- rm -f ${OBJS} ${TARGET} *~
+ rm -f ${OBJS} ${TARGET} *~ prof gmon.out
.PHONY: distclean
distclean: clean
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}