tmp removed + make changes
[physics.git] / src / Makefile
CommitLineData
ad9f1fb6
PG
1
2LIBALLG = `allegro-config --libs release`
3LIBGL = -lGL -lGLU
4LIBSDL = `sdl-config --libs`
5LIBS = ${LIBSDL} ${LIBGL}
6
7CXX = g++
8CXXFLAGS = -ggdb -Wall -pedantic
9
c0dadf29 10SRCS = Vector2.cpp ticks.cpp main.cpp game.cpp entityManager.cpp graphics.cpp
ad9f1fb6
PG
11OBJS = ${SRCS:.cpp=.o}
12
13TARGETS = ../run_physics
14DEPEND = 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
23all: ${TARGETS}
24
25depend:
26 ${CXX} -MM ${SRCS} > ${DEPEND}
27
28tags:
29 ctags ${SRCS}
30
31clean:
32 rm -f ${OBJS} ${TARGETS} *~
33
34distclean: 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
39tar: clean
40 cd ..; tar -cjf bluestar.tar.bz2 images/ source/
41
42
43run: ../run_physics
44 cd ..; ./run_physics
45
46../run_physics: ${OBJS}
47 ${CXX} ${CXXFLAGS} -o ../run_physics ${OBJS} ${LIBS}
48
49Entities.d:
50 cd Entities; make
51
52include ${DEPEND}
53