1 | |
---|
2 | bindir = @bindir@ |
---|
3 | datadir = @datadir@ |
---|
4 | datarootdir = @datarootdir@ |
---|
5 | exec_prefix = @exec_prefix@ |
---|
6 | includedir = @includedir@ |
---|
7 | libdir = @libdir@ |
---|
8 | mandir = @mandir@ |
---|
9 | prefix = @prefix@ |
---|
10 | srcdir = @srcdir@ |
---|
11 | |
---|
12 | SHELL = @SHELL@ |
---|
13 | INSTALL = @INSTALL@ |
---|
14 | MKDIR_P = @MKDIR_P@ |
---|
15 | |
---|
16 | CXX = @CXX@ |
---|
17 | CC = @CC@ |
---|
18 | CFLAGS_DEBUG = @TCL_CFLAGS_DEBUG@ -Wall |
---|
19 | CFLAGS_OPTIMIZE = @TCL_CFLAGS_OPTIMIZE@ |
---|
20 | STLIB_LD = @TCL_STLIB_LD@ |
---|
21 | SHLIB_LD = @TCL_SHLIB_LD@ |
---|
22 | SHLIB_CFLAGS = @TCL_SHLIB_CFLAGS@ |
---|
23 | SHLIB_LDFLAGS = @TCL_SHLIB_LDFLAGS@ |
---|
24 | SHLIB_SUFFIX = @TCL_SHLIB_SUFFIX@ |
---|
25 | CFLAGS_DEFAULT = @TCL_CFLAGS_DEFAULT@ |
---|
26 | LIB_RUNTIME_DIR = @LIB_RUNTIME_DIR@ |
---|
27 | CFLAGS = @CFLAGS@ -fPIC |
---|
28 | TCL_VERSION = @TCL_VERSION@ |
---|
29 | TCLTK_SRCS = -I../../../runtime/tcl8.4.19/generic -I../../../runtime/tk8.4.19/generic -I../../../runtime/tk8.4.19/unix |
---|
30 | TCL_LIB_SPEC = @TCL_LIB_SPEC@ |
---|
31 | TK_LIB_SPEC = @TK_LIB_SPEC@ |
---|
32 | TK_XLIBSW = @TK_XLIBSW@ |
---|
33 | VTK_VERSION = @VTK_VERSION@ |
---|
34 | VTK_TCL_DIR = @VTK_TCL_DIR@ |
---|
35 | ENABLE_VTK = @ENABLE_VTK@ |
---|
36 | ENABLE_VTK_DICOM= @ENABLE_VTK_DICOM@ |
---|
37 | VTK_LIB_SPEC = |
---|
38 | |
---|
39 | CC_SWITCHES = $(SHLIB_CFLAGS) $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
40 | CXX_SWITCHES = $(SHLIB_CFLAGS) $(CFLAGS) $(CFLAGS_DEBUG) $(INCLUDES) $(DEFINES) |
---|
41 | |
---|
42 | INCLUDES = -I$(srcdir) \ |
---|
43 | -I$(includedir) \ |
---|
44 | -I$(includedir)/vtk-$(VTK_VERSION) |
---|
45 | version = @PACKAGE_VERSION@ |
---|
46 | DEFINES = -DPACKAGE_VERSION=\"$(version)\" |
---|
47 | |
---|
48 | RANLIB = @RANLIB@ |
---|
49 | AR = ar |
---|
50 | VPATH = $(srcdir) |
---|
51 | RM = rm -f |
---|
52 | |
---|
53 | CDEBUGFLAGS = -g -Wall |
---|
54 | |
---|
55 | LIBS = \ |
---|
56 | -L$(libdir) $(VTK_LIB_SPEC) $(TCL_LIB_SPEC) $(TK_LIB_SPEC) $(TK_XLIBSW) -lm |
---|
57 | |
---|
58 | OBJS = \ |
---|
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 | |
---|
69 | ifeq ($(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 |
---|
78 | endif |
---|
79 | |
---|
80 | |
---|
81 | name = RapptureGUI$(version) |
---|
82 | libname = $(name) |
---|
83 | lib = $(libname)$(SHLIB_SUFFIX) |
---|
84 | destdir = $(libdir)/$(name) |
---|
85 | |
---|
86 | all: $(lib) |
---|
87 | |
---|
88 | $(lib): $(OBJS) |
---|
89 | $(SHLIB_LD) $(SHLIB_LDFLAGS) -o $@ $(OBJS) \ |
---|
90 | $(LIB_SEARCH_DIRS) $(LIBS) |
---|
91 | |
---|
92 | install: $(lib) |
---|
93 | $(MKDIR_P) $(destdir) |
---|
94 | $(INSTALL) -m 555 $(lib) $(destdir) |
---|
95 | |
---|
96 | RpListbox.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 | |
---|
103 | clean: |
---|
104 | $(RM) $(OBJS) $(lib) |
---|
105 | |
---|
106 | distclean: clean |
---|
107 | $(RM) Makefile *~ |
---|