| 1 |
# -*-mode: makefile; fill-column: 75; tab-width: 8; coding: iso-latin-1-unix -*- |
| 2 |
# |
| 3 |
# $Id: Makefile.in,v 1.2.2.3 2002/01/24 10:33:17 idiscovery Exp $ |
| 4 |
# |
| 5 |
# This file is a Makefile for Tix. If it has the name "Makefile.in" |
| 6 |
# then it is a template for a Makefile; to generate the actual Makefile, |
| 7 |
# run "./configure", which is a configuration script generated by the |
| 8 |
# "autoconf" program (constructs like "@foo@" will get replaced in the |
| 9 |
# actual Makefile. |
| 10 |
# |
| 11 |
|
| 12 |
#---------------------------------------------------------------- |
| 13 |
# Things you can change to personalize the Makefile for your own |
| 14 |
# site (you can make these changes in either Makefile.in or |
| 15 |
# Makefile, but changes to Makefile will get lost if you re-run |
| 16 |
# the configuration script). |
| 17 |
#---------------------------------------------------------------- |
| 18 |
|
| 19 |
# Default top-level directories in which to install architecture- |
| 20 |
# specific files (exec_prefix) and machine-independent files such |
| 21 |
# as scripts (prefix). The values specified here may be overridden |
| 22 |
# at configure-time with the --exec-prefix and --prefix options |
| 23 |
# to the "configure" script. |
| 24 |
|
| 25 |
prefix = @prefix@ |
| 26 |
exec_prefix = @exec_prefix@ |
| 27 |
|
| 28 |
# Use datadir from TCL_PACKAGE_PATH in tclConfig.sh |
| 29 |
datadir = @TCL_PACKAGE_PATH@ |
| 30 |
|
| 31 |
@SET_MAKE@ |
| 32 |
|
| 33 |
TIX_VERSION = @TIX_VERSION@ |
| 34 |
|
| 35 |
# Directory in which to install the library of Tix scripts and demos |
| 36 |
# (note: you can set the TIX_LIBRARY environment variable at run-time to |
| 37 |
# override the compiled-in location): |
| 38 |
TIX_LIBRARY = $(datadir)/tix$(TIX_VERSION) |
| 39 |
|
| 40 |
# Directory in which to install the archive libtix.a: |
| 41 |
LIB_DIR = $(exec_prefix)/lib |
| 42 |
|
| 43 |
# Directory in which to install the program wish: |
| 44 |
BIN_DIR = $(exec_prefix)/bin |
| 45 |
|
| 46 |
# Directory in which to install the include file tix.h: |
| 47 |
INCLUDE_DIR = $(prefix)/include |
| 48 |
|
| 49 |
# Top-level directory for manual entries: |
| 50 |
MAN_DIR = $(prefix)/man |
| 51 |
|
| 52 |
# Directory in which to install manual entry for wish: |
| 53 |
MAN1_DIR = $(MAN_DIR)/man1 |
| 54 |
|
| 55 |
# Directory in which to install manual entries for Tix's C library |
| 56 |
# procedures: |
| 57 |
MAN3_DIR = $(MAN_DIR)/man3 |
| 58 |
|
| 59 |
# Directory in which to install manual entries for the built-in |
| 60 |
# Tcl commands implemented by Tix: |
| 61 |
MANN_DIR = $(MAN_DIR)/mann |
| 62 |
|
| 63 |
# Some versions of make, like SGI's, use the following variable to |
| 64 |
# determine which shell to use for executing commands: |
| 65 |
SHELL = @SHELL@ |
| 66 |
|
| 67 |
#---------------------------------------------------------------- |
| 68 |
# The information below is modified by the configure script when |
| 69 |
# Makefile is generated from Makefile.in. You shouldn't normally |
| 70 |
# modify any of this stuff by hand. |
| 71 |
#---------------------------------------------------------------- |
| 72 |
INSTALL = @SRC_DIR@/install.sh -c |
| 73 |
INSTALL_PROGRAM = @INSTALL_PROGRAM@ |
| 74 |
INSTALL_DATA = @INSTALL_DATA@ |
| 75 |
SRC_DIR = @SRC_DIR@ |
| 76 |
INC_DIR = @SRC_DIR@/generic |
| 77 |
UNIX_DIR = @SRC_DIR@/unix |
| 78 |
LIBRARY_DIR = @SRC_DIR@/library |
| 79 |
DEMOS_DIR = @SRC_DIR@/demos |
| 80 |
DEMO_PROGS = tixwidgets.tcl |
| 81 |
TOOLS_DIR = @SRC_DIR@/tools |
| 82 |
MANUAL_DIR = @SRC_DIR@/man |
| 83 |
# CYGNUS LOCAL: Set VPATH to unix subdirectory, not top level. |
| 84 |
VPATH = @SRC_DIR@/unix |
| 85 |
CFLAGS = @CFLAGS@ |
| 86 |
|
| 87 |
BINDIRS = tk8.0 tk8.1 tk8.2 tk8.3 itcl3.0 itcl3.1 itcl3.2 |
| 88 |
|
| 89 |
default: |
| 90 |
error Please read ../docs/UnixInst.txt |
| 91 |
|
| 92 |
all test: |
| 93 |
@for i in $(BINDIRS); \ |
| 94 |
do \ |
| 95 |
if test -r $$i/Makefile; then \ |
| 96 |
echo "Entering directory $$i"; \ |
| 97 |
cd $$i; \ |
| 98 |
$(MAKE) $@; \ |
| 99 |
cd $(UNIX_DIR); \ |
| 100 |
fi; \ |
| 101 |
done; |
| 102 |
|
| 103 |
#---------------------------------------------------------------------- |
| 104 |
# |
| 105 |
# Installation |
| 106 |
# |
| 107 |
#---------------------------------------------------------------------- |
| 108 |
install:: install-basic install-binaries |
| 109 |
@echo done |
| 110 |
|
| 111 |
install-binaries:: |
| 112 |
@for i in $(BINDIRS); \ |
| 113 |
do \ |
| 114 |
if test -r $$i/Makefile; then \ |
| 115 |
echo "Entering directory $$i"; \ |
| 116 |
cd $$i; \ |
| 117 |
$(MAKE) prefix=$(prefix) \ |
| 118 |
exec_prefix=$(exec_prefix) _install_; \ |
| 119 |
cd ..; \ |
| 120 |
fi; \ |
| 121 |
done; |
| 122 |
|
| 123 |
# |
| 124 |
# Basic installtion |
| 125 |
# |
| 126 |
install-basic:: install-libraries install-headers install-demos \ |
| 127 |
install-man install-tools |
| 128 |
|
| 129 |
install-tools: |
| 130 |
@for i in $(BIN_DIR) ; \ |
| 131 |
do \ |
| 132 |
if [ ! -d $$i ] ; then \ |
| 133 |
echo "Making directory $$i"; \ |
| 134 |
mkdir $$i; \ |
| 135 |
chmod 755 $$i; \ |
| 136 |
else true; \ |
| 137 |
fi; \ |
| 138 |
done; |
| 139 |
@echo "installing the tixindex program for building tclIndex for Tix scripts" |
| 140 |
@cd $(TOOLS_DIR); $(INSTALL_PROGRAM) tixindex $(BIN_DIR)/tixindex |
| 141 |
|
| 142 |
install-headers: |
| 143 |
@for i in $(INCLUDE_DIR); \ |
| 144 |
do \ |
| 145 |
if [ ! -d $$i ] ; then \ |
| 146 |
echo "Making directory $$i"; \ |
| 147 |
mkdir $$i; \ |
| 148 |
chmod 755 $$i; \ |
| 149 |
else true; \ |
| 150 |
fi; \ |
| 151 |
done; |
| 152 |
@for i in $(INC_DIR)/tix.h; \ |
| 153 |
do \ |
| 154 |
echo "Installing $$i"; \ |
| 155 |
$(INSTALL_DATA) $$i $(INCLUDE_DIR); \ |
| 156 |
done; |
| 157 |
|
| 158 |
install-libraries: |
| 159 |
-chmod 755 $(INSTALL_PROGRAM) |
| 160 |
@for i in $(TIX_LIBRARY) $(TIX_LIBRARY)/bitmaps $(TIX_LIBRARY)/pref; \ |
| 161 |
do \ |
| 162 |
if [ ! -d $$i ] ; then \ |
| 163 |
echo "Making directory $$i"; \ |
| 164 |
mkdir $$i; \ |
| 165 |
chmod 755 $$i; \ |
| 166 |
else true; \ |
| 167 |
fi; \ |
| 168 |
done; |
| 169 |
@for i in $(LIBRARY_DIR)/*.tcl $(LIBRARY_DIR)/tclIndex; \ |
| 170 |
do \ |
| 171 |
echo "Installing $$i"; \ |
| 172 |
$(INSTALL_DATA) $$i $(TIX_LIBRARY); \ |
| 173 |
done; |
| 174 |
@for i in $(LIBRARY_DIR)/bitmaps/* .gif $(LIBRARY_DIR)/bitmaps/*.x*m; \ |
| 175 |
do \ |
| 176 |
if [ -f $$i ] ; then \ |
| 177 |
echo "Installing $$i"; \ |
| 178 |
$(INSTALL_DATA) $$i $(TIX_LIBRARY)/bitmaps; \ |
| 179 |
fi; \ |
| 180 |
done; |
| 181 |
@for i in $(LIBRARY_DIR)/pref/*.* $(LIBRARY_DIR)/pref/tixmkpref; \ |
| 182 |
do \ |
| 183 |
if [ -f $$i ] ; then \ |
| 184 |
echo "Installing $$i"; \ |
| 185 |
$(INSTALL_DATA) $$i $(TIX_LIBRARY)/pref; \ |
| 186 |
fi; \ |
| 187 |
done; |
| 188 |
@echo "Installing pkgIndex.tcl" |
| 189 |
@cat */pkgIndex.tcl > pkgIndex.tcl |
| 190 |
@$(INSTALL_DATA) pkgIndex.tcl $(TIX_LIBRARY) |
| 191 |
|
| 192 |
install-demos: |
| 193 |
@for i in $(prefix)/lib $(TIX_LIBRARY) $(TIX_LIBRARY)/demos \ |
| 194 |
$(TIX_LIBRARY)/demos/bitmaps $(TIX_LIBRARY)/demos/samples ; \ |
| 195 |
do \ |
| 196 |
if [ ! -d $$i ] ; then \ |
| 197 |
echo "Making directory $$i"; \ |
| 198 |
mkdir $$i; \ |
| 199 |
chmod 755 $$i; \ |
| 200 |
else true; \ |
| 201 |
fi; \ |
| 202 |
done; |
| 203 |
@cd $(DEMOS_DIR); for i in *; \ |
| 204 |
do \ |
| 205 |
if [ -f $$i ] ; then \ |
| 206 |
echo "Installing demos/$$i"; \ |
| 207 |
sed -e '1 s|/usr/local/bin/tixwish|$(BIN_DIR)/tixwish|' \ |
| 208 |
$$i > $(TIX_LIBRARY)/demos/$$i; \ |
| 209 |
fi; \ |
| 210 |
done; |
| 211 |
@for i in $(DEMO_PROGS); \ |
| 212 |
do \ |
| 213 |
chmod 755 $(TIX_LIBRARY)/demos/$$i; \ |
| 214 |
done; |
| 215 |
@for i in $(DEMOS_DIR)/bitmaps/*; \ |
| 216 |
do \ |
| 217 |
if [ -f $$i ] ; then \ |
| 218 |
echo "Installing $$i"; \ |
| 219 |
$(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/bitmaps; \ |
| 220 |
fi; \ |
| 221 |
done; |
| 222 |
@for i in $(DEMOS_DIR)/samples/*; \ |
| 223 |
do \ |
| 224 |
if [ -f $$i ] ; then \ |
| 225 |
echo "Installing $$i"; \ |
| 226 |
$(INSTALL_DATA) $$i $(TIX_LIBRARY)/demos/samples; \ |
| 227 |
fi; \ |
| 228 |
done; |
| 229 |
|
| 230 |
install-man: |
| 231 |
@for i in $(MAN_DIR) $(MAN1_DIR) $(MAN3_DIR) $(MANN_DIR) ; \ |
| 232 |
do \ |
| 233 |
if [ ! -d $$i ] ; then \ |
| 234 |
echo "Making directory $$i"; \ |
| 235 |
mkdir $$i; \ |
| 236 |
chmod 755 $$i; \ |
| 237 |
else true; \ |
| 238 |
fi; \ |
| 239 |
done; |
| 240 |
@cd $(MANUAL_DIR); for i in *.n *.1; \ |
| 241 |
do \ |
| 242 |
echo "Installing doc/$$i"; \ |
| 243 |
rm -f $(MANN_DIR)/$$i; \ |
| 244 |
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \ |
| 245 |
$$i > $(MANN_DIR)/$$i; \ |
| 246 |
chmod 444 $(MANN_DIR)/$$i; \ |
| 247 |
done; |
| 248 |
|
| 249 |
# CYGNUS LOCAL: install-minimal target. |
| 250 |
install-minimal: install-libraries |
| 251 |
|
| 252 |
tests:: |
| 253 |
@for i in $(BINDIRS); \ |
| 254 |
do \ |
| 255 |
if test -r $$i/Makefile; then \ |
| 256 |
echo "Entering directory $$i"; \ |
| 257 |
cd $$i; \ |
| 258 |
$(MAKE) tests; \ |
| 259 |
cd $(UNIX_DIR); \ |
| 260 |
fi; \ |
| 261 |
done; |
| 262 |
|
| 263 |
sa-tests:: |
| 264 |
@for i in $(BINDIRS); \ |
| 265 |
do \ |
| 266 |
if test -r $$i/Makefile; then \ |
| 267 |
echo "Entering directory $$i"; \ |
| 268 |
cd $$i; \ |
| 269 |
$(MAKE) sa-tests; \ |
| 270 |
cd $(UNIX_DIR); \ |
| 271 |
fi; \ |
| 272 |
done; |
| 273 |
|
| 274 |
compile:: |
| 275 |
@for i in $(BINDIRS); \ |
| 276 |
do \ |
| 277 |
if test -r $$i/Makefile; then \ |
| 278 |
echo "Entering directory $$i"; \ |
| 279 |
cd $$i; \ |
| 280 |
$(MAKE) CFLAGS=$(CFLAGS) ; \ |
| 281 |
cd $(UNIX_DIR); \ |
| 282 |
fi; \ |
| 283 |
done; |
| 284 |
|
| 285 |
clean:: |
| 286 |
@for i in $(BINDIRS); \ |
| 287 |
do \ |
| 288 |
if test -r $$i/Makefile; then \ |
| 289 |
echo "Entering directory $$i"; \ |
| 290 |
cd $$i; \ |
| 291 |
$(MAKE) clean; \ |
| 292 |
cd $(UNIX_DIR); \ |
| 293 |
fi; \ |
| 294 |
done; |
| 295 |
- rm -f tixSamLib.c tixBitmaps.c |
| 296 |
|
| 297 |
distclean:: |
| 298 |
@for i in $(BINDIRS); \ |
| 299 |
do \ |
| 300 |
if test -r $$i/Makefile; then \ |
| 301 |
echo "Entering directory $$i"; \ |
| 302 |
cd $$i; \ |
| 303 |
$(MAKE) distclean; \ |
| 304 |
cd $(UNIX_DIR); \ |
| 305 |
fi; \ |
| 306 |
done; |
| 307 |
- rm -f config.status Makefile.bak config.status \ |
| 308 |
config.cache config.log tixConfig.tcl *~ Makefile |
| 309 |
|
| 310 |
# CYGNUS LOCAL: Makefile depends upon config.status |
| 311 |
Makefile:Makefile.in config.status |
| 312 |
./config.status |
| 313 |
|
| 314 |
autoconf:: |
| 315 |
autoconf |
| 316 |
|
| 317 |
config:: |
| 318 |
-cd tk8.0; ./configure |
| 319 |
-cd tk8.1; ./configure |
| 320 |
-cd tk8.2; ./configure |
| 321 |
-cd tk8.3; ./configure |
| 322 |
-cd itcl2.0; ./configure |
| 323 |
-cd itcl2.1; ./configure |
| 324 |
-cd itcl2.2; ./configure |
| 325 |
|
| 326 |
config-shared:: |
| 327 |
-cd tk8.0; ./configure |
| 328 |
-cd tk8.1; ./configure --enable-shared |
| 329 |
-cd tk8.2; ./configure --enable-shared |
| 330 |
-cd tk8.3; ./configure --enable-shared |
| 331 |
-cd itcl2.0; ./configure |
| 332 |
-cd itcl2.1; ./configure --enable-shared |
| 333 |
-cd itcl2.2; ./configure --enable-shared |
| 334 |
|
| 335 |
config-shared-sam:: |
| 336 |
-cd tk8.0; ./configure --enable-sam |
| 337 |
-cd tk8.1; ./configure --enable-shared --enable-sam |
| 338 |
-cd tk8.2; ./configure --enable-shared --enable-sam |
| 339 |
-cd tk8.3; ./configure --enable-shared |
| 340 |
-cd itcl2.0; ./configure |
| 341 |
-cd itcl2.1; ./configure --enable-shared |
| 342 |
-cd itcl2.2; ./configure --enable-shared |
| 343 |
|