blob: 19710a4c9c3fe828f9affeac34e919934195fc65 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# 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.
#
#------------------------------------------------------------------------------
#
all: ${OBJ_SUB_DIRS} ${EXECUTABLES} ${SUBDIR_BUILD} ${ITK_LIB_FILE} ${LOCAL_BUILD_TARGETS}
#------------------------------------------------------------------------------
${RULESGEN}: @fullSrcDir@/Code/tools/*.cxx @fullSrcDir@/Code/tools/*.h
cd @ITK_OBJ@/Code/tools; ${MAKE} rulesgen
depend: ${RULESGEN}
${RULESGEN} Makefile
clean: ${SUBDIR_CLEAN}
rm -f ${SRC_OBJ} ${ITK_EXECUTABLES}
targets.make: ${RULESGEN} Makefile
${RULESGEN} Makefile -S${srcdir} -I${srcdir} ${INCLUDE_FLAGS}
#------------------------------------------------------------------------------
# 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)
|