1# Makefile.in -- 2# 3# This file is a Makefile for the ctable_server TEA Extension. If it has the 4# name "Makefile.in" then it is a template for a Makefile; to generate 5# the actual Makefile, run "./configure", which is a configuration script 6# generated by the "autoconf" program (constructs like "@foo@" will get 7# replaced in the actual Makefile. 8# 9# Copyright (c) 1999 Scriptics Corporation. 10# Copyright (c) 2002-2003 ActiveState Corporation. 11# Copyright (c) 2005 Karl Lehenbauer 12# 13# See the file "license.terms" for information on usage and redistribution 14# of this file, and for a DISCLAIMER OF ALL WARRANTIES. 15# 16# RCS: @(#) $Id: Makefile.in,v 1.7 2005-11-17 03:32:13 karl Exp $ 17 18#======================================================================== 19# Add additional lines to handle any additional AC_SUBST cases that 20# have been added in a customized configure script. 21#======================================================================== 22 23#SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@ 24 25#======================================================================== 26# Nothing of the variables below this line should need to be changed. 27# Please check the TARGETS section below to make sure the make targets 28# are correct. 29#======================================================================== 30 31#======================================================================== 32# The names of the source files is defined in the configure script. 33# The object files are used for linking into the final library. 34# This will be used when a dist target is added to the Makefile. 35# It is not important to specify the directory, as long as it is the 36# $(srcdir) or in the generic, win or unix subdirectory. 37#======================================================================== 38 39PKG_SOURCES = @PKG_SOURCES@ 40PKG_OBJECTS = @PKG_OBJECTS@ 41 42PKG_STUB_SOURCES = @PKG_STUB_SOURCES@ 43PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@ 44 45#======================================================================== 46# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with 47# this package that need to be installed, if any. 48#======================================================================== 49 50PKG_TCL_SOURCES = @PKG_TCL_SOURCES@ 51 52#======================================================================== 53# This is a list of public header files to be installed, if any. 54#======================================================================== 55 56PKG_HEADERS = @PKG_HEADERS@ 57 58#======================================================================== 59# "PKG_LIB_FILE" refers to the library (dynamic or static as per 60# configuration options) composed of the named objects. 61#======================================================================== 62 63PKG_LIB_FILE = @PKG_LIB_FILE@ 64PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@ 65 66bin_BINARIES = 67#lib_BINARIES = $(PKG_LIB_FILE) 68#BINARIES = $(lib_BINARIES) 69lib_BINARIES = 70BINARIES = 71 72SHELL = @SHELL@ 73 74srcdir = @srcdir@ 75prefix = @prefix@ 76exec_prefix = @exec_prefix@ 77 78bindir = @bindir@ 79libdir = @libdir@ 80datadir = @datadir@ 81datarootdir = @datarootdir@ 82mandir = @mandir@ 83includedir = @includedir@ 84 85DESTDIR = 86 87PKG_DIR = $(PACKAGE_NAME) 88#PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION) 89pkgdatadir = $(datadir)/$(PKG_DIR) 90pkglibdir = $(libdir)/$(PKG_DIR) 91pkgincludedir = $(includedir)/$(PKG_DIR) 92 93top_builddir = . 94 95INSTALL = @INSTALL@ 96INSTALL_PROGRAM = @INSTALL_PROGRAM@ 97INSTALL_DATA = @INSTALL_DATA@ 98INSTALL_SCRIPT = @INSTALL_SCRIPT@ 99 100PACKAGE_NAME = @PACKAGE_NAME@ 101PACKAGE_VERSION = @PACKAGE_VERSION@ 102CC = @CC@ 103#CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 104CFLAGS_WARNING = @CFLAGS_WARNING@ 105CLEANFILES = @CLEANFILES@ 106EXEEXT = @EXEEXT@ 107#LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ 108MAKE_LIB = @MAKE_LIB@ 109MAKE_SHARED_LIB = @MAKE_SHARED_LIB@ 110MAKE_STATIC_LIB = @MAKE_STATIC_LIB@ 111MAKE_STUB_LIB = @MAKE_STUB_LIB@ 112OBJEXT = @OBJEXT@ 113RANLIB = @RANLIB@ 114RANLIB_STUB = @RANLIB_STUB@ 115SHLIB_CFLAGS = @SHLIB_CFLAGS@ 116SHLIB_LD = @SHLIB_LD@ 117#SHLIB_LD_FLAGS = @SHLIB_LD_FLAGS@ 118SHLIB_LD_LIBS = @SHLIB_LD_LIBS@ 119STLIB_LD = @STLIB_LD@ 120TCL_DEFS = @TCL_DEFS@ 121TCL_BIN_DIR = @TCL_BIN_DIR@ 122TCL_SRC_DIR = @TCL_SRC_DIR@ 123# This is necessary for packages that use private Tcl headers 124#TCL_TOP_DIR_NATIVE = @TCL_TOP_DIR_NATIVE@ 125# Not used, but retained for reference of what libs Tcl required 126TCL_LIBS = @TCL_LIBS@ 127 128 129#======================================================================== 130# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our 131# package without installing. The other environment variables allow us 132# to test against an uninstalled Tcl. Add special env vars that you 133# require for testing here (like TCLX_LIBRARY). 134#======================================================================== 135 136EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR) 137TCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \ 138 @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \ 139 PATH="$(EXTRA_PATH):$(PATH)" \ 140 TCLLIBPATH="$(top_builddir)" 141TCLSH_PROG = @TCLSH_PROG@ 142TCLSH = $(TCLSH_ENV) $(TCLSH_PROG) 143SHARED_BUILD = @SHARED_BUILD@ 144 145INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ 146 147PKG_CFLAGS = @PKG_CFLAGS@ 148 149# TCL_DEFS is not strictly need here, but if you remove it, then you 150# must make sure that configure.in checks for the necessary components 151# that your library may use. TCL_DEFS can actually be a problem if 152# you do not compile with a similar machine setup as the Tcl core was 153# compiled with. 154#DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS) 155DEFS = @DEFS@ $(PKG_CFLAGS) 156 157CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl autom4te.cache 158 159CPPFLAGS = @CPPFLAGS@ 160LIBS = @PKG_LIBS@ @LIBS@ 161AR = ar 162CFLAGS = @CFLAGS@ 163COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 164 165#======================================================================== 166# Start of user-definable TARGETS section 167#======================================================================== 168 169#======================================================================== 170# TEA TARGETS. Please note that the "libraries:" target refers to platform 171# independent files, and the "binaries:" target inclues executable programs and 172# platform-dependent libraries. Modify these targets so that they install 173# the various pieces of your package. The make and install rules 174# for the BINARIES that you specified above have already been done. 175#======================================================================== 176 177all: binaries libraries doc 178 179#======================================================================== 180# The binaries target builds executable programs, Windows .dll's, unix 181# shared/static libraries, and any other platform-dependent files. 182# The list of targets to build for "binaries:" is specified at the top 183# of the Makefile, in the "BINARIES" variable. 184#======================================================================== 185 186binaries: $(BINARIES) 187 188libraries: pkgIndex.tcl 189 190$(PKG_TCL_SOURCES): 191 mkdir -p $$(dirname $@); \ 192 cp -f $(srcdir)/$@ $@ 193 194pkgIndex.tcl: $(PKG_TCL_SOURCES) 195 echo "pkg_mkIndex . $(PKG_TCL_SOURCES)" | $(TCLSH_PROG) 196 197doc: 198 199#@echo "If you have documentation to create, place the commands to" 200#@echo "build the docs in the 'doc:' target. For example:" 201#@echo " xml2nroff sample.xml > sample.n" 202#@echo " xml2html sample.xml > sample.html" 203 204install: all install-binaries install-libraries install-doc 205 206install-binaries: binaries install-lib-binaries install-bin-binaries 207 208#======================================================================== 209# This rule installs platform-independent files, such as header files. 210# The list=...; for p in $$list handles the empty list case x-platform. 211#======================================================================== 212 213install-libraries: libraries 214 @mkdir -p $(DESTDIR)$(includedir) 215 @echo "Installing header files in $(DESTDIR)$(includedir)" 216 @list='$(PKG_HEADERS)'; for i in $$list; do \ 217 echo "Installing $(srcdir)/$$i" ; \ 218 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \ 219 done; 220 221#======================================================================== 222# Install documentation. Unix manpages should go in the $(mandir) 223# directory. 224#======================================================================== 225 226install-doc: doc 227# @mkdir -p $(DESTDIR)$(mandir)/mann 228# @echo "Installing documentation in $(DESTDIR)$(mandir)" 229# @list='$(srcdir)/docs/*.n'; for i in $$list; do \ 230# echo "Installing $$i"; \ 231# rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \ 232# $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ 233# done 234 235test: binaries libraries 236 $(TCLSH_PROG) server/test.tcl 237 $(TCLSH_PROG) client/test.tcl 238 239 240shell: binaries libraries 241 @$(TCLSH) $(SCRIPT) 242 243gdb: 244 $(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT) 245 246depend: 247 248#======================================================================== 249# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable 250# mentioned above. That will ensure that this target is built when you 251# run "make binaries". 252# 253# The $(PKG_OBJECTS) objects are created and linked into the final 254# library. In most cases these object files will correspond to the 255# source files above. 256#======================================================================== 257 258# $(PKG_LIB_FILE): $(PKG_OBJECTS) 259# -rm -f $(PKG_LIB_FILE) 260# ${MAKE_LIB} 261# $(RANLIB) $(PKG_LIB_FILE) 262 263# $(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS) 264# -rm -f $(PKG_STUB_LIB_FILE) 265# ${MAKE_STUB_LIB} 266# $(RANLIB_STUB) $(PKG_STUB_LIB_FILE) 267 268#======================================================================== 269# We need to enumerate the list of .c to .o lines here. 270# 271# In the following lines, $(srcdir) refers to the toplevel directory 272# containing your extension. If your sources are in a subdirectory, 273# you will have to modify the paths to reflect this: 274# 275# sample.$(OBJEXT): $(srcdir)/generic/sample.c 276# $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@ 277# 278# Setting the VPATH variable to a list of paths will cause the makefile 279# to look into these paths when resolving .c to .obj dependencies. 280# As necessary, add $(srcdir):$(srcdir)/compat:.... 281#======================================================================== 282 283# VPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win 284 285# .c.@OBJEXT@: 286# $(COMPILE) -c `@CYGPATH@ $<` -o $@ 287 288#======================================================================== 289# Distribution creation 290# You may need to tweak this target to make it work correctly. 291#======================================================================== 292 293#COMPRESS = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar 294# COMPRESS = tar czvf $(PKG_DIR).tar.gz $(PKG_DIR) 295# DIST_ROOT = /tmp/dist 296# DIST_DIR = $(DIST_ROOT)/$(PKG_DIR) 297 298# dist-clean: 299# rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.* 300 301# dist: dist-clean 302# mkdir -p $(DIST_DIR) 303# mkdir -p $(DIST_DIR)/generic 304# mkdir -p $(DIST_DIR)/win 305# cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \ 306# $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \ 307# $(DIST_DIR)/ 308# chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4 309# chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in 310 311# cp -p $(srcdir)/generic/*.[ch] $(DIST_DIR)/generic 312# cp -p $(srcdir)/win/*.[ch] $(DIST_DIR)/win 313 314# mkdir $(DIST_DIR)/tclconfig 315# cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \ 316# $(DIST_DIR)/tclconfig/ 317# chmod 664 $(DIST_DIR)/tclconfig/tcl.m4 318# chmod +x $(DIST_DIR)/tclconfig/install-sh 319 320# list='demos doc generic library mac tests unix win'; \ 321# for p in $$list; do \ 322# if test -d $(srcdir)/$$p ; then \ 323# mkdir $(DIST_DIR)/$$p; \ 324# cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \ 325# fi; \ 326# done 327 328# (cd $(DIST_ROOT); $(COMPRESS);) 329 330#======================================================================== 331# End of user-definable section 332#======================================================================== 333 334#======================================================================== 335# Don't modify the file to clean here. Instead, set the "CLEANFILES" 336# variable in configure.in 337#======================================================================== 338 339clean: 340 -test -z "$(BINARIES)" || rm -f $(BINARIES) 341 -rm -f *.$(OBJEXT) core *.core 342 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 343 344distclean: clean 345 -rm -f *.tab.c 346 -rm -rf $(CONFIG_CLEAN_FILES) 347 -rm -rf config.cache config.log config.status autom4te*.cache 348 349#======================================================================== 350# Install binary object libraries. On Windows this includes both .dll and 351# .lib files. Because the .lib files are not explicitly listed anywhere, 352# we need to deduce their existence from the .dll file of the same name. 353# Library files go into the lib directory. 354# In addition, this will install pkgIndex.tcl 355# file in the install location 356# 357# You should not have to modify this target. 358#======================================================================== 359 360install-lib-binaries: 361 @mkdir -p $(DESTDIR)$(pkglibdir) 362 @list='$(lib_BINARIES)'; for p in $$list; do \ 363 if test -f $$p; then \ 364 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ 365 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \ 366 stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \ 367 if test "x$$stub" = "xstub"; then \ 368 echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \ 369 $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \ 370 else \ 371 echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \ 372 $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \ 373 fi; \ 374 ext=`echo $$p|sed -e "s/.*\.//"`; \ 375 if test "x$$ext" = "xdll"; then \ 376 lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \ 377 if test -f $$lib; then \ 378 echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \ 379 $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \ 380 fi; \ 381 fi; \ 382 fi; \ 383 done 384 @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ 385 if test -f $(srcdir)/$$p; then \ 386 mkdir -p $(DESTDIR)$(pkglibdir)/`dirname $$p`; \ 387 echo " Install $$p $(DESTDIR)$(pkglibdir)/$$p"; \ 388 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$p; \ 389 elif test -f $$p; then \ 390 mkdir -p $(DESTDIR)$(pkglibdir)/`dirname $$p`; \ 391 echo " Install $$p $(DESTDIR)$(pkglibdir)/$$p"; \ 392 $(INSTALL_DATA) $$p $(DESTDIR)$(pkglibdir)/$$p; \ 393 fi; \ 394 done 395 @if test true -o "x$(SHARED_BUILD)" = "x1"; then \ 396 echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \ 397 $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \ 398 fi 399 400#======================================================================== 401# Install binary executables (e.g. .exe files and dependent .dll files) 402# This is for files that must go in the bin directory (located next to 403# wish and tclsh), like dependent .dll files on Windows. 404# 405# You should not have to modify this target, except to define bin_BINARIES 406# above if necessary. 407#======================================================================== 408 409install-bin-binaries: 410 @mkdir -p $(DESTDIR)$(bindir) 411 @list='$(bin_BINARIES)'; for p in $$list; do \ 412 if test -f $$p; then \ 413 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \ 414 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \ 415 fi; \ 416 done 417 418.SUFFIXES: .c .$(OBJEXT) 419 420Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 421 cd $(top_builddir) \ 422 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 423 424uninstall-binaries: 425 list='$(lib_BINARIES)'; for p in $$list; do \ 426 rm -f $(DESTDIR)$(pkglibdir)/$$p; \ 427 done 428 list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ 429 p=`basename $$p`; \ 430 rm -f $(DESTDIR)$(pkglibdir)/$$p; \ 431 done 432 list='$(bin_BINARIES)'; for p in $$list; do \ 433 rm -f $(DESTDIR)$(bindir)/$$p; \ 434 done 435 436.PHONY: all binaries clean depend distclean doc install libraries test 437 438# Tell versions [3.59,3.63) of GNU make to not export all variables. 439# Otherwise a system limit (for SysV at least) may be exceeded. 440.NOEXPORT: 441