2000-08-29 14:56:51 +00:00
|
|
|
# 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 $@
|
|
|
|
|
|
|
|
#
|
|
|
|
# Makefile for Visualization Toolkit sources.
|
|
|
|
#
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
#
|
2000-08-29 19:26:29 +00:00
|
|
|
all: ${OBJ_SUB_DIRS} ${EXECUTABLES} ${SUBDIR_BUILD} ${ITK_LIB_FILE} ${LOCAL_BUILD_TARGETS}
|
2000-08-29 14:56:51 +00:00
|
|
|
|
|
|
|
#------------------------------------------------------------------------------
|
|
|
|
|
2000-08-29 19:26:29 +00:00
|
|
|
${CMAKE}: @fullSrcDir@/CMake/Source/*.cxx @fullSrcDir@/CMake/Source/*.h
|
|
|
|
cd @CMAKE_OBJ_DIR@/CMake/Source; ${MAKE} CMakeBuildTargets
|
2000-08-29 14:56:51 +00:00
|
|
|
|
2000-08-29 19:26:29 +00:00
|
|
|
depend: ${CMAKE}
|
|
|
|
${CMAKE} ${srcdir}/CMakeLists.txt -S${srcdir} -I${srcdir} ${INCLUDE_FLAGS}
|
2000-08-29 14:56:51 +00:00
|
|
|
|
|
|
|
|
|
|
|
clean: ${SUBDIR_CLEAN}
|
|
|
|
rm -f ${SRC_OBJ} ${ITK_EXECUTABLES}
|
|
|
|
|
2000-08-29 19:26:29 +00:00
|
|
|
CMakeTargets.make: ${CMAKE} ${srcdir}/CMakeLists.txt
|
|
|
|
${CMAKE} ${srcdir}/CMakeLists.txt -S${srcdir} -I${srcdir} ${INCLUDE_FLAGS}
|
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}
|
|
|
|
|
|
|
|
install: ${ITK_LIB_FILE}
|
|
|
|
@echo "Installing ${ITK_LIB_FILE}"
|
|
|
|
${INSTALL} -m 755 $(ITK_LIB_FILE) $(LIB_INSTALL_DIR)/$(ITK_LIB_FILE)
|