fixed non-used argument, compiler warnings
[physics.git] / rules.mk
1
2 # HACK
3 all: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
4
5 #${G_OBJS_TESTS}: ${L_OBJS_$P}
6 #${G_DEPS_TESTS}: ${L_DEPS_$P}
7
8 ${TARGETTMP_$D}: ${BINDIR_$P}${SONAME_${G_LIB}}
9
10
11 # how to copy a library to the tests bin directory
12 ${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
13         ${cmd-cp}
14
15 # how to link the main target
16 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
17         ${cmd-link}
18
19 # rule to copy tmp target to working directory
20 ${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
21         ${cmd-cp}
22
23 # rule to copy the config files into the working directory
24 ${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D}
25         ${cmd-cp}
26
27 # rule to copy the library files into the working directory
28 ${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D}
29         ${cmd-cp}
30
31 # rule to copy the text files into the working directory
32 ${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D}
33         ${cmd-cp}
34
35 # rule to make an object file from a .cpp
36 ${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
37         ${cmd-cpptoobj}
38
39 # rule to make a depend file from a .cpp
40 ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
41         ${cmd-cpptodep}
42
43
44 L_CLEANCMDS +=  cleanbin-$P
45 cleanbin:       cleanbin-$P
46 .PHONY:         cleanbin-$P
47 cleanbin-$P:
48         ${Q1}${PRNTFMT} "rm" "${BINDIR}"
49         ${Q2}rm -rf ${BINDIR}
50
51 L_CLEANCMDS +=  cleanobjs-$P
52 cleanobjs:      cleanobjs-$P
53 .PHONY:         cleanobjs-$P
54 cleanobjs-$P:
55         ${Q1}${PRNTFMT} "rm" "${OBJSDIR}"
56         ${Q2}rm -rf ${OBJSDIR}
57
58 L_CLEANCMDS +=  cleandeps-$P
59 cleandeps:      cleandeps-$P
60 .PHONY:         cleandeps-$P
61 cleandeps-$P:
62         ${Q1}${PRNTFMT} "rm" "${DEPSDIR}"
63         ${Q2}rm -rf ${DEPSDIR}
64
65 L_CLEANCMDS +=  clean-$P
66 clean:          clean-$P
67 .PHONY:         clean-$P
68 clean-$P: cleanobjs-$P cleanbin-$P
69
70 L_CLEANCMDS +=  cleanall-$P
71 cleanall:       cleanall-$P
72 .PHONY:         cleanall-$P
73 cleanall-$P: cleanbin-$P cleanobjs-$P cleandeps-$P
74