tmp removed + make changes
[physics.git] / src / GameStates / Makefile
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
10 LDFLAGS = -lc
11
12 SRCS = GameState.cpp CreatingPolygon.cpp Paused.cpp Running.cpp
13 OBJS = ${SRCS:.cpp=.o}
14
15 TARGETS = GameStates.ld
16 DEPEND = depend.mk
17
18 # set suffixes to look for ...
19 .SUFFIXES: .cpp .o
20
21 # set default action for a *.cc to create a *.o
22 .cpp.o:
23         g++ -c $< ${CXXFLAGS}
24
25 all: ${TARGETS}
26
27 depend:
28         ${CXX} -MM ${SRCS} > ${DEPEND}
29
30 tags:
31         ctags ${SRCS}
32
33 clean:
34         rm -f ${OBJS} ${TARGETS} *~
35
36 distclean: clean
37         rm -f tags depend.mk
38         touch depend.mk
39
40 GameStates.ld: ${OBJS}
41 #       ld -o Entity.ld ${LDFLAGS} ${OBJS}
42
43 include ${DEPEND}
44