tmp removed + make changes
[physics.git] / src / GameStates / 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
10LDFLAGS = -lc
11
c0dadf29 12SRCS = GameState.cpp CreatingPolygon.cpp Paused.cpp Running.cpp
ad9f1fb6
PG
13OBJS = ${SRCS:.cpp=.o}
14
15TARGETS = GameStates.ld
16DEPEND = 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
25all: ${TARGETS}
26
27depend:
28 ${CXX} -MM ${SRCS} > ${DEPEND}
29
30tags:
31 ctags ${SRCS}
32
33clean:
34 rm -f ${OBJS} ${TARGETS} *~
35
36distclean: clean
37 rm -f tags depend.mk
38 touch depend.mk
39
40GameStates.ld: ${OBJS}
41# ld -o Entity.ld ${LDFLAGS} ${OBJS}
42
43include ${DEPEND}
44