3 all: ${TARGET_$P} ${CFGS_$P} ${LIBSTXT_$P} ${LIBSCPY_$P} ${TXT_$P}
5 #${G_OBJS_TESTS}: ${L_OBJS_$P}
6 #${G_DEPS_TESTS}: ${L_DEPS_$P}
8 ${TARGETTMP_$D}: ${BINDIR_$P}${SONAME_${G_LIB}}
11 # how to copy a library to the tests bin directory
12 ${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
15 # how to link the main target
16 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
19 # rule to copy tmp target to working directory
20 ${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
23 # rule to copy the config files into the working directory
24 ${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $$(dir $$@)
27 # rule to copy the library files into the working directory
28 ${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $$(dir $$@)
31 # rule to copy the text files into the working directory
32 ${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $$(dir $$@)
35 # rule to make an object file from a .cpp
36 ${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
39 # rule to make a depend file from a .cpp
40 ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
44 L_CLEANCMDS += cleanbin-$P
48 ${Q1}${PRNTFMT} "rm" "${BINDIR}"
51 L_CLEANCMDS += cleanobjs-$P
52 cleanobjs: cleanobjs-$P
55 ${Q1}${PRNTFMT} "rm" "${OBJSDIR}"
56 ${Q2}rm -rf ${OBJSDIR}
58 L_CLEANCMDS += cleandeps-$P
59 cleandeps: cleandeps-$P
62 ${Q1}${PRNTFMT} "rm" "${DEPSDIR}"
63 ${Q2}rm -rf ${DEPSDIR}
65 L_CLEANCMDS += clean-$P
68 clean-$P: cleanobjs-$P cleanbin-$P
70 L_CLEANCMDS += cleanall-$P
73 cleanall-$P: cleanbin-$P cleanobjs-$P cleandeps-$P