MYFLAGS := -Wall -pedantic -ansi
VALFLAGS := --leak-check=full
-CXXFLAGS := ${MYFLAGS} ${OPTFLAGS}
+CXXFLAGS := ${MYFLAGS} ${DBGFLAGS}
CXX := g++
SRCS := # := start
include $(addsuffix /files.mk,${DIRS})
-WORKINGDIR := ../bin/
+WORKINGDIR := ../bind/
-OBJSDIR := ../objs/
+OBJSDIR := ../objsd/
OBJS := ${SRCS:.cpp=.o}
OBJS := $(addprefix ${OBJSDIR},${OBJS})
cd ${WORKINGDIR}; gprof -b ${TARGETNAME} > src/prof
kprof -f prof
+
MINGMAKEARGS := "LIBGL := -lopengl32 -lglu32" \
"LIBSDL := `/usr/mingw32/bin/sdl-config --libs`" \
"CXXFLAGS := ${OPTFLAGS}" \
${Q1}echo "make: mingw32"
${Q2}${MAKE} ${MINGMAKEARGS} clean all
+FINALMAKEARGS := "CXXFLAGS := ${OPTFLAGS}" \
+ "OBJSDIR := ../objs/" \
+ "WORKINGDIR := ../bin/"
+
+.PHONY: final
+final:
+ ${Q1}echo "make: final"
+ ${Q2}${MAKE} ${FINALMAKEARGS} clean all
+
-include ${DEPS}