Commit | Line | Data |
---|---|---|
ad9f1fb6 PG |
1 | |
2 | LIBALLG = `allegro-config --libs release` | |
3 | LIBGL = -lGL -lGLU | |
4 | LIBSDL = `sdl-config --libs` | |
5 | LIBS = ${LIBSDL} ${LIBGL} | |
6 | ||
7 | CXX = g++ | |
8 | CXXFLAGS = -ggdb -Wall -pedantic | |
9 | ||
c0dadf29 | 10 | SRCS = Vector2.cpp ticks.cpp main.cpp game.cpp entityManager.cpp graphics.cpp |
ad9f1fb6 PG |
11 | OBJS = ${SRCS:.cpp=.o} |
12 | ||
13 | TARGETS = ../run_physics | |
14 | DEPEND = depend.mk | |
15 | ||
16 | # set suffixes to look for ... | |
17 | .SUFFIXES: .cpp .o | |
18 | ||
19 | # set default action for a *.cc to create a *.o | |
20 | .cpp.o: | |
21 | g++ -c $< ${CXXFLAGS} | |
22 | ||
23 | all: ${TARGETS} | |
24 | ||
25 | depend: | |
26 | ${CXX} -MM ${SRCS} > ${DEPEND} | |
27 | ||
28 | tags: | |
29 | ctags ${SRCS} | |
30 | ||
31 | clean: | |
32 | rm -f ${OBJS} ${TARGETS} *~ | |
33 | ||
34 | distclean: clean | |
35 | rm -f tags depend.mk | |
36 | touch depend.mk | |
37 | ||
38 | # i need to find a nice way of ijnoring .svn folders for the below | |
39 | tar: clean | |
40 | cd ..; tar -cjf bluestar.tar.bz2 images/ source/ | |
41 | ||
42 | ||
43 | run: ../run_physics | |
44 | cd ..; ./run_physics | |
45 | ||
46 | ../run_physics: ${OBJS} | |
47 | ${CXX} ${CXXFLAGS} -o ../run_physics ${OBJS} ${LIBS} | |
48 | ||
49 | Entities.d: | |
50 | cd Entities; make | |
51 | ||
52 | include ${DEPEND} | |
53 |