1 |
578 |
markom |
#
|
2 |
|
|
# This file is a Makefile for [incr Widgets]. If it has the name
|
3 |
|
|
# "Makefile.in" then it is a template for a Makefile; to generate
|
4 |
|
|
# the actual Makefile, run "./configure", which is a configuration
|
5 |
|
|
# script generated by the "autoconf" program (constructs like
|
6 |
|
|
# "@foo@" will get replaced in the actual Makefile.
|
7 |
|
|
#
|
8 |
|
|
# RCS: $Id: Makefile.in,v 1.1.1.1 2002-01-16 10:24:51 markom Exp $
|
9 |
|
|
|
10 |
|
|
# Current [incr Widgets] version; used in various names.
|
11 |
|
|
|
12 |
|
|
ITCL_VERSION = @ITCL_VERSION@
|
13 |
|
|
IWIDGETS_VERSION = @IWIDGETS_VERSION@
|
14 |
|
|
VERSION = $(ITCL_VERSION).$(IWIDGETS_VERSION)
|
15 |
|
|
|
16 |
|
|
#----------------------------------------------------------------
|
17 |
|
|
# Things you can change to personalize the Makefile for your own
|
18 |
|
|
# site (you can make these changes in either Makefile.in or
|
19 |
|
|
# Makefile, but changes to Makefile will get lost if you re-run
|
20 |
|
|
# the configuration script).
|
21 |
|
|
#----------------------------------------------------------------
|
22 |
|
|
|
23 |
|
|
# Default top-level directories in which to install architecture-
|
24 |
|
|
# specific files (exec_prefix) and machine-independent files such
|
25 |
|
|
# as scripts (prefix). The values specified here may be overridden
|
26 |
|
|
# at configure-time with the --exec-prefix and --prefix options
|
27 |
|
|
# to the "configure" script.
|
28 |
|
|
|
29 |
|
|
prefix = @prefix@
|
30 |
|
|
exec_prefix = @exec_prefix@
|
31 |
|
|
srcdir = @srcdir@
|
32 |
|
|
libdir=@libdir@
|
33 |
|
|
bindir=@bindir@
|
34 |
|
|
includedir=@includedir@
|
35 |
|
|
mandir=@mandir@
|
36 |
|
|
datadir=@datadir@
|
37 |
|
|
|
38 |
|
|
# The following definition can be set to non-null for special systems
|
39 |
|
|
# like AFS with replication. It allows the pathnames used for installation
|
40 |
|
|
# to be different than those used for actually reference files at
|
41 |
|
|
# run-time. INSTALL_ROOT is prepended to $prefix and $exec_prefix
|
42 |
|
|
# when installing files.
|
43 |
|
|
INSTALL_ROOT =
|
44 |
|
|
|
45 |
|
|
# CYGNUS LOCAL - The default library directory is the share directory...
|
46 |
|
|
# Directory from which applications will reference the library of
|
47 |
|
|
# [incr Widgets] scripts (note: you can set the IWIDGETS_LIBRARY environment
|
48 |
|
|
# variable at run-time to override this value):
|
49 |
|
|
IWIDGETS_LIBRARY = $(datadir)/iwidgets$(VERSION)
|
50 |
|
|
# END CYGNUS LOCAL
|
51 |
|
|
|
52 |
|
|
# Path name to use when installing library scripts:
|
53 |
|
|
SCRIPT_INSTALL_DIR = $(INSTALL_ROOT)$(IWIDGETS_LIBRARY)
|
54 |
|
|
|
55 |
|
|
# Directory in which to install the archive libtcl.a:
|
56 |
|
|
LIB_INSTALL_DIR = $(INSTALL_ROOT)$(libdir)
|
57 |
|
|
|
58 |
|
|
# Directory in which to install the program tclsh:
|
59 |
|
|
BIN_INSTALL_DIR = $(INSTALL_ROOT)$(bindir)
|
60 |
|
|
|
61 |
|
|
# Directory in which to install the include file itcl.h:
|
62 |
|
|
INCLUDE_INSTALL_DIR = $(INSTALL_ROOT)$(includedir)
|
63 |
|
|
|
64 |
|
|
# Top-level directory in which to install manual entries:
|
65 |
|
|
MAN_INSTALL_DIR = $(INSTALL_ROOT)$(mandir)
|
66 |
|
|
|
67 |
|
|
# Directory in which to install manual entry for itclsh:
|
68 |
|
|
MAN1_INSTALL_DIR = $(MAN_INSTALL_DIR)/man1
|
69 |
|
|
|
70 |
|
|
# Directory in which to install manual entries for [incr Tcl]'s
|
71 |
|
|
# C library procedures:
|
72 |
|
|
MAN3_INSTALL_DIR = $(MAN_INSTALL_DIR)/man3
|
73 |
|
|
|
74 |
|
|
# Directory in which to install manual entries for the built-in
|
75 |
|
|
# [incr Tcl] commands:
|
76 |
|
|
MANN_INSTALL_DIR = $(MAN_INSTALL_DIR)/mann
|
77 |
|
|
|
78 |
|
|
# Directory in which to install html version of manual entries:
|
79 |
|
|
HTML_INSTALL_DIR = $(INSTALL_ROOT)$(prefix)/doc
|
80 |
|
|
|
81 |
|
|
# Tcl libraries can be found here:
|
82 |
|
|
TCL_LIB_DIR = @TCL_LIB_DIR@
|
83 |
|
|
|
84 |
|
|
# Directory containing Tcl source code (for library used during test):
|
85 |
|
|
TCL_SRC_DIR = @TCL_SRC_DIR@
|
86 |
|
|
|
87 |
|
|
# Tk libraries can be found here:
|
88 |
|
|
TK_LIB_DIR = @TK_LIB_DIR@
|
89 |
|
|
|
90 |
|
|
# Directory containing Tk source code (for library used during test):
|
91 |
|
|
TK_SRC_DIR = @TK_SRC_DIR@
|
92 |
|
|
|
93 |
|
|
# Itcl libraries can be found here:
|
94 |
|
|
ITCL_LIB_DIR = @ITCL_LIB_DIR@
|
95 |
|
|
|
96 |
|
|
# Directory containing Itcl source code (for library used during test):
|
97 |
|
|
ITCL_SRC_DIR = @ITCL_SRC_DIR@
|
98 |
|
|
|
99 |
|
|
# Itk libraries can be found here:
|
100 |
|
|
ITK_LIB_DIR = @ITK_LIB_DIR@
|
101 |
|
|
|
102 |
|
|
# Directory containing Itk source code (for library used during test):
|
103 |
|
|
ITK_SRC_DIR = @ITK_SRC_DIR@
|
104 |
|
|
|
105 |
|
|
# [incr Tk] build directory containing the itkwish binary for 'make test'
|
106 |
|
|
ITK_BIN_DIR = ../../itk/unix
|
107 |
|
|
|
108 |
|
|
# Some versions of make, like SGI's, use the following variable to
|
109 |
|
|
# determine which shell to use for executing commands:
|
110 |
|
|
SHELL = /bin/sh
|
111 |
|
|
|
112 |
|
|
#----------------------------------------------------------------
|
113 |
|
|
# The information below is modified by the configure script when
|
114 |
|
|
# Makefile is generated from Makefile.in. You shouldn't normally
|
115 |
|
|
# modify any of this stuff by hand.
|
116 |
|
|
#----------------------------------------------------------------
|
117 |
|
|
|
118 |
|
|
INSTALL = @INSTALL@
|
119 |
|
|
INSTALL_PROGRAM = $(INSTALL)
|
120 |
|
|
INSTALL_DATA = $(INSTALL) -m 644
|
121 |
|
|
MKINSTALLDIRS = $(ITCL_SRC_DIR)/../config/mkinstalldirs
|
122 |
|
|
RANLIB = @RANLIB@
|
123 |
|
|
TOP_DIR = @IWIDGETS_SRC_DIR@
|
124 |
|
|
GENERIC_DIR = $(TOP_DIR)/generic
|
125 |
|
|
UNIX_DIR = $(TOP_DIR)/unix
|
126 |
|
|
|
127 |
|
|
#----------------------------------------------------------------
|
128 |
|
|
# The information below should be usable as is. The configure
|
129 |
|
|
# script won't modify it and you shouldn't need to modify it
|
130 |
|
|
# either.
|
131 |
|
|
#----------------------------------------------------------------
|
132 |
|
|
|
133 |
|
|
all: build
|
134 |
|
|
|
135 |
|
|
build:
|
136 |
|
|
@for i in iwidgets.tcl pkgIndex.tcl ; do \
|
137 |
|
|
echo "Building $$i" ; \
|
138 |
|
|
rm -f $$i ; \
|
139 |
|
|
cat $(UNIX_DIR)/$$i.in \
|
140 |
|
|
| sed -e "s#%ITCL_VERSION%#$(ITCL_VERSION)#g" \
|
141 |
|
|
| sed -e "s#%IWIDGETS_VERSION%#$(IWIDGETS_VERSION)#g" \
|
142 |
|
|
> $$i ; \
|
143 |
|
|
done;
|
144 |
|
|
|
145 |
|
|
test: $(ITK_BIN_DIR)/itkwish
|
146 |
|
|
LD_LIBRARY_PATH=$(TCL_LIB_DIR):$(TK_LIB_DIR):$(ITCL_LIB_DIR):$(ITK_LIB_DIR):$(LD_LIBRARY_PATH); export LD_LIBRARY_PATH ; \
|
147 |
|
|
TCL_LIBRARY=$(TCL_SRC_DIR)/library; export TCL_LIBRARY; \
|
148 |
|
|
ITCL_LIBRARY=$(ITCL_SRC_DIR)/library; export ITCL_LIBRARY; \
|
149 |
|
|
TK_LIBRARY=$(TK_SRC_DIR)/library; export TK_LIBRARY; \
|
150 |
|
|
ITK_LIBRARY=$(ITK_SRC_DIR)/library; export ITK_LIBRARY; \
|
151 |
|
|
( echo lappend auto_path $(TOP_DIR)/generic \; package provide Iwidgets $(VERSION) \; cd $(TOP_DIR)/tests\; source all\; exit ) | $(ITK_BIN_DIR)/itkwish
|
152 |
|
|
|
153 |
|
|
static:
|
154 |
|
|
|
155 |
|
|
standalone:
|
156 |
|
|
|
157 |
|
|
plusplus:
|
158 |
|
|
|
159 |
|
|
install: install-libraries install-demos install-man install-binaries
|
160 |
|
|
|
161 |
|
|
install-binaries:
|
162 |
|
|
|
163 |
|
|
install-libraries:
|
164 |
|
|
@$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR) $(LIB_INSTALL_DIR)
|
165 |
|
|
@rm -f $(LIB_INSTALL_DIR)/iwidgets
|
166 |
|
|
@$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR)/scripts
|
167 |
|
|
@for i in $(GENERIC_DIR)/*.itk $(GENERIC_DIR)/*.itcl $(GENERIC_DIR)/tclIndex $(GENERIC_DIR)/*.gif ; \
|
168 |
|
|
do \
|
169 |
|
|
echo "Installing $$i"; \
|
170 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/scripts; \
|
171 |
|
|
done;
|
172 |
|
|
@for i in iwidgets.tcl pkgIndex.tcl ; \
|
173 |
|
|
do \
|
174 |
|
|
echo "Installing $$i"; \
|
175 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR); \
|
176 |
|
|
done;
|
177 |
|
|
|
178 |
|
|
install-demos:
|
179 |
|
|
@$(MKINSTALLDIRS) $(SCRIPT_INSTALL_DIR)/demos/images $(SCRIPT_INSTALL_DIR)/demos/html
|
180 |
|
|
@cd $(TOP_DIR)/demos; for i in *; \
|
181 |
|
|
do \
|
182 |
|
|
if [ -f $$i ] ; then \
|
183 |
|
|
echo "Installing $$i"; \
|
184 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos; \
|
185 |
|
|
chmod 555 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
|
186 |
|
|
fi; \
|
187 |
|
|
done;
|
188 |
|
|
@cd $(TOP_DIR)/demos; for i in images/*; \
|
189 |
|
|
do \
|
190 |
|
|
if [ -f $$i ] ; then \
|
191 |
|
|
echo "Installing $$i"; \
|
192 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/images; \
|
193 |
|
|
chmod 444 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
|
194 |
|
|
fi; \
|
195 |
|
|
done;
|
196 |
|
|
@cd $(TOP_DIR)/demos; for i in html/*; \
|
197 |
|
|
do \
|
198 |
|
|
if [ -f $$i ] ; then \
|
199 |
|
|
echo "Installing $$i"; \
|
200 |
|
|
$(INSTALL_DATA) $$i $(SCRIPT_INSTALL_DIR)/demos/html; \
|
201 |
|
|
chmod 444 $(SCRIPT_INSTALL_DIR)/demos/$$i; \
|
202 |
|
|
fi; \
|
203 |
|
|
done;
|
204 |
|
|
|
205 |
|
|
install-man:
|
206 |
|
|
@$(MKINSTALLDIRS) $(MANN_INSTALL_DIR)
|
207 |
|
|
@cd $(TOP_DIR)/doc; for i in *.n; \
|
208 |
|
|
do \
|
209 |
|
|
echo "Installing doc/$$i"; \
|
210 |
|
|
rm -f $(MANN_INSTALL_DIR)/$$i; \
|
211 |
|
|
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
|
212 |
|
|
$$i > $(MANN_INSTALL_DIR)/$$i; \
|
213 |
|
|
chmod 444 $(MANN_INSTALL_DIR)/$$i; \
|
214 |
|
|
done;
|
215 |
|
|
|
216 |
|
|
install-html:
|
217 |
|
|
@$(MKINSTALLDIRS) $(HTML_INSTALL_DIR)
|
218 |
|
|
@cd $(TOP_DIR)/doc/html; for i in *.html; \
|
219 |
|
|
do \
|
220 |
|
|
echo "Installing $(HTML_INSTALL_DIR)/$$i"; \
|
221 |
|
|
$(INSTALL_DATA) $$i $(HTML_INSTALL_DIR); \
|
222 |
|
|
chmod 444 $(HTML_INSTALL_DIR)/$$i; \
|
223 |
|
|
done;
|
224 |
|
|
|
225 |
|
|
Makefile: $(UNIX_DIR)/Makefile.in
|
226 |
|
|
$(SHELL) config.status
|
227 |
|
|
|
228 |
|
|
clean:
|
229 |
|
|
rm -f core errs *~ \#* TAGS *.E a.out errors
|
230 |
|
|
rm -f iwidgets.tcl pkgIndex.tcl
|
231 |
|
|
|
232 |
|
|
distclean: clean
|
233 |
|
|
rm -f Makefile config.status config.cache config.log
|
234 |
|
|
|
235 |
|
|
depend:
|
236 |
|
|
makedepend -- $(CC_SWITCHES) -- $(SRCS)
|
237 |
|
|
|
238 |
|
|
configure: configure.in
|
239 |
|
|
autoconf
|
240 |
|
|
|
241 |
|
|
# DO NOT DELETE THIS LINE -- make depend depends on it.
|