LIBGL = -lGL -lGLU LIBSDL = `sdl-config --libs` LIBS = ${LIBSDL} ${LIBGL} CXX = g++ CXXFLAGS = -ggdb -Wall -pedantic SRCS := entityManager.cpp SRCS += game.cpp SRCS += graphics.cpp SRCS += main.cpp SRCS += mathw.cpp SRCS += ticks.cpp SRCS += Vector2.cpp SRCS += Entities/Ball.cpp SRCS += Entities/Entity.cpp SRCS += Entities/Line.cpp SRCS += Entities/Particle.cpp SRCS += Entities/PhysicsEntity.cpp SRCS += Entities/Point.cpp SRCS += Entities/Polygon.cpp SRCS += Entities/WindParticle.cpp SRCS += GameStates/CreatingPolygon.cpp SRCS += GameStates/GameState.cpp SRCS += GameStates/Paused.cpp SRCS += GameStates/Running.cpp OBJS = ${SRCS:.cpp=.o} TARGET = ../run_physics DEPEND = depend.mk .PHONY: all all: ${TARGET} ${TARGET}: ${OBJS} ${CXX} ${CXXFLAGS} -o ${TARGET} $^ ${LIBS} .PHONY: depend depend: ${SRCS} ${CXX} -MM $^ > ${DEPEND} .PHONY: clean clean: rm -f ${OBJS} ${TARGET} *~ .PHONY: distclean distclean: clean rm -f tags depend.mk touch depend.mk tags: ${SRCS} ctags $^ tar: clean cd ..; tar -cjf bluestar.tar.bz2 images/ source/ .PHONY: run run: all ${TARGET} include ${DEPEND}