2000-09-12 09:30:35 +00:00
|
|
|
# include simple rules for building .o files from source files
|
|
|
|
@MAKEINCLUDE@ @MAKEQUOTE@@CMAKE_CONFIG_DIR@/CMake/CMakeSimpleRules.make@MAKEQUOTE@
|
2000-08-29 14:56:51 +00:00
|
|
|
|
|
|
|
#
|
2000-08-31 13:36:52 +00:00
|
|
|
# Makefile for
|
2000-08-29 14:56:51 +00:00
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
2000-09-18 13:19:38 +00:00
|
|
|
all: CMakeTargets.make ${LOCAL_BUILD_TARGETS} ${BUILD_LIB_FILE} ${EXECUTABLES} ${SUBDIR_BUILD} ${CMAKE}
|
2000-08-29 14:56:51 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2000-09-12 09:30:35 +00:00
|
|
|
${CMAKE}: ${topdir}/CMake/Source/*.cxx ${topdir}/CMake/Source/*.h
|
|
|
|
cd ${CMAKE_CONFIG_DIR}/CMake/Source; ${MAKE} CMakeBuildTargets
|
2000-08-29 14:56:51 +00:00
|
|
|
|
2000-09-18 13:19:38 +00:00
|
|
|
depend: ${CMAKE} ${SUBDIR_DEPEND}
|
2000-09-12 09:30:35 +00:00
|
|
|
${MAKE} -${MAKEFLAGS} CMakeTargets.make
|
2000-08-29 14:56:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean: ${SUBDIR_CLEAN}
|
2000-08-31 13:36:52 +00:00
|
|
|
rm -f ${SRC_OBJ} ${EXECUTABLES}
|
2000-08-29 14:56:51 +00:00
|
|
|
|
2000-08-29 19:26:29 +00:00
|
|
|
CMakeTargets.make: ${CMAKE} ${srcdir}/CMakeLists.txt
|
2000-09-12 10:44:19 +00:00
|
|
|
${CMAKE} ${srcdir}/CMakeLists.txt -S${currentdir} -H${topdir} -B${CMAKE_CONFIG_DIR}
|
2000-08-29 14:56:51 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
# rules for the normal library
|
|
|
|
#
|
|
|
|
lib${ME}.a: ${SRC_OBJ} ${KIT_OBJ}
|
|
|
|
${AR} cr lib${ME}.a ${KIT_OBJ}
|
|
|
|
${RANLIB} lib$(ME).a
|
|
|
|
|
|
|
|
|
|
|
|
lib$(ME)$(SHLIB_SUFFIX): ${KIT_OBJ}
|
|
|
|
rm -f lib$(ME)$(SHLIB_SUFFIX)
|
|
|
|
$(CXX) ${CXX_FLAGS} ${ITK_SHLIB_BUILD_FLAGS} -o \
|
|
|
|
lib$(ME)$(SHLIB_SUFFIX) \
|
|
|
|
${KIT_OBJ} ${SHLIB_LD_LIBS}
|
|
|
|
|
2000-08-30 17:35:41 +00:00
|
|
|
install: ${BUILD_LIB_FILE}
|
|
|
|
@echo "Installing ${BUILD_LIB_FILE}"
|
|
|
|
${INSTALL} -m 755 $(BUILD_LIB_FILE) $(LIB_INSTALL_DIR)/$(BUILD_LIB_FILE)
|