summaryrefslogtreecommitdiffstats
path: root/CMakeSimpleCommands.make.in
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeSimpleCommands.make.in')
-rw-r--r--CMakeSimpleCommands.make.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeSimpleCommands.make.in b/CMakeSimpleCommands.make.in
new file mode 100644
index 0000000..cb95e29
--- /dev/null
+++ b/CMakeSimpleCommands.make.in
@@ -0,0 +1,15 @@
+# this file contains the most basic rules. This is used
+# in the CMake/Source/Makefile.in to avoid infinite recursion
+# in the rule for all:
+
+# set up make suffixes
+
+.SUFFIXES: .cxx .java .class
+
+#------------------------------------------------------------------------------
+# rules for building .o files from source files
+
+.c.o:
+ ${CC} ${CC_FLAGS} -c $< -o $@
+.cxx.o:
+ ${CXX} ${CXX_FLAGS} -c $< -o $@