fixed miss placed libbear.so.0
[physics.git] / rules.mk
1
2 # HACK
3 .PHONY: physics objs-physics deps-physics
4 physics: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
5 objs-physics: ${L_OBJS_$P}
6 deps-physics: ${L_DEPS_$P}
7
8 # HACK
9 all: physics
10
11
12 ${TARGETTMP_$D}: ${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}
13
14
15 # rule to copy library lib into the working directory
16 ${BINDIR_$P}${LIBSDIRNAME_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
17         ${cmd-cp}
18
19 # how to link the main target
20 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
21         ${cmd-link}
22
23 # rule to copy tmp target to working directory
24 ${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
25         ${cmd-cp}
26
27 # rule to copy the config files into the working directory
28 ${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D}
29         ${cmd-cp}
30
31 # rule to copy the library files into the working directory
32 ${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D}
33         ${cmd-cp}
34
35 # rule to copy the text files into the working directory
36 ${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D}
37         ${cmd-cp}
38
39 # rule to make an object file from a .cpp
40 ${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
41         ${cmd-cpptoobj}
42
43 # rule to make a depend file from a .cpp
44 ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
45         ${cmd-cpptodep}
46
47
48 T := $P
49     include ${F_CLEANRULES}
50 T :=
51