OBJSBLDDIRS := $(addprefix ${OBJSDIR},${DIRS})
BLDDIRS := ${OBJSBLDDIRS} ${DEPSBLDDIRS} ${WORKINGDIR} ${DSTCFGDIR}
+INCDIRS := ${SRCSDIR}
+
PRNTFMT := printf "%-5s: %s\n"
# rule to make an object file from a .cpp
${OBJSDIR}%.o: ${SRCSDIR}%.cpp | $$(dir $$@)
${Q1}${PRNTFMT} "${CXX}" "$@"
- ${Q2}${CXX} ${CXXFLAGS} -c -o $@ $<
+ ${Q2}${CXX} ${CXXFLAGS} -c -o $@ $< -I "${INCDIRS}"
# rule to make a depend file from a .cpp
# be clever and escape the / chars in file paths
# DON'T simply use another sed delimiter or it can't appear in the file paths
${DEPSDIR}%.d: ${SRCSDIR}%.cpp | $$(dir $$@)
${Q1}${PRNTFMT} "DEP" "$@"
- ${Q2}${CXX} -MM ${CXXFLAGS} $< | \
+ ${Q2}${CXX} -MM ${CXXFLAGS} $< -I "${INCDIRS}" | \
sed 's/\(^.*\):/$(subst /,\/,${OBJSDIR}\1 $@):/' > $@
# rule to copy the config files into the working directory
#ifndef EFFECT_H
#define EFFECT_H
-#include "../Vector2.h"
+#include "Vector2.h"
// Mutual headers ...
#include "Gravity.h"
-#include "../Entities/PhysicsEntity.h"
+#include "Entities/PhysicsEntity.h"
/// ***** Private Variables *****
#define GRAVITY_H
#include "Effect.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
*/
#include "GravityWell.h"
-#include "../Entities/PhysicsEntity.h"
+#include "Entities/PhysicsEntity.h"
float wellGravity = 0.5;
#define GRAVITYWELL_H
#include "Effect.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
#include "Screen.h"
-#include "../Entities/PhysicsEntity.h"
-#include "../Entities/Ball.h"
+#include "Entities/PhysicsEntity.h"
+#include "Entities/Ball.h"
/// ***** Constructors/Destructors *****
#define SCREEN_H
#include "Effect.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
*/
#include "Ball.h"
-#include "../debug.h"
+#include "debug.h"
-#include "../Vector2.h"
-#include "../graphics/graphics.h"
+#include "Vector2.h"
+#include "graphics/graphics.h"
/// ***** Constructors/Destructors *****
#define BALL_H
#include "PhysicsEntity.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
#include "Entity.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#ifndef ENTITY_H
#define ENTITY_H
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
#include "Line.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#define LINE_H
#include "Particle.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
#include "Particle.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#define PARTICLE_H
#include "Entity.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// NOTE to SELF
*/
#include "PhysicsEntity.h"
-#include "../debug.h"
+#include "debug.h"
-#include "../effectManager.h"
-#include "../Vector2.h"
+#include "effectManager.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#define PHYSICS_H
#include "Entity.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
#include "Point.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#define POINT_H
#include "Particle.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
#include "Polygon.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#define POLYGON_H
#include "PhysicsEntity.h"
-#include "../Vector2.h"
+#include "Vector2.h"
#include <vector>
using std::vector;
#include "WindParticle.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Constructors/Destructors *****
#define WINDPARTICLE_H
#include "Point.h"
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Class *****
*/
#include "Paused.h"
-#include "../config/config.h"
+#include "config/config.h"
/// ***** Constructors/Destructors *****
#include "Running.h"
-#include "../entityManager.h"
+#include "entityManager.h"
/// ***** Constructors/Destructors *****
*/
#include "config.h"
-#include "../debug.h"
+#include "debug.h"
#include <SDL/SDL.h>
#include "keys.h"
#include "reader.h"
-#include "../input/inputManager.h"
+#include "input/inputManager.h"
/// ***** Private Method Headers *****
/// ***** Private Variables *****
*/
#include "keys.h"
-#include "../debug.h"
+#include "debug.h"
#include <SDL/SDL.h>
#include <map>
#include <string>
-#include "../debug.h"
+#include "debug.h"
/// ***** Header Methods *****
namespace key
*/
#include "reader.h"
-#include "../debug.h"
+#include "debug.h"
#include <iostream>
using std::cerr;
*/
#include "graphics.h"
-#include "../debug.h"
+#include "debug.h"
#include <GL/gl.h>
#include <GL/glu.h>
#include <SDL/SDL.h>
#include <cmath>
-#include "../mathw.h"
+#include "mathw.h"
#include <iostream>
using std::cerr;
#ifndef GRAPHICS_H
#define GRAPHICS_H
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Methods *****
*/
#include "inputManager.h"
-#include "../debug.h"
+#include "debug.h"
#include <SDL/SDL.h>
-#include "../config/keys.h"
+#include "config/keys.h"
/// ***** Private Variables *****
#define INPUT_H
#include <SDL/SDL.h>
-#include "../Vector2.h"
+#include "Vector2.h"
/// ***** Header Methods *****