summaryrefslogtreecommitdiffstats
path: root/CMakeSimpleRules.make.in
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2000-08-31 17:54:53 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2000-08-31 17:54:53 (GMT)
commit3ded009f08c0d9785edb872fadf1b55798fd5df2 (patch)
tree829a818498f07e1efc19008286e7d393fa82b392 /CMakeSimpleRules.make.in
parent8300505ecec8eb408d9ee6e62149c3c03714e55e (diff)
downloadCMake-3ded009f08c0d9785edb872fadf1b55798fd5df2.zip
CMake-3ded009f08c0d9785edb872fadf1b55798fd5df2.tar.gz
CMake-3ded009f08c0d9785edb872fadf1b55798fd5df2.tar.bz2
BUG: fix for out of source build
Diffstat (limited to 'CMakeSimpleRules.make.in')
-rw-r--r--CMakeSimpleRules.make.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/CMakeSimpleRules.make.in b/CMakeSimpleRules.make.in
new file mode 100644
index 0000000..cb95e29
--- /dev/null
+++ b/CMakeSimpleRules.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 $@