Commit | Line | Data |
---|---|---|
6d8ae407 PG |
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 | ||
c569b5d1 PG |
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} | |
6d8ae407 PG |
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 | ||
6d8ae407 | 23 | # rule to copy the config files into the working directory |
1c05c702 | 24 | ${DSTCFGDIR_$P}%: ${SRCCFGDIR_$P}% | $${@D} |
6d8ae407 PG |
25 | ${cmd-cp} |
26 | ||
27 | # rule to copy the library files into the working directory | |
1c05c702 | 28 | ${DSTLIBSDIR_$P}%: ${SRCLIBSDIR_$P}% | $${@D} |
6d8ae407 PG |
29 | ${cmd-cp} |
30 | ||
31 | # rule to copy the text files into the working directory | |
1c05c702 | 32 | ${DSTTXTDIR_$P}%: ${SRCTXTDIR_$P}% | $${@D} |
6d8ae407 PG |
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 | ||
ccb31c84 PG |
44 | T := $P |
45 | include Makefile.d/cleanrules.mk | |
46 | T := | |
6d8ae407 | 47 |