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