Commit | Line | Data |
---|---|---|
fac0f562 PG |
1 | |
2 | define cmd-link | |
3 | ${Q1}${PRNTFMT} "${CXX}" "$@" | |
4 | ${Q2}${CXX} ${CXXFLAGS} ${LNKFLAGS} -o $@ $^ ${LIBS} | |
5 | endef | |
6 | ||
7 | define cmd-cp | |
8 | ${Q1}${PRNTFMT} "cp" "$@" | |
9 | ${Q2}cp $< $@ | |
10 | endef | |
11 | ||
12 | define cmd-cpptoobj | |
13 | ${Q1}${PRNTFMT} "${CXX}" "$@" | |
14 | ${Q2}${CXX} ${CXXFLAGS} -c -o $@ $< ${INCFLAGS} | |
15 | endef | |
16 | ||
17 | define cmd-cpptodep | |
18 | ${Q1}${PRNTFMT} "DEP" "$@" | |
19 | ${Q2}${CXX} -MM ${CXXFLAGS} $< ${INCFLAGS} | sed 's/\(^.*\):/$(subst /,\/,${@:${DEPSDIR}%.d=${OBJSDIR}%.o} $@):/' > $@ | |
20 | endef | |
21 |