off loaded including of subdirectories to dir.mk files (fixes dependencies problems)
[physics.git] / src / dir.mk
... / ...
CommitLineData
1NEWSRCS := # insure blank
2
3NEWSRCS += game.cpp
4NEWSRCS += main.cpp
5NEWSRCS += mathw.cpp
6NEWSRCS += ticks.cpp
7NEWSRCS += Vector2.cpp
8NEWSRCS += handleSignal.cpp
9
10NEWSRCS += entityCreator.cpp
11NEWSRCS += entityManager.cpp
12NEWSRCS += effectManager.cpp
13NEWSRCS += collisionManager.cpp
14NEWSRCS += CollisionInfo.cpp
15
16NEWSRCS += debug.cpp
17
18
19NEWDIRS := # insure blank
20
21NEWDIRS += Entities/
22NEWDIRS += GameStates/
23NEWDIRS += Effects/
24NEWDIRS += config/
25NEWDIRS += input/
26NEWDIRS += graphics/
27NEWDIRS += locks/
28
29
30# Post dir setup
31
32CURDIR :=
33
34NEWSRCS := $(addprefix ${CURDIR},${NEWSRCS})
35NEWDIRS := $(addprefix ${CURDIR},${NEWDIRS})
36NEWOBJS := ${NEWSRCS:.cpp=.o}
37NEWDEPS := ${NEWSRCS:.cpp=.d}
38
39# Append to lists
40
41SRCS += ${NEWSRCS}
42DIRS += ${NEWDIRS}
43OBJS += $(addprefix ${OBJSDIR},${NEWOBJS})
44DEPS += $(addprefix ${DEPSDIR},${NEWDEPS})
45
46
47include $(addprefix ${SRCSDIR},$(addsuffix ${DIRMK},${NEWDIRS}))