input system setup, debug header started
[physics.git] / src / Makefile
CommitLineData
ad9f1fb6 1
ad9f1fb6
PG
2LIBGL = -lGL -lGLU
3LIBSDL = `sdl-config --libs`
4LIBS = ${LIBSDL} ${LIBGL}
5
6CXX = g++
7CXXFLAGS = -ggdb -Wall -pedantic
8
046b034c
PG
9SRCS := entityManager.cpp
10SRCS += game.cpp
11SRCS += graphics.cpp
12SRCS += main.cpp
13SRCS += mathw.cpp
14SRCS += ticks.cpp
15SRCS += Vector2.cpp
16
17SRCS += Entities/Ball.cpp
18SRCS += Entities/Entity.cpp
19SRCS += Entities/Line.cpp
20SRCS += Entities/Particle.cpp
21SRCS += Entities/PhysicsEntity.cpp
22SRCS += Entities/Point.cpp
23SRCS += Entities/Polygon.cpp
24SRCS += Entities/WindParticle.cpp
25
26SRCS += GameStates/CreatingPolygon.cpp
27SRCS += GameStates/GameState.cpp
28SRCS += GameStates/Paused.cpp
29SRCS += GameStates/Running.cpp
30
f7b3b2eb
PG
31SRCS += input/inputManager.cpp
32
ad9f1fb6
PG
33OBJS = ${SRCS:.cpp=.o}
34
046b034c 35TARGET = ../run_physics
ad9f1fb6
PG
36DEPEND = depend.mk
37
ad9f1fb6 38
046b034c
PG
39.PHONY: all
40all: ${TARGET}
ad9f1fb6 41
046b034c
PG
42${TARGET}: ${OBJS}
43 ${CXX} ${CXXFLAGS} -o ${TARGET} $^ ${LIBS}
ad9f1fb6 44
046b034c
PG
45.PHONY: depend
46depend: ${SRCS}
47 ${CXX} -MM $^ > ${DEPEND}
ad9f1fb6 48
ad9f1fb6 49
046b034c 50.PHONY: clean
ad9f1fb6 51clean:
046b034c 52 rm -f ${OBJS} ${TARGET} *~
ad9f1fb6 53
046b034c 54.PHONY: distclean
ad9f1fb6
PG
55distclean: clean
56 rm -f tags depend.mk
57 touch depend.mk
58
046b034c
PG
59tags: ${SRCS}
60 ctags $^
61
ad9f1fb6
PG
62tar: clean
63 cd ..; tar -cjf bluestar.tar.bz2 images/ source/
64
65
046b034c
PG
66.PHONY: run
67run: all
27b74820 68 ${TARGET}
ad9f1fb6
PG
69
70include ${DEPEND}
71