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