fixed velocity math mistake, updated gravtiy well force to look better
[libbear.git] / rules.mk
1
2 define cmd-link
3   ${Q1s}${PRNTLOG} "${CXX}" "$@" ${Q1e}
4   ${Q2s}${PRNTFMT} "${CXX}" "$@" ${Q2e}
5   ${Q3s}${CXX} $^ -o $@ ${CXXFLAGS} ${LNKFLAGS} ${LIBS} ${Q3e}
6   ${Q4s}${CXX} $^ -o $@ ${CXXFLAGS} ${LNKFLAGS} ${LIBS} ${Q4e}
7 endef
8
9 define cmd-cp
10   ${Q1s}${PRNTLOG} "cp" "$@" ${Q1e}
11   ${Q2s}${PRNTFMT} "cp" "$@" ${Q2e}
12   ${Q3s}cp $< $@ ${Q3e}
13   ${Q4s}cp $< $@ ${Q4e}
14 endef
15
16 define cmd-rm
17         ${Q1s}${PRNTLOG} "rm" "${CLEANTARGET}" ${Q1e}
18         ${Q2s}${PRNTFMT} "rm" "${CLEANTARGET}" ${Q2e}
19         ${Q3s}rm -f ${CLEANTARGET} ${Q3e}
20         ${Q4s}rm -f ${CLEANTARGET} ${Q4e}
21 endef
22
23 define cmd-rmrec
24         ${Q1s}${PRNTLOG} "rm" "${CLEANTARGET}" ${Q1e}
25         ${Q2s}${PRNTFMT} "rm" "${CLEANTARGET}" ${Q2e}
26         ${Q3s}rm -rf ${CLEANTARGET} ${Q3e}
27         ${Q4s}rm -rf ${CLEANTARGET} ${Q4e}
28 endef
29
30 define cmd-cpp_to_obj_and_dep
31   ${Q1s}${PRNTLOG} "${CXX}" "$@" ${Q1e}
32   ${Q2s}${PRNTFMT} "${CXX}" "$@" ${Q2e}
33   ${Q3s}${CXX} -c $< -o $@ -MMD -MF ${@:${OBJSDIR}%.o=${DEPSDIR}%.d} ${CXXFLAGS} ${INCFLAGS} ${Q3e}
34   ${Q4s}${CXX} -c $< -o $@ -MMD -MF ${@:${OBJSDIR}%.o=${DEPSDIR}%.d} ${CXXFLAGS} ${INCFLAGS} ${Q4e}
35 endef
36
37
38 ${L_BLDDIRS}: | $${SS_DIR}
39         ${Q1s}${PRNTLOG} "mkdir" "$@" ${Q1e}
40         ${Q2s}${PRNTFMT} "mkdir" "$@" ${Q2e}
41         ${Q3s}mkdir $@ ${Q3e}
42         ${Q4s}mkdir $@ ${Q4e}
43