finished changes to deps directory building
[physics.git] / rules.mk
1
2 ${G_ALL_PHYSICS}: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
3 ${G_OBJS_PHYSICS}: ${L_OBJS_$P}
4 ${G_DEPS_PHYSICS}: ${L_DEPS_$P}
5
6
7 ${TARGETTMP_$D}: ${BINDIR_$P}/${LIBSDIRNAME_$P}/${SONAME_${G_LIB}}
8
9
10 # rule to copy library lib into the working directory
11 ${BINDIR_$P}/${LIBSDIRNAME_$P}/${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${SS_DIR}
12         ${cmd-cp}
13
14 # how to link the main target
15 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${SS_DIR}
16         ${cmd-link}
17
18 # rule to copy tmp target to working directory
19 ${TARGET_$P}: ${TARGETTMP_$P} | $${SS_DIR}
20         ${cmd-cp}
21
22 # rule to copy the config files into the working directory
23 ${DSTCFGDIR_$P}/%: ${SRCCFGDIR_$P}/% | $${SS_DIR}
24         ${cmd-cp}
25
26 # rule to copy the library files into the working directory
27 ${DSTLIBSDIR_$P}/%: ${SRCLIBSDIR_$P}/% | $${SS_DIR}
28         ${cmd-cp}
29
30 # rule to copy the text files into the working directory
31 ${DSTTXTDIR_$P}/%: ${SRCTXTDIR_$P}/% | $${SS_DIR}
32         ${cmd-cp}
33
34 # rule to make an object file from a .cpp
35 ${OBJSDIR_$P}/%.o: ${SRCSDIR_$P}/%.cpp | $${SS_DIR} $${call SS_DEPSDIR,$P}
36         ${cmd-cpp_to_obj_and_dep}
37
38
39 T := $P
40     include ${F_CLEANRULES}
41 T :=
42