summaryrefslogtreecommitdiffstats
path: root/CMakeRules.make.in
diff options
context:
space:
mode:
authorWill Schroeder <will.schroeder@kitware.com>2001-01-18 16:51:45 (GMT)
committerWill Schroeder <will.schroeder@kitware.com>2001-01-18 16:51:45 (GMT)
commit0283c37c76391bb7d6ff95970358eacc41a0e98a (patch)
treee6bd7cb18c484184102ca051bf638b32830350d9 /CMakeRules.make.in
parent658614ff6a14411e2a697fac1f1717a7f4370bf0 (diff)
downloadCMake-0283c37c76391bb7d6ff95970358eacc41a0e98a.zip
CMake-0283c37c76391bb7d6ff95970358eacc41a0e98a.tar.gz
CMake-0283c37c76391bb7d6ff95970358eacc41a0e98a.tar.bz2
ERR:Oops, renamed back
Diffstat (limited to 'CMakeRules.make.in')
-rw-r--r--CMakeRules.make.in42
1 files changed, 42 insertions, 0 deletions
diff --git a/CMakeRules.make.in b/CMakeRules.make.in
new file mode 100644
index 0000000..bfecbf3
--- /dev/null
+++ b/CMakeRules.make.in
@@ -0,0 +1,42 @@
+# rules for building .o files from source files
+@MAKEINCLUDE@ @MAKEQUOTE@@CMAKE_CONFIG_DIR@/CMake/CMakeSimpleRules.make@MAKEQUOTE@
+
+#
+# Makefile for
+#
+#------------------------------------------------------------------------------
+#
+all: CMakeTargets.make ${LOCAL_BUILD_TARGETS} ${BUILD_LIB_FILE} ${EXECUTABLES} ${SUBDIR_BUILD} ${CMAKE}
+
+#------------------------------------------------------------------------------
+
+${CMAKE}: ${topdir}/CMake/Source/*.cxx ${topdir}/CMake/Source/*.h
+ cd ${CMAKE_CONFIG_DIR}/CMake/Source; ${MAKE} CMakeBuildTargets
+
+depend: ${CMAKE} ${SUBDIR_DEPEND}
+ ${MAKE} -${MAKEFLAGS} CMakeTargets.make
+
+
+clean: ${SUBDIR_CLEAN}
+ rm -f ${SRC_OBJ} ${EXECUTABLES}
+
+CMakeTargets.make: ${CMAKE} ${srcdir}/CMakeLists.txt
+ ${CMAKE} ${srcdir}/CMakeLists.txt -S${currentdir} -H${topdir} -B${CMAKE_CONFIG_DIR}
+
+#------------------------------------------------------------------------------
+# rules for the normal library
+#
+lib${LIBRARY}.a: ${SRC_OBJ} ${KIT_OBJ}
+ ${AR} cr lib${LIBRARY}.a ${KIT_OBJ}
+ ${RANLIB} lib$(LIBRARY).a
+
+
+lib$(LIBRARY)$(SHLIB_SUFFIX): ${KIT_OBJ}
+ rm -f lib$(LIBRARY)$(SHLIB_SUFFIX)
+ $(CXX) ${CXX_FLAGS} ${CMAKE_SHLIB_BUILD_FLAGS} -o \
+ lib$(LIBRARY)$(SHLIB_SUFFIX) \
+ ${KIT_OBJ} ${SHLIB_LD_LIBS}
+
+install: ${BUILD_LIB_FILE}
+ @echo "Installing ${BUILD_LIB_FILE}"
+ ${INSTALL} -m 755 $(BUILD_LIB_FILE) $(LIB_INSTALL_DIR)/$(BUILD_LIB_FILE)