From: Patrik Gornicz Date: Sun, 16 Nov 2008 00:37:44 +0000 (-0500) Subject: Makefile update X-Git-Tag: physics-premerge~103 X-Git-Url: http://gitweb.pgornicz.com/gitweb.cgi?a=commitdiff_plain;h=a5aefcc603bef438a25cabaacbcc9797c2e32722;p=libbear.git Makefile update --- diff --git a/src/Makefile b/src/Makefile index 342a14e..fa5816a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -6,11 +6,12 @@ LIBS := ${LIBSDL} ${LIBGL} 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} diff --git a/src/Makefile.mingw32 b/src/Makefile.mingw32 index ed5d00a..5961dbf 100644 --- a/src/Makefile.mingw32 +++ b/src/Makefile.mingw32 @@ -17,7 +17,7 @@ WORKINGDIR := ../bin-mingw32 TARGETNAME := run_physics.exe TARGET := ${WORKINGDIR}/${TARGETNAME} -SRCS := # simply to keep every line below the same +SRCS := # := start DIRS := # := start DIRS += . @@ -39,7 +39,6 @@ DEPS := ${SRCS:.cpp=.d} DEPS := $(addprefix ${DEPSDIR},${DEPS}) BLDDIRS := $(addprefix ${DEPSDIR},${DIRS}) $(addprefix ${OBJSDIR},${DIRS}) -BLDDIRS := $(addsuffix /,${BLDDIRS}) VERBOSE := 0 @@ -131,7 +130,7 @@ cgdb: all .PHONY: val val: all - cd ${WORKINGDIR}; valgrind ${VALFLAGS} ${TARGETNAME} + cd ${WORKINGDIR}; valgrind ${VALFLAGS} ./${TARGETNAME} .PHONY: prof prof: run