aboutsummaryrefslogtreecommitdiff
path: root/dist/build/cxx/rules.make
diff options
context:
space:
mode:
Diffstat (limited to 'dist/build/cxx/rules.make')
-rw-r--r--dist/build/cxx/rules.make14
1 files changed, 14 insertions, 0 deletions
diff --git a/dist/build/cxx/rules.make b/dist/build/cxx/rules.make
new file mode 100644
index 0000000..73399bd
--- /dev/null
+++ b/dist/build/cxx/rules.make
@@ -0,0 +1,14 @@
+# file : build/cxx/rules.make
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+include $(root)/build/config.make
+
+# Rules.
+#
+%.o: %.cxx
+ $(CXX) $(CPPFLAGS) $(EXTRA_CPPFLAGS) $(CXXFLAGS) -c $< -o $@
+
+%: %.o
+ $(LD) $(LDFLAGS) -o $@ $^ $(LIBS)