summaryrefslogtreecommitdiff
path: root/build-0.3/cxx/intel/cxx-o.make
diff options
context:
space:
mode:
Diffstat (limited to 'build-0.3/cxx/intel/cxx-o.make')
-rw-r--r--build-0.3/cxx/intel/cxx-o.make41
1 files changed, 41 insertions, 0 deletions
diff --git a/build-0.3/cxx/intel/cxx-o.make b/build-0.3/cxx/intel/cxx-o.make
new file mode 100644
index 0000000..c64e2c8
--- /dev/null
+++ b/build-0.3/cxx/intel/cxx-o.make
@@ -0,0 +1,41 @@
+# file : build/cxx/intel/cxx-o.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2004-2010 Code Synthesis Tools CC
+# license : GNU GPL v2; see accompanying LICENSE file
+
+$(call include-once,$(bld_root)/c/cpp-options.make,$(out_base))
+$(call include,$(bld_root)/cxx/intel/configuration.make)
+
+$(out_base)/%.o: cxx := $(cxx_intel)
+$(out_base)/%.o: cxx_options := $(cxx_intel_optimization_options) $(cxx_intel_debugging_options)
+
+#@@ wrong prefix
+#
+$(out_base)/%.o: expand-cpp-options-impl = \
+$(if $1,$(shell sed -e 's%include: \(.*\)%\1%' -e t -e d $1))
+
+$(out_base)/%.o: expand-cpp-options = \
+$(call expand-cpp-options-impl,$(filter %.cpp-options,$1))
+
+ifeq ($(out_base),$(src_base))
+$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix)
+else
+$(out_base)/%.o: $(src_base)/%.$(cxx_s_suffix) | $$(dir $$@).
+endif
+ $(call message,c++ $<,$(cxx) \
+$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \
+$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<)
+
+ifneq ($(out_base),$(src_base))
+
+$(out_base)/%.o: $(out_base)/%.$(cxx_s_suffix) | $$(dir $$@).
+ $(call message,c++ $<,$(cxx) \
+$(cpp_options) $(call expand-cpp-options,$^) $(cxx_pp_extra_options) \
+$(cxx_options) $(cxx_pic_options) $(cxx_extra_options) -o $@ -c $<)
+
+endif
+
+.PHONY: $(out_base)/%.o.$(cxx_s_suffix).clean
+
+$(out_base)/%.o.$(cxx_s_suffix).clean:
+ $(call message,rm $$1,rm -f $$1,$(basename $(basename $@)))