finished changes to deps directory building
[physics.git] / dir.mk
1
2 T_DIRNAME := physics
3
4 ################################################################################
5
6 # top define
7 DIRNAME := ${T_DIRNAME}
8 D       := ${DIRNAME}
9 P       := ${DIRNAME}
10 CURDIR  := ${DIRNAME}
11
12 T_DIRNAME :=
13
14 include ${CURDIR}/${G_VARSMK}
15
16 include ${CURDIR}/${G_LISTSMK}
17
18 include ${SRCSDIR_$P}/${G_DIRMK}
19
20 include ${CURDIR}/${G_TVARSMK}
21
22 include ${CURDIR}/${G_RULESMK}
23
24 L_BLDDIRS_$P  += ${DSTCFGDIR_$P}
25 L_BLDDIRS_$P  += ${DSTLIBSDIR_$P}
26
27 # every directory depends on its parent
28 ${L_BLDDIRS_$P}: | $${@D}
29
30 # however, these do not depend on parent
31 # (to prevent circular dep with phony physics)
32 L_BLDDIRS_$P  += ${OBJSDIR_$P}
33 L_BLDDIRS_$P  += ${DEPSDIR_$P}
34 L_BLDDIRS_$P  += ${BINDIR_$P}
35
36 L_DEPS    += ${L_DEPS_$P}
37 L_BLDDIRS += ${L_BLDDIRS_$P}
38