summaryrefslogtreecommitdiffhomepage
path: root/auto/cc/deps
diff options
context:
space:
mode:
Diffstat (limited to 'auto/cc/deps')
-rw-r--r--auto/cc/deps25
1 files changed, 25 insertions, 0 deletions
diff --git a/auto/cc/deps b/auto/cc/deps
new file mode 100644
index 00000000..6e7df20f
--- /dev/null
+++ b/auto/cc/deps
@@ -0,0 +1,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