source: trunk/gui/src/Makefile.in @ 4211

Last change on this file since 4211 was 4211, checked in by ldelgass, 11 years ago

More fixes for VTK features. Note that DxToVtk? and PdbToVtk? do not use the
VTK library, and thus can always be built. The DicomToVtk? converter requires
VTK, but does not require the ENABLE_VTK_DICOM option to be set. That option
controls if the external vtkDICOM library is used in addition to VTK.

File size: 2.6 KB
Line 
1
2bindir          = @bindir@
3datadir         = @datadir@
4datarootdir     = @datarootdir@
5exec_prefix     = @exec_prefix@
6includedir      = @includedir@
7libdir          = @libdir@
8mandir          = @mandir@
9prefix          = @prefix@
10srcdir          = @srcdir@
11
12SHELL           = @SHELL@
13INSTALL         = @INSTALL@
14MKDIR_P         = @MKDIR_P@
15
16CXX             = @CXX@
17CC              = @CC@
18CFLAGS_DEBUG    = @TCL_CFLAGS_DEBUG@ -Wall
19CFLAGS_OPTIMIZE = @TCL_CFLAGS_OPTIMIZE@
20STLIB_LD        = @TCL_STLIB_LD@
21SHLIB_LD        = @TCL_SHLIB_LD@
22SHLIB_CFLAGS    = @TCL_SHLIB_CFLAGS@
23SHLIB_LDFLAGS   = @TCL_SHLIB_LDFLAGS@
24SHLIB_SUFFIX    = @TCL_SHLIB_SUFFIX@
25CFLAGS_DEFAULT  = @TCL_CFLAGS_DEFAULT@
26LIB_RUNTIME_DIR = @LIB_RUNTIME_DIR@
27CFLAGS          = @CFLAGS@ -fPIC
28TCL_VERSION     = @TCL_VERSION@
29TCLTK_SRCS      = -I../../../runtime/tcl8.4.19/generic -I../../../runtime/tk8.4.19/generic -I../../../runtime/tk8.4.19/unix
30TCL_LIB_SPEC    = @TCL_LIB_SPEC@
31TK_LIB_SPEC     = @TK_LIB_SPEC@
32TK_XLIBSW       = @TK_XLIBSW@
33VTK_VERSION     = @VTK_VERSION@
34VTK_TCL_DIR     = @VTK_TCL_DIR@
35ENABLE_VTK      = @ENABLE_VTK@
36ENABLE_VTK_DICOM= @ENABLE_VTK_DICOM@
37VTK_LIB_SPEC    =
38
39CC_SWITCHES     = $(SHLIB_CFLAGS) $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
40CXX_SWITCHES    = $(SHLIB_CFLAGS) $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES)
41
42INCLUDES        = -I$(srcdir) \
43                  -I$(includedir) \
44                  -I$(includedir)/vtk-$(VTK_VERSION)
45version         = @PACKAGE_VERSION@
46DEFINES         = -DPACKAGE_VERSION=\"$(version)\"
47
48RANLIB          = @RANLIB@
49AR              = ar
50VPATH           = $(srcdir)
51RM              = rm -f
52
53CDEBUGFLAGS     = -g -Wall
54
55LIBS            = \
56                -L$(libdir) $(VTK_LIB_SPEC) $(TCL_LIB_SPEC) $(TK_LIB_SPEC) $(TK_XLIBSW) -lm
57
58OBJS            = \
59                RapptureGUI_Init.o \
60                RpCanvHotspot.o \
61                RpCanvPlacard.o \
62                RpDiffview.o \
63                RpDxToVtk.o \
64                RpPdbToVtk.o \
65                RpReadPoints.o \
66                RpListbox.o \
67                RpSqueezer.o
68
69ifeq ($(ENABLE_VTK),yes)
70  OBJS += RpDicomToVtk.o
71  VTK_LIB_SPEC += -lvtkIOCore-$(VTK_VERSION) -lvtkIOLegacy-$(VTK_VERSION) -lvtkIOImage-$(VTK_VERSION) -lvtkCommonCore-$(VTK_VERSION)
72  DEFINES      += -DENABLE_VTK
73
74  ifeq ($(ENABLE_VTK_DICOM),yes)
75    VTK_LIB_SPEC += -lvtkDICOM
76    DEFINES      += -DENABLE_VTK_DICOM -DUSE_VTK_DICOM_PACKAGE
77  endif
78endif
79
80
81name            = RapptureGUI$(version)
82libname         = $(name)
83lib             = $(libname)$(SHLIB_SUFFIX)
84destdir         = $(libdir)/$(name)
85
86all: $(lib)
87
88$(lib): $(OBJS)
89        $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \
90                $(LIB_SEARCH_DIRS) $(LIBS)
91
92install: $(lib)
93        $(MKDIR_P) $(destdir)
94        $(INSTALL) -m 555 $(lib) $(destdir)
95
96RpListbox.o: RpListbox.c
97        $(CC) $(CC_SWITCHES) $(TCLTK_SRCS) -c $?
98.cc.o:
99        $(CXX) $(CXX_SWITCHES) -c $?
100.c.o:
101        $(CC) $(CC_SWITCHES) -c $?
102
103clean:
104        $(RM) $(OBJS) $(lib)
105
106distclean: clean
107        $(RM) Makefile *~
Note: See TracBrowser for help on using the repository browser.