OPTFLAGS := -O2
DBGFLAGS := -ggdb
PRFFLAGS := ${DBGFLAGS} -pg
-CXXFLAGS := -Wall -pedantic -ansi ${DBGFLAGS}
+MYFLAGS := -Wall -pedantic -ansi
+CXXFLAGS := ${MYFLAGS} ${DBGFLAGS}
VALFLAGS := --leak-check=full
-WORKINGDIR := ..
+WORKINGDIR := ../bin
TARGETNAME := run_physics
TARGET := ${WORKINGDIR}/${TARGETNAME}
TARGETNAME := run_physics.exe
TARGET := ${WORKINGDIR}/${TARGETNAME}
-SRCS := # simply to keep every line below the same
+SRCS := # := start
DIRS := # := start
DIRS += .
DEPS := $(addprefix ${DEPSDIR},${DEPS})
BLDDIRS := $(addprefix ${DEPSDIR},${DIRS}) $(addprefix ${OBJSDIR},${DIRS})
-BLDDIRS := $(addsuffix /,${BLDDIRS})
VERBOSE := 0
.PHONY: val
val: all
- cd ${WORKINGDIR}; valgrind ${VALFLAGS} ${TARGETNAME}
+ cd ${WORKINGDIR}; valgrind ${VALFLAGS} ./${TARGETNAME}
.PHONY: prof
prof: run