todo for physics
[physics.git] / src / Entities / 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
12SRCS = Ball.cpp Entity.cpp Line.cpp Particle.cpp PhysicsEntity.cpp \
13 Point.cpp Polygon.cpp WindParticle.cpp
14OBJS = ${SRCS:.cpp=.o}
15
16TARGETS = Entity.ld
17DEPEND = 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
26all: ${TARGETS}
27
28depend:
29 ${CXX} -MM ${SRCS} > ${DEPEND}
30
31tags:
32 ctags ${SRCS}
33
34clean:
35 rm -f ${OBJS} ${TARGETS} *~
36
37distclean: clean
38 rm -f tags depend.mk
39 touch depend.mk
40
41Entity.ld: ${OBJS}
42# ld -o Entity.ld ${LDFLAGS} ${OBJS}
43
44include ${DEPEND}
45