added usages of trim to lists
[libbear.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}} | $${@D}
12         ${cmd-cp}
13
14 # how to link the main target
15 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
16         ${cmd-link}
17
18 # rule to copy tmp target to working directory
19 ${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
20         ${cmd-cp}
21
22 # rule to copy the config files into the working directory
23 ${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D}
24         ${cmd-cp}
25
26 # rule to copy the library files into the working directory
27 ${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D}
28         ${cmd-cp}
29
30 # rule to copy the text files into the working directory
31 ${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D}
32         ${cmd-cp}
33
34 # rule to make an object file from a .cpp
35 ${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
36         ${cmd-cpptoobj}
37
38 # rule to make a depend file from a .cpp
39 ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
40         ${cmd-cpptodep}
41
42
43 T := $P
44     include ${F_CLEANRULES}
45 T :=
46