1076b9443SCy Schubert# Makefile.in -- 2076b9443SCy Schubert# 3076b9443SCy Schubert# This file is a Makefile for Sample TEA Extension. If it has the name 4076b9443SCy Schubert# "Makefile.in" then it is a template for a Makefile; to generate the 5076b9443SCy Schubert# actual Makefile, run "./configure", which is a configuration script 6076b9443SCy Schubert# generated by the "autoconf" program (constructs like "@foo@" will get 7076b9443SCy Schubert# replaced in the actual Makefile. 8076b9443SCy Schubert# 9076b9443SCy Schubert# Copyright (c) 1999 Scriptics Corporation. 10076b9443SCy Schubert# Copyright (c) 2002-2005 ActiveState Corporation. 11076b9443SCy Schubert# 12076b9443SCy Schubert# See the file "license.terms" for information on usage and redistribution 13076b9443SCy Schubert# of this file, and for a DISCLAIMER OF ALL WARRANTIES. 14076b9443SCy Schubert 15076b9443SCy Schubert#======================================================================== 16076b9443SCy Schubert# Add additional lines to handle any additional AC_SUBST cases that 17076b9443SCy Schubert# have been added in a customized configure script. 18076b9443SCy Schubert#======================================================================== 19076b9443SCy Schubert 20076b9443SCy Schubert#SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@ 21076b9443SCy Schubert 22076b9443SCy Schubert#======================================================================== 23076b9443SCy Schubert# Nothing of the variables below this line should need to be changed. 24076b9443SCy Schubert# Please check the TARGETS section below to make sure the make targets 25076b9443SCy Schubert# are correct. 26076b9443SCy Schubert#======================================================================== 27076b9443SCy Schubert 28076b9443SCy Schubert#======================================================================== 29076b9443SCy Schubert# The names of the source files is defined in the configure script. 30076b9443SCy Schubert# The object files are used for linking into the final library. 31076b9443SCy Schubert# This will be used when a dist target is added to the Makefile. 32076b9443SCy Schubert# It is not important to specify the directory, as long as it is the 33076b9443SCy Schubert# $(srcdir) or in the generic, win or unix subdirectory. 34076b9443SCy Schubert#======================================================================== 35076b9443SCy Schubert 36076b9443SCy SchubertPKG_SOURCES = @PKG_SOURCES@ 37076b9443SCy SchubertPKG_OBJECTS = @PKG_OBJECTS@ 38076b9443SCy Schubert 39076b9443SCy SchubertPKG_STUB_SOURCES = @PKG_STUB_SOURCES@ 40076b9443SCy SchubertPKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@ 41076b9443SCy Schubert 42076b9443SCy Schubert#======================================================================== 43076b9443SCy Schubert# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with 44076b9443SCy Schubert# this package that need to be installed, if any. 45076b9443SCy Schubert#======================================================================== 46076b9443SCy Schubert 47076b9443SCy SchubertPKG_TCL_SOURCES = @PKG_TCL_SOURCES@ 48076b9443SCy Schubert 49076b9443SCy Schubert#======================================================================== 50076b9443SCy Schubert# This is a list of public header files to be installed, if any. 51076b9443SCy Schubert#======================================================================== 52076b9443SCy Schubert 53076b9443SCy SchubertPKG_HEADERS = @PKG_HEADERS@ 54076b9443SCy Schubert 55076b9443SCy Schubert#======================================================================== 56076b9443SCy Schubert# "PKG_LIB_FILE" refers to the library (dynamic or static as per 57076b9443SCy Schubert# configuration options) composed of the named objects. 58076b9443SCy Schubert#======================================================================== 59076b9443SCy Schubert 60076b9443SCy SchubertPKG_LIB_FILE = @PKG_LIB_FILE@ 61*00787218SCy SchubertPKG_LIB_FILE8 = @PKG_LIB_FILE8@ 62*00787218SCy SchubertPKG_LIB_FILE9 = @PKG_LIB_FILE9@ 63076b9443SCy SchubertPKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@ 64076b9443SCy Schubert 65076b9443SCy Schubertlib_BINARIES = $(PKG_LIB_FILE) 66076b9443SCy SchubertBINARIES = $(lib_BINARIES) 67076b9443SCy Schubert 68076b9443SCy SchubertSHELL = @SHELL@ 69076b9443SCy Schubert 70076b9443SCy Schubertsrcdir = @srcdir@ 71076b9443SCy Schubertprefix = @prefix@ 72076b9443SCy Schubertexec_prefix = @exec_prefix@ 73076b9443SCy Schubert 74076b9443SCy Schubertbindir = @bindir@ 75076b9443SCy Schubertlibdir = @libdir@ 76*00787218SCy Schubertincludedir = @includedir@ 77076b9443SCy Schubertdatarootdir = @datarootdir@ 78*00787218SCy Schubertrunstatedir = @runstatedir@ 79076b9443SCy Schubertdatadir = @datadir@ 80076b9443SCy Schubertmandir = @mandir@ 81076b9443SCy Schubert 82076b9443SCy SchubertDESTDIR = 83076b9443SCy Schubert 84076b9443SCy SchubertPKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION) 85076b9443SCy Schubertpkgdatadir = $(datadir)/$(PKG_DIR) 86076b9443SCy Schubertpkglibdir = $(libdir)/$(PKG_DIR) 87076b9443SCy Schubertpkgincludedir = $(includedir)/$(PKG_DIR) 88076b9443SCy Schubert 89*00787218SCy Schuberttop_builddir = @abs_top_builddir@ 90076b9443SCy Schubert 91*00787218SCy SchubertINSTALL_OPTIONS = 92*00787218SCy SchubertINSTALL = @INSTALL@ $(INSTALL_OPTIONS) 93*00787218SCy SchubertINSTALL_DATA_DIR = @INSTALL_DATA_DIR@ 94076b9443SCy SchubertINSTALL_DATA = @INSTALL_DATA@ 95*00787218SCy SchubertINSTALL_PROGRAM = @INSTALL_PROGRAM@ 96076b9443SCy SchubertINSTALL_SCRIPT = @INSTALL_SCRIPT@ 97*00787218SCy SchubertINSTALL_LIBRARY = @INSTALL_LIBRARY@ 98076b9443SCy Schubert 99076b9443SCy SchubertPACKAGE_NAME = @PACKAGE_NAME@ 100076b9443SCy SchubertPACKAGE_VERSION = @PACKAGE_VERSION@ 101076b9443SCy SchubertCC = @CC@ 102*00787218SCy SchubertCCLD = @CCLD@ 103076b9443SCy SchubertCFLAGS_DEFAULT = @CFLAGS_DEFAULT@ 104076b9443SCy SchubertCFLAGS_WARNING = @CFLAGS_WARNING@ 105076b9443SCy SchubertEXEEXT = @EXEEXT@ 106076b9443SCy SchubertLDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ 107076b9443SCy SchubertMAKE_LIB = @MAKE_LIB@ 108076b9443SCy SchubertMAKE_STUB_LIB = @MAKE_STUB_LIB@ 109076b9443SCy SchubertOBJEXT = @OBJEXT@ 110076b9443SCy SchubertRANLIB = @RANLIB@ 111076b9443SCy SchubertRANLIB_STUB = @RANLIB_STUB@ 112076b9443SCy SchubertSHLIB_CFLAGS = @SHLIB_CFLAGS@ 113076b9443SCy SchubertSHLIB_LD = @SHLIB_LD@ 114076b9443SCy SchubertSHLIB_LD_LIBS = @SHLIB_LD_LIBS@ 115076b9443SCy SchubertSTLIB_LD = @STLIB_LD@ 116076b9443SCy Schubert#TCL_DEFS = @TCL_DEFS@ 117076b9443SCy SchubertTCL_BIN_DIR = @TCL_BIN_DIR@ 118076b9443SCy SchubertTCL_SRC_DIR = @TCL_SRC_DIR@ 119076b9443SCy Schubert#TK_BIN_DIR = @TK_BIN_DIR@ 120076b9443SCy Schubert#TK_SRC_DIR = @TK_SRC_DIR@ 121076b9443SCy Schubert 122076b9443SCy Schubert# Not used, but retained for reference of what libs Tcl required 123076b9443SCy Schubert#TCL_LIBS = @TCL_LIBS@ 124076b9443SCy Schubert 125076b9443SCy Schubert#======================================================================== 126076b9443SCy Schubert# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our 127076b9443SCy Schubert# package without installing. The other environment variables allow us 128076b9443SCy Schubert# to test against an uninstalled Tcl. Add special env vars that you 129076b9443SCy Schubert# require for testing here (like TCLX_LIBRARY). 130076b9443SCy Schubert#======================================================================== 131076b9443SCy Schubert 132076b9443SCy SchubertEXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR) 133076b9443SCy Schubert#EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR) 134076b9443SCy SchubertTCLLIBPATH = $(top_builddir) 135*00787218SCy SchubertTCLSH_ENV = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` 136*00787218SCy SchubertPKG_ENV = @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \ 137076b9443SCy Schubert PATH="$(EXTRA_PATH):$(PATH)" \ 138076b9443SCy Schubert TCLLIBPATH="$(TCLLIBPATH)" 139076b9443SCy Schubert 140076b9443SCy SchubertTCLSH_PROG = @TCLSH_PROG@ 141*00787218SCy SchubertTCLSH = $(TCLSH_ENV) $(PKG_ENV) $(TCLSH_PROG) 142076b9443SCy Schubert 143*00787218SCy Schubert#WISH_ENV = TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library` 144076b9443SCy Schubert#WISH_PROG = @WISH_PROG@ 145*00787218SCy Schubert#WISH = $(TCLSH_ENV) $(WISH_ENV) $(PKG_ENV) $(WISH_PROG) 146076b9443SCy Schubert 147076b9443SCy SchubertSHARED_BUILD = @SHARED_BUILD@ 148076b9443SCy Schubert 149*00787218SCy SchubertINCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ -I. -I$(srcdir)/.. 150076b9443SCy Schubert#INCLUDES = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@ 151076b9443SCy Schubert 152076b9443SCy SchubertPKG_CFLAGS = @PKG_CFLAGS@ 153076b9443SCy Schubert 154076b9443SCy Schubert# TCL_DEFS is not strictly need here, but if you remove it, then you 155*00787218SCy Schubert# must make sure that configure.ac checks for the necessary components 156076b9443SCy Schubert# that your library may use. TCL_DEFS can actually be a problem if 157076b9443SCy Schubert# you do not compile with a similar machine setup as the Tcl core was 158076b9443SCy Schubert# compiled with. 159076b9443SCy Schubert#DEFS = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS) 160076b9443SCy SchubertDEFS = @DEFS@ $(PKG_CFLAGS) 161076b9443SCy Schubert 162*00787218SCy Schubert# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile 163076b9443SCy SchubertCONFIG_CLEAN_FILES = Makefile pkgIndex.tcl 164*00787218SCy SchubertCLEANFILES = @CLEANFILES@ 165076b9443SCy Schubert 166076b9443SCy SchubertCPPFLAGS = @CPPFLAGS@ 167076b9443SCy SchubertLIBS = @PKG_LIBS@ @LIBS@ 168076b9443SCy SchubertAR = @AR@ 169076b9443SCy SchubertCFLAGS = @CFLAGS@ 170*00787218SCy SchubertLDFLAGS = @LDFLAGS@ 171*00787218SCy SchubertLDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@ 172*00787218SCy SchubertCOMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) \ 173*00787218SCy Schubert $(CFLAGS_DEFAULT) $(CFLAGS_WARNING) $(SHLIB_CFLAGS) $(CFLAGS) 174*00787218SCy Schubert 175*00787218SCy SchubertGDB = gdb 176*00787218SCy SchubertVALGRIND = valgrind 177*00787218SCy SchubertVALGRINDARGS = --tool=memcheck --num-callers=8 --leak-resolution=high \ 178*00787218SCy Schubert --leak-check=yes --show-reachable=yes -v 179*00787218SCy Schubert 180*00787218SCy Schubert.SUFFIXES: .c .$(OBJEXT) 181076b9443SCy Schubert 182076b9443SCy Schubert#======================================================================== 183076b9443SCy Schubert# Start of user-definable TARGETS section 184076b9443SCy Schubert#======================================================================== 185076b9443SCy Schubert 186076b9443SCy Schubert#======================================================================== 187076b9443SCy Schubert# TEA TARGETS. Please note that the "libraries:" target refers to platform 188*00787218SCy Schubert# independent files, and the "binaries:" target includes executable programs and 189076b9443SCy Schubert# platform-dependent libraries. Modify these targets so that they install 190076b9443SCy Schubert# the various pieces of your package. The make and install rules 191076b9443SCy Schubert# for the BINARIES that you specified above have already been done. 192076b9443SCy Schubert#======================================================================== 193076b9443SCy Schubert 194076b9443SCy Schubertall: binaries libraries doc 195076b9443SCy Schubert 196076b9443SCy Schubert#======================================================================== 197076b9443SCy Schubert# The binaries target builds executable programs, Windows .dll's, unix 198076b9443SCy Schubert# shared/static libraries, and any other platform-dependent files. 199076b9443SCy Schubert# The list of targets to build for "binaries:" is specified at the top 200076b9443SCy Schubert# of the Makefile, in the "BINARIES" variable. 201076b9443SCy Schubert#======================================================================== 202076b9443SCy Schubert 203076b9443SCy Schubertbinaries: $(BINARIES) 204076b9443SCy Schubert 205076b9443SCy Schubertlibraries: 206076b9443SCy Schubert 207076b9443SCy Schubert#======================================================================== 208076b9443SCy Schubert# Your doc target should differentiate from doc builds (by the developer) 209076b9443SCy Schubert# and doc installs (see install-doc), which just install the docs on the 210076b9443SCy Schubert# end user machine when building from source. 211076b9443SCy Schubert#======================================================================== 212076b9443SCy Schubert 213076b9443SCy Schubertdoc: 214076b9443SCy Schubert @echo "If you have documentation to create, place the commands to" 215076b9443SCy Schubert @echo "build the docs in the 'doc:' target. For example:" 216076b9443SCy Schubert @echo " xml2nroff sample.xml > sample.n" 217076b9443SCy Schubert @echo " xml2html sample.xml > sample.html" 218076b9443SCy Schubert 219076b9443SCy Schubertinstall: all install-binaries install-libraries install-doc 220076b9443SCy Schubert 221076b9443SCy Schubertinstall-binaries: binaries install-lib-binaries install-bin-binaries 222076b9443SCy Schubert 223076b9443SCy Schubert#======================================================================== 224076b9443SCy Schubert# This rule installs platform-independent files, such as header files. 225076b9443SCy Schubert# The list=...; for p in $$list handles the empty list case x-platform. 226076b9443SCy Schubert#======================================================================== 227076b9443SCy Schubert 228076b9443SCy Schubertinstall-libraries: libraries 229*00787218SCy Schubert @$(INSTALL_DATA_DIR) "$(DESTDIR)$(includedir)" 230076b9443SCy Schubert @echo "Installing header files in $(DESTDIR)$(includedir)" 231076b9443SCy Schubert @list='$(PKG_HEADERS)'; for i in $$list; do \ 232076b9443SCy Schubert echo "Installing $(srcdir)/$$i" ; \ 233*00787218SCy Schubert $(INSTALL_DATA) $(srcdir)/$$i "$(DESTDIR)$(includedir)" ; \ 234076b9443SCy Schubert done; 235076b9443SCy Schubert 236076b9443SCy Schubert#======================================================================== 237076b9443SCy Schubert# Install documentation. Unix manpages should go in the $(mandir) 238076b9443SCy Schubert# directory. 239076b9443SCy Schubert#======================================================================== 240076b9443SCy Schubert 241076b9443SCy Schubertinstall-doc: doc 242*00787218SCy Schubert @$(INSTALL_DATA_DIR) "$(DESTDIR)$(mandir)/mann" 243076b9443SCy Schubert @echo "Installing documentation in $(DESTDIR)$(mandir)" 244076b9443SCy Schubert @list='$(srcdir)/doc/*.n'; for i in $$list; do \ 245076b9443SCy Schubert echo "Installing $$i"; \ 246*00787218SCy Schubert $(INSTALL_DATA) $$i "$(DESTDIR)$(mandir)/mann" ; \ 247076b9443SCy Schubert done 248076b9443SCy Schubert 249076b9443SCy Schuberttest: binaries libraries 250076b9443SCy Schubert @echo "SQLite TEA distribution does not include tests" 251076b9443SCy Schubert 252076b9443SCy Schubertshell: binaries libraries 253076b9443SCy Schubert @$(TCLSH) $(SCRIPT) 254076b9443SCy Schubert 255076b9443SCy Schubertgdb: 256*00787218SCy Schubert $(TCLSH_ENV) $(PKG_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT) 257*00787218SCy Schubert 258*00787218SCy Schubertgdb-test: binaries libraries 259*00787218SCy Schubert $(TCLSH_ENV) $(PKG_ENV) $(GDB) \ 260*00787218SCy Schubert --args $(TCLSH_PROG) `@CYGPATH@ $(srcdir)/tests/all.tcl` \ 261*00787218SCy Schubert $(TESTFLAGS) -singleproc 1 \ 262*00787218SCy Schubert -load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \ 263*00787218SCy Schubert [list load `@CYGPATH@ $(PKG_LIB_FILE)` [string totitle $(PACKAGE_NAME)]]" 264*00787218SCy Schubert 265*00787218SCy Schubertvalgrind: binaries libraries 266*00787218SCy Schubert $(TCLSH_ENV) $(PKG_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) \ 267*00787218SCy Schubert `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS) 268*00787218SCy Schubert 269*00787218SCy Schubertvalgrindshell: binaries libraries 270*00787218SCy Schubert $(TCLSH_ENV) $(PKG_ENV) $(VALGRIND) $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT) 271076b9443SCy Schubert 272076b9443SCy Schubertdepend: 273076b9443SCy Schubert 274076b9443SCy Schubert#======================================================================== 275076b9443SCy Schubert# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable 276076b9443SCy Schubert# mentioned above. That will ensure that this target is built when you 277076b9443SCy Schubert# run "make binaries". 278076b9443SCy Schubert# 279076b9443SCy Schubert# The $(PKG_OBJECTS) objects are created and linked into the final 280076b9443SCy Schubert# library. In most cases these object files will correspond to the 281076b9443SCy Schubert# source files above. 282076b9443SCy Schubert#======================================================================== 283076b9443SCy Schubert 284076b9443SCy Schubert$(PKG_LIB_FILE): $(PKG_OBJECTS) 285076b9443SCy Schubert -rm -f $(PKG_LIB_FILE) 286076b9443SCy Schubert ${MAKE_LIB} 287076b9443SCy Schubert $(RANLIB) $(PKG_LIB_FILE) 288076b9443SCy Schubert 289076b9443SCy Schubert$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS) 290076b9443SCy Schubert -rm -f $(PKG_STUB_LIB_FILE) 291076b9443SCy Schubert ${MAKE_STUB_LIB} 292076b9443SCy Schubert $(RANLIB_STUB) $(PKG_STUB_LIB_FILE) 293076b9443SCy Schubert 294076b9443SCy Schubert#======================================================================== 295076b9443SCy Schubert# We need to enumerate the list of .c to .o lines here. 296076b9443SCy Schubert# 297076b9443SCy Schubert# In the following lines, $(srcdir) refers to the toplevel directory 298076b9443SCy Schubert# containing your extension. If your sources are in a subdirectory, 299076b9443SCy Schubert# you will have to modify the paths to reflect this: 300076b9443SCy Schubert# 301076b9443SCy Schubert# sample.$(OBJEXT): $(srcdir)/generic/sample.c 302076b9443SCy Schubert# $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@ 303076b9443SCy Schubert# 304076b9443SCy Schubert# Setting the VPATH variable to a list of paths will cause the makefile 305076b9443SCy Schubert# to look into these paths when resolving .c to .obj dependencies. 306076b9443SCy Schubert# As necessary, add $(srcdir):$(srcdir)/compat:.... 307076b9443SCy Schubert#======================================================================== 308076b9443SCy Schubert 309*00787218SCy SchubertVPATH = $(srcdir):$(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win:$(srcdir)/macosx 310076b9443SCy Schubert 311076b9443SCy Schubert.c.@OBJEXT@: 312076b9443SCy Schubert $(COMPILE) -c `@CYGPATH@ $<` -o $@ 313076b9443SCy Schubert 314*00787218SCy Schuberttclsample.@OBJEXT@: sampleUuid.h 315*00787218SCy Schubert 316*00787218SCy Schubert$(srcdir)/manifest.uuid: 317*00787218SCy Schubert printf "git-" >$(srcdir)/manifest.uuid 318*00787218SCy Schubert (cd $(srcdir); git rev-parse HEAD >>$(srcdir)/manifest.uuid || \ 319*00787218SCy Schubert (printf "svn-r" >$(srcdir)/manifest.uuid ; \ 320*00787218SCy Schubert svn info --show-item last-changed-revision >>$(srcdir)/manifest.uuid) || \ 321*00787218SCy Schubert printf "unknown" >$(srcdir)/manifest.uuid) 322*00787218SCy Schubert 323*00787218SCy SchubertsampleUuid.h: $(srcdir)/manifest.uuid 324*00787218SCy Schubert echo "#define SAMPLE_VERSION_UUID \\" >$@ 325*00787218SCy Schubert cat $(srcdir)/manifest.uuid >>$@ 326*00787218SCy Schubert echo "" >>$@ 327*00787218SCy Schubert 328076b9443SCy Schubert#======================================================================== 329076b9443SCy Schubert# Distribution creation 330076b9443SCy Schubert# You may need to tweak this target to make it work correctly. 331076b9443SCy Schubert#======================================================================== 332076b9443SCy Schubert 333076b9443SCy Schubert#COMPRESS = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar 334*00787218SCy SchubertCOMPRESS = tar zcvf $(PKG_DIR).tar.gz $(PKG_DIR) 335076b9443SCy SchubertDIST_ROOT = /tmp/dist 336076b9443SCy SchubertDIST_DIR = $(DIST_ROOT)/$(PKG_DIR) 337076b9443SCy Schubert 338*00787218SCy SchubertDIST_INSTALL_DATA = CPPROG='cp -p' $(INSTALL) -m 644 339*00787218SCy SchubertDIST_INSTALL_SCRIPT = CPPROG='cp -p' $(INSTALL) -m 755 340*00787218SCy Schubert 341076b9443SCy Schubertdist-clean: 342076b9443SCy Schubert rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.* 343076b9443SCy Schubert 344*00787218SCy Schubertdist: dist-clean $(srcdir)/manifest.uuid 345*00787218SCy Schubert $(INSTALL_DATA_DIR) $(DIST_DIR) 346*00787218SCy Schubert 347*00787218SCy Schubert # TEA files 348*00787218SCy Schubert $(DIST_INSTALL_DATA) $(srcdir)/Makefile.in \ 349*00787218SCy Schubert $(srcdir)/aclocal.m4 $(srcdir)/configure.ac \ 350076b9443SCy Schubert $(DIST_DIR)/ 351*00787218SCy Schubert $(DIST_INSTALL_SCRIPT) $(srcdir)/configure $(DIST_DIR)/ 352076b9443SCy Schubert 353*00787218SCy Schubert $(INSTALL_DATA_DIR) $(DIST_DIR)/tclconfig 354*00787218SCy Schubert $(DIST_INSTALL_DATA) $(srcdir)/tclconfig/README.txt \ 355*00787218SCy Schubert $(srcdir)/manifest.uuid \ 356*00787218SCy Schubert $(srcdir)/tclconfig/tcl.m4 $(srcdir)/tclconfig/install-sh \ 357076b9443SCy Schubert $(DIST_DIR)/tclconfig/ 358076b9443SCy Schubert 359*00787218SCy Schubert # Extension files 360*00787218SCy Schubert $(DIST_INSTALL_DATA) \ 361*00787218SCy Schubert $(srcdir)/ChangeLog \ 362*00787218SCy Schubert $(srcdir)/README.sha \ 363*00787218SCy Schubert $(srcdir)/license.terms \ 364*00787218SCy Schubert $(srcdir)/README \ 365*00787218SCy Schubert $(srcdir)/pkgIndex.tcl.in \ 366*00787218SCy Schubert $(DIST_DIR)/ 367*00787218SCy Schubert 368*00787218SCy Schubert list='demos doc generic library macosx tests unix win'; \ 369076b9443SCy Schubert for p in $$list; do \ 370076b9443SCy Schubert if test -d $(srcdir)/$$p ; then \ 371*00787218SCy Schubert $(INSTALL_DATA_DIR) $(DIST_DIR)/$$p; \ 372*00787218SCy Schubert $(DIST_INSTALL_DATA) $(srcdir)/$$p/* $(DIST_DIR)/$$p/; \ 373076b9443SCy Schubert fi; \ 374076b9443SCy Schubert done 375076b9443SCy Schubert 376076b9443SCy Schubert (cd $(DIST_ROOT); $(COMPRESS);) 377076b9443SCy Schubert 378076b9443SCy Schubert#======================================================================== 379076b9443SCy Schubert# End of user-definable section 380076b9443SCy Schubert#======================================================================== 381076b9443SCy Schubert 382076b9443SCy Schubert#======================================================================== 383076b9443SCy Schubert# Don't modify the file to clean here. Instead, set the "CLEANFILES" 384*00787218SCy Schubert# variable in configure.ac 385076b9443SCy Schubert#======================================================================== 386076b9443SCy Schubert 387076b9443SCy Schubertclean: 388076b9443SCy Schubert -test -z "$(BINARIES)" || rm -f $(BINARIES) 389076b9443SCy Schubert -rm -f *.$(OBJEXT) core *.core 390076b9443SCy Schubert -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 391076b9443SCy Schubert 392076b9443SCy Schubertdistclean: clean 393076b9443SCy Schubert -rm -f *.tab.c 394076b9443SCy Schubert -rm -f $(CONFIG_CLEAN_FILES) 395*00787218SCy Schubert -rm -f config.cache config.log config.status 396076b9443SCy Schubert 397076b9443SCy Schubert#======================================================================== 398076b9443SCy Schubert# Install binary object libraries. On Windows this includes both .dll and 399076b9443SCy Schubert# .lib files. Because the .lib files are not explicitly listed anywhere, 400076b9443SCy Schubert# we need to deduce their existence from the .dll file of the same name. 401076b9443SCy Schubert# Library files go into the lib directory. 402076b9443SCy Schubert# In addition, this will generate the pkgIndex.tcl 403076b9443SCy Schubert# file in the install location (assuming it can find a usable tclsh shell) 404076b9443SCy Schubert# 405076b9443SCy Schubert# You should not have to modify this target. 406076b9443SCy Schubert#======================================================================== 407076b9443SCy Schubert 408076b9443SCy Schubertinstall-lib-binaries: binaries 409*00787218SCy Schubert @$(INSTALL_DATA_DIR) "$(DESTDIR)$(pkglibdir)" 410076b9443SCy Schubert @list='$(lib_BINARIES)'; for p in $$list; do \ 411076b9443SCy Schubert if test -f $$p; then \ 412*00787218SCy Schubert echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ 413*00787218SCy Schubert $(INSTALL_LIBRARY) $$p "$(DESTDIR)$(pkglibdir)/$$p"; \ 414076b9443SCy Schubert ext=`echo $$p|sed -e "s/.*\.//"`; \ 415076b9443SCy Schubert if test "x$$ext" = "xdll"; then \ 416076b9443SCy Schubert lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \ 417076b9443SCy Schubert if test -f $$lib; then \ 418076b9443SCy Schubert echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \ 419*00787218SCy Schubert $(INSTALL_DATA) $$lib "$(DESTDIR)$(pkglibdir)/$$lib"; \ 420076b9443SCy Schubert fi; \ 421076b9443SCy Schubert fi; \ 422076b9443SCy Schubert fi; \ 423076b9443SCy Schubert done 424076b9443SCy Schubert @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ 425076b9443SCy Schubert if test -f $(srcdir)/$$p; then \ 426076b9443SCy Schubert destp=`basename $$p`; \ 427076b9443SCy Schubert echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \ 428*00787218SCy Schubert $(INSTALL_DATA) $(srcdir)/$$p "$(DESTDIR)$(pkglibdir)/$$destp"; \ 429076b9443SCy Schubert fi; \ 430076b9443SCy Schubert done 431076b9443SCy Schubert @if test "x$(SHARED_BUILD)" = "x1"; then \ 432076b9443SCy Schubert echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \ 433*00787218SCy Schubert $(INSTALL_DATA) pkgIndex.tcl "$(DESTDIR)$(pkglibdir)"; \ 434076b9443SCy Schubert fi 435076b9443SCy Schubert 436076b9443SCy Schubert#======================================================================== 437076b9443SCy Schubert# Install binary executables (e.g. .exe files and dependent .dll files) 438076b9443SCy Schubert# This is for files that must go in the bin directory (located next to 439076b9443SCy Schubert# wish and tclsh), like dependent .dll files on Windows. 440076b9443SCy Schubert# 441076b9443SCy Schubert# You should not have to modify this target, except to define bin_BINARIES 442076b9443SCy Schubert# above if necessary. 443076b9443SCy Schubert#======================================================================== 444076b9443SCy Schubert 445076b9443SCy Schubertinstall-bin-binaries: binaries 446*00787218SCy Schubert @$(INSTALL_DATA_DIR) "$(DESTDIR)$(bindir)" 447076b9443SCy Schubert @list='$(bin_BINARIES)'; for p in $$list; do \ 448076b9443SCy Schubert if test -f $$p; then \ 449076b9443SCy Schubert echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \ 450*00787218SCy Schubert $(INSTALL_PROGRAM) $$p "$(DESTDIR)$(bindir)/$$p"; \ 451076b9443SCy Schubert fi; \ 452076b9443SCy Schubert done 453076b9443SCy Schubert 454076b9443SCy SchubertMakefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 455076b9443SCy Schubert cd $(top_builddir) \ 456076b9443SCy Schubert && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 457076b9443SCy Schubert 458076b9443SCy Schubertuninstall-binaries: 459076b9443SCy Schubert list='$(lib_BINARIES)'; for p in $$list; do \ 460*00787218SCy Schubert rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ 461076b9443SCy Schubert done 462076b9443SCy Schubert list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ 463076b9443SCy Schubert p=`basename $$p`; \ 464*00787218SCy Schubert rm -f "$(DESTDIR)$(pkglibdir)/$$p"; \ 465076b9443SCy Schubert done 466076b9443SCy Schubert list='$(bin_BINARIES)'; for p in $$list; do \ 467*00787218SCy Schubert rm -f "$(DESTDIR)$(bindir)/$$p"; \ 468076b9443SCy Schubert done 469076b9443SCy Schubert 470076b9443SCy Schubert.PHONY: all binaries clean depend distclean doc install libraries test 471*00787218SCy Schubert.PHONY: gdb gdb-test valgrind valgrindshell 472076b9443SCy Schubert 473076b9443SCy Schubert# Tell versions [3.59,3.63) of GNU make to not export all variables. 474076b9443SCy Schubert# Otherwise a system limit (for SysV at least) may be exceeded. 475076b9443SCy Schubert.NOEXPORT: 476