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 | ||
10 | LDFLAGS = -lc | |
11 | ||
12 | SRCS = Ball.cpp Entity.cpp Line.cpp Particle.cpp PhysicsEntity.cpp \ | |
13 | Point.cpp Polygon.cpp WindParticle.cpp | |
14 | OBJS = ${SRCS:.cpp=.o} | |
15 | ||
16 | TARGETS = Entity.ld | |
17 | DEPEND = depend.mk | |
18 | ||
19 | # set suffixes to look for ... | |
20 | .SUFFIXES: .cpp .o | |
21 | ||
22 | # set default action for a *.cc to create a *.o | |
23 | .cpp.o: | |
24 | g++ -c $< ${CXXFLAGS} | |
25 | ||
26 | all: ${TARGETS} | |
27 | ||
28 | depend: | |
29 | ${CXX} -MM ${SRCS} > ${DEPEND} | |
30 | ||
31 | tags: | |
32 | ctags ${SRCS} | |
33 | ||
34 | clean: | |
35 | rm -f ${OBJS} ${TARGETS} *~ | |
36 | ||
37 | distclean: clean | |
38 | rm -f tags depend.mk | |
39 | touch depend.mk | |
40 | ||
41 | Entity.ld: ${OBJS} | |
42 | # ld -o Entity.ld ${LDFLAGS} ${OBJS} | |
43 | ||
44 | include ${DEPEND} | |
45 |