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}
9 # how to link the main target
10 ${TARGETTMP_$P}: ${L_OBJS_$P} | $${@D}
13 # rule to copy tmp target to working directory
14 ${TARGET_$P}: ${TARGETTMP_$P} | $${@D}
17 # how to copy a library to the bin directory
18 #${BINDIR_$P}${SONAME_${G_LIB}}: ${TARGET_${G_LIB}} | $${@D}
21 # rule to copy the config files into the working directory
22 ${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $$(dir $$@)
25 # rule to copy the library files into the working directory
26 ${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $$(dir $$@)
29 # rule to copy the text files into the working directory
30 ${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $$(dir $$@)
33 # rule to make an object file from a .cpp
34 ${OBJSDIR_$P}%.o: ${SRCSDIR_$P}%.cpp | $${@D}
37 # rule to make a depend file from a .cpp
38 ${DEPSDIR_$P}%.d: ${SRCSDIR_$P}%.cpp | $${@D}
42 L_CLEANCMDS += cleanbin-$P
46 ${Q1}${PRNTFMT} "rm" "${BINDIR}"
49 L_CLEANCMDS += cleanobjs-$P
50 cleanobjs: cleanobjs-$P
53 ${Q1}${PRNTFMT} "rm" "${OBJSDIR}"
54 ${Q2}rm -rf ${OBJSDIR}
56 L_CLEANCMDS += cleandeps-$P
57 cleandeps: cleandeps-$P
60 ${Q1}${PRNTFMT} "rm" "${DEPSDIR}"
61 ${Q2}rm -rf ${DEPSDIR}
63 L_CLEANCMDS += clean-$P
66 clean-$P: cleanobjs-$P cleanbin-$P
68 L_CLEANCMDS += cleanall-$P
71 cleanall-$P: cleanbin-$P cleanobjs-$P cleandeps-$P