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