xref: /unit/auto/cc/deps (revision 396:3ed1efa34ac2)
1
2case "$NXT_CC_NAME" in
3
4    SunC):
5        nxt_gen_dep_flags() {
6            $echo "-xMMD -xMF $NXT_BUILD_DIR/$nxt_dep.tmp"
7        }
8
9        nxt_gen_dep_post() {
10            $echo -n "@sed -e 's#^.*:#$NXT_BUILD_DIR/$nxt_obj:#' "
11            $echo -n "$NXT_BUILD_DIR/$nxt_dep.tmp > $NXT_BUILD_DIR/$nxt_dep"
12            $echo " && rm -f $NXT_BUILD_DIR/$nxt_dep.tmp"
13        }
14    ;;
15
16    *)
17        nxt_gen_dep_flags() {
18            $echo "-MMD -MF $NXT_BUILD_DIR/$nxt_dep -MT $NXT_BUILD_DIR/$nxt_obj"
19        }
20
21        nxt_gen_dep_post() {
22            $echo ""
23        }
24    ;;
25esac
26