summaryrefslogtreecommitdiffhomepage
path: root/auto/cc/deps
blob: 6e7df20f47269c556983f38f036027984718787d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

case "$NXT_CC_NAME" in

    SunC):
        nxt_gen_dep_flags() {
            $echo "-xMMD -xMF $NXT_BUILD_DIR/$nxt_dep.tmp" 
        }

        nxt_gen_dep_post() {
            $echo -n "@sed -e 's#^.*:#$NXT_BUILD_DIR/$nxt_obj:#' "
            $echo -n "$NXT_BUILD_DIR/$nxt_dep.tmp > $NXT_BUILD_DIR/$nxt_dep"
            $echo " && rm -f $NXT_BUILD_DIR/$nxt_dep.tmp"
        }
    ;;

    *)
        nxt_gen_dep_flags() {
            $echo "-MMD -MF $NXT_BUILD_DIR/$nxt_dep -MT $NXT_BUILD_DIR/$nxt_obj" 
        }

        nxt_gen_dep_post() {
            $echo ""
        }
    ;;
esac