1# Makefile.in -- 2# 3# This file is a Makefile for Sample TEA Extension. If it has the name 4# "Makefile.in" then it is a template for a Makefile; to generate the 5# 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-2005 ActiveState Corporation. 11# 12# See the file "license.terms" for information on usage and redistribution 13# of this file, and for a DISCLAIMER OF ALL WARRANTIES. 14 15#======================================================================== 16# Add additional lines to handle any additional AC_SUBST cases that 17# have been added in a customized configure script. 18#======================================================================== 19 20#SAMPLE_NEW_VAR = @SAMPLE_NEW_VAR@ 21 22#======================================================================== 23# Nothing of the variables below this line should need to be changed. 24# Please check the TARGETS section below to make sure the make targets 25# are correct. 26#======================================================================== 27 28#======================================================================== 29# The names of the source files is defined in the configure script. 30# The object files are used for linking into the final library. 31# This will be used when a dist target is added to the Makefile. 32# It is not important to specify the directory, as long as it is the 33# $(srcdir) or in the generic, win or unix subdirectory. 34#======================================================================== 35 36PKG_SOURCES = tclmdb.c mdb.c midl.c 37PKG_OBJECTS = tclmdb.o mdb.o midl.o 38 39PKG_STUB_SOURCES = 40PKG_STUB_OBJECTS = 41 42#======================================================================== 43# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with 44# this package that need to be installed, if any. 45#======================================================================== 46 47PKG_TCL_SOURCES = 48 49#======================================================================== 50# This is a list of public header files to be installed, if any. 51#======================================================================== 52 53PKG_HEADERS = 54 55#======================================================================== 56# "PKG_LIB_FILE" refers to the library (dynamic or static as per 57# configuration options) composed of the named objects. 58#======================================================================== 59 60PKG_LIB_FILE = liblmdb0.4.2.so 61PKG_STUB_LIB_FILE = liblmdbstub0.4.2.a 62 63lib_BINARIES = $(PKG_LIB_FILE) 64BINARIES = $(lib_BINARIES) 65 66SHELL = /bin/sh 67 68srcdir = . 69prefix = /usr 70exec_prefix = /usr 71 72bindir = ${exec_prefix}/bin 73libdir = ${exec_prefix}/lib64 74includedir = ${prefix}/include 75datarootdir = ${prefix}/share 76datadir = ${datarootdir} 77mandir = ${datarootdir}/man 78 79DESTDIR = 80 81PKG_DIR = $(PACKAGE_NAME)$(PACKAGE_VERSION) 82pkgdatadir = $(datadir)/$(PKG_DIR) 83pkglibdir = $(libdir)/$(PKG_DIR) 84pkgincludedir = $(includedir)/$(PKG_DIR) 85 86top_builddir = . 87 88INSTALL_OPTIONS = 89INSTALL = $(SHELL) $(srcdir)/tclconfig/install-sh -c ${INSTALL_OPTIONS} 90INSTALL_DATA_DIR = ${INSTALL} -d -m 755 91INSTALL_DATA = ${INSTALL} -m 644 92INSTALL_PROGRAM = ${INSTALL} 93INSTALL_SCRIPT = ${INSTALL} 94INSTALL_LIBRARY = ${INSTALL_DATA} 95 96PACKAGE_NAME = lmdb 97PACKAGE_VERSION = 0.4.2 98CC = gcc 99CFLAGS_DEFAULT = -O2 -fomit-frame-pointer -DNDEBUG 100CFLAGS_WARNING = -Wall 101EXEEXT = 102LDFLAGS_DEFAULT = -Wl,--export-dynamic 103MAKE_LIB = ${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS} 104MAKE_SHARED_LIB = ${SHLIB_LD} -o $@ $(PKG_OBJECTS) ${SHLIB_LD_LIBS} 105MAKE_STATIC_LIB = ${STLIB_LD} $@ $(PKG_OBJECTS) 106MAKE_STUB_LIB = ${STLIB_LD} $@ $(PKG_STUB_OBJECTS) 107OBJEXT = o 108RANLIB = : 109RANLIB_STUB = ranlib 110SHLIB_CFLAGS = -fPIC 111SHLIB_LD = ${CC} -shared ${CFLAGS} ${LDFLAGS_DEFAULT} 112SHLIB_LD_LIBS = ${LIBS} -L/usr/lib64 -ltclstub8.6 113STLIB_LD = ${AR} cr 114#TCL_DEFS = -DPACKAGE_NAME=\"tcl\" -DPACKAGE_TARNAME=\"tcl\" -DPACKAGE_VERSION=\"8.6\" -DPACKAGE_STRING=\"tcl\ 8.6\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DHAVE_PTHREAD_ATTR_SETSTACKSIZE=1 -DHAVE_PTHREAD_ATFORK=1 -DTCL_THREADS=1 -DTCL_CFGVAL_ENCODING=\"iso8859-1\" -DHAVE_ZLIB=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -DTCL_SHLIB_EXT=\".so\" -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_TOMMATH=1 -DMP_PREC=4 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 -DHAVE_GETCWD=1 -DHAVE_MKSTEMP=1 -DHAVE_OPENDIR=1 -DHAVE_STRTOL=1 -DHAVE_WAITPID=1 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DHAVE_FREEADDRINFO=1 -DHAVE_GAI_STRERROR=1 -DHAVE_STRUCT_ADDRINFO=1 -DHAVE_STRUCT_IN6_ADDR=1 -DHAVE_STRUCT_SOCKADDR_IN6=1 -DHAVE_STRUCT_SOCKADDR_STORAGE=1 -DHAVE_GETPWUID_R_5=1 -DHAVE_GETPWUID_R=1 -DHAVE_GETPWNAM_R_5=1 -DHAVE_GETPWNAM_R=1 -DHAVE_GETGRGID_R_5=1 -DHAVE_GETGRGID_R=1 -DHAVE_GETGRNAM_R_5=1 -DHAVE_GETGRNAM_R=1 -DHAVE_DECL_GETHOSTBYNAME_R=1 -DHAVE_GETHOSTBYNAME_R_6=1 -DHAVE_GETHOSTBYNAME_R=1 -DHAVE_DECL_GETHOSTBYADDR_R=1 -DHAVE_GETHOSTBYADDR_R_8=1 -DHAVE_GETHOSTBYADDR_R=1 -DHAVE_TERMIOS_H=1 -DHAVE_SYS_IOCTL_H=1 -DHAVE_SYS_TIME_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_GMTIME_R=1 -DHAVE_LOCALTIME_R=1 -DHAVE_MKTIME=1 -DHAVE_TM_GMTOFF=1 -DHAVE_TIMEZONE_VAR=1 -DHAVE_STRUCT_STAT_ST_BLOCKS=1 -DHAVE_STRUCT_STAT_ST_BLKSIZE=1 -DHAVE_BLKCNT_T=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DNO_UNION_WAIT=1 -DHAVE_SIGNED_CHAR=1 -DHAVE_LANGINFO=1 -DHAVE_MKSTEMPS=1 -DHAVE_FTS=1 -DHAVE_SYS_IOCTL_H=1 -DTCL_UNLOAD_DLLS=1 -DHAVE_CPUID=1 115TCL_BIN_DIR = /usr/lib64 116TCL_SRC_DIR = /home/abuild/rpmbuild/BUILD/tcl8.6.11 117#TK_BIN_DIR = @TK_BIN_DIR@ 118#TK_SRC_DIR = @TK_SRC_DIR@ 119 120# Not used, but retained for reference of what libs Tcl required 121#TCL_LIBS = ${DL_LIBS} ${LIBS} ${MATH_LIBS} 122 123#======================================================================== 124# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our 125# package without installing. The other environment variables allow us 126# to test against an uninstalled Tcl. Add special env vars that you 127# require for testing here (like TCLX_LIBRARY). 128#======================================================================== 129 130EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR) 131#EXTRA_PATH = $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR) 132TCLLIBPATH = $(top_builddir) 133TCLSH_ENV = TCL_LIBRARY=`echo $(TCL_SRC_DIR)/library` 134PKG_ENV = LD_LIBRARY_PATH="$(EXTRA_PATH):$(LD_LIBRARY_PATH)" \ 135 PATH="$(EXTRA_PATH):$(PATH)" \ 136 TCLLIBPATH="$(TCLLIBPATH)" 137 138TCLSH_PROG = /usr/bin/tclsh8.6 139TCLSH = $(PKG_ENV) $(TCLSH_ENV) $(TCLSH_PROG) 140 141#WISH_ENV = TK_LIBRARY=`echo $(TK_SRC_DIR)/library` 142#WISH_PROG = @WISH_PROG@ 143#WISH = $(PKG_ENV) $(TCLSH_ENV) $(WISH_ENV) $(WISH_PROG) 144 145SHARED_BUILD = 1 146 147INCLUDES = -I"/usr/include" 148#INCLUDES = -I"/usr/include" @TK_INCLUDES@ @TK_XINCLUDES@ 149 150PKG_CFLAGS = 151 152# TCL_DEFS is not strictly need here, but if you remove it, then you 153# must make sure that configure.ac checks for the necessary components 154# that your library may use. TCL_DEFS can actually be a problem if 155# you do not compile with a similar machine setup as the Tcl core was 156# compiled with. 157#DEFS = $(TCL_DEFS) -DPACKAGE_NAME=\"lmdb\" -DPACKAGE_TARNAME=\"lmdb\" -DPACKAGE_VERSION=\"0.4.2\" -DPACKAGE_STRING=\"lmdb\ 0.4.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_lmdb=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DUSE_TCL_STUBS=1 -DUSE_TCLOO_STUBS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 $(PKG_CFLAGS) 158DEFS = -DPACKAGE_NAME=\"lmdb\" -DPACKAGE_TARNAME=\"lmdb\" -DPACKAGE_VERSION=\"0.4.2\" -DPACKAGE_STRING=\"lmdb\ 0.4.2\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DBUILD_lmdb=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_LIMITS_H=1 -DHAVE_SYS_PARAM_H=1 -DUSE_THREAD_ALLOC=1 -D_REENTRANT=1 -D_THREAD_SAFE=1 -DTCL_THREADS=1 -DUSE_TCL_STUBS=1 -DUSE_TCLOO_STUBS=1 -DMODULE_SCOPE=extern\ __attribute__\(\(__visibility__\(\"hidden\"\)\)\) -DHAVE_HIDDEN=1 -DHAVE_CAST_TO_UNION=1 -D_LARGEFILE64_SOURCE=1 -DTCL_WIDE_INT_IS_LONG=1 $(PKG_CFLAGS) 159 160# Move pkgIndex.tcl to 'BINARIES' var if it is generated in the Makefile 161CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl 162CLEANFILES = 163 164CPPFLAGS = 165LIBS = 166AR = ar 167CFLAGS = -pipe ${CFLAGS_DEFAULT} ${CFLAGS_WARNING} ${SHLIB_CFLAGS} 168COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) 169 170.SUFFIXES: .c .$(OBJEXT) 171 172#======================================================================== 173# Start of user-definable TARGETS section 174#======================================================================== 175 176#======================================================================== 177# TEA TARGETS. Please note that the "libraries:" target refers to platform 178# independent files, and the "binaries:" target includes executable programs and 179# platform-dependent libraries. Modify these targets so that they install 180# the various pieces of your package. The make and install rules 181# for the BINARIES that you specified above have already been done. 182#======================================================================== 183 184all: binaries libraries doc 185 186#======================================================================== 187# The binaries target builds executable programs, Windows .dll's, unix 188# shared/static libraries, and any other platform-dependent files. 189# The list of targets to build for "binaries:" is specified at the top 190# of the Makefile, in the "BINARIES" variable. 191#======================================================================== 192 193binaries: $(BINARIES) 194 195libraries: 196 197#======================================================================== 198# Your doc target should differentiate from doc builds (by the developer) 199# and doc installs (see install-doc), which just install the docs on the 200# end user machine when building from source. 201#======================================================================== 202 203doc: 204 205install: all install-binaries install-libraries install-doc 206 207install-binaries: binaries install-lib-binaries install-bin-binaries 208 209#======================================================================== 210# This rule installs platform-independent files, such as header files. 211# The list=...; for p in $$list handles the empty list case x-platform. 212#======================================================================== 213 214install-libraries: libraries 215 @$(INSTALL_DATA_DIR) $(DESTDIR)$(includedir) 216 @echo "Installing header files in $(DESTDIR)$(includedir)" 217 @list='$(PKG_HEADERS)'; for i in $$list; do \ 218 echo "Installing $(srcdir)/$$i" ; \ 219 $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \ 220 done; 221 222#======================================================================== 223# Install documentation. Unix manpages should go in the $(mandir) 224# directory. 225#======================================================================== 226 227install-doc: doc 228 @$(INSTALL_DATA_DIR) $(DESTDIR)$(mandir)/mann 229 @echo "Installing documentation in $(DESTDIR)$(mandir)" 230 @list='$(srcdir)/doc/*.n'; for i in $$list; do \ 231 echo "Installing $$i"; \ 232 $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \ 233 done 234 235test: binaries libraries 236 $(TCLSH) `echo $(srcdir)/tests/all.tcl` $(TESTFLAGS) \ 237 -load "package ifneeded ${PACKAGE_NAME} ${PACKAGE_VERSION} \ 238 [list load `echo $(PKG_LIB_FILE)` $(PACKAGE_NAME)]" 239 240shell: binaries libraries 241 @$(TCLSH) $(SCRIPT) 242 243gdb: 244 $(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT) 245 246VALGRINDARGS = --tool=memcheck --num-callers=8 --leak-resolution=high \ 247 --leak-check=yes --show-reachable=yes -v 248 249valgrind: binaries libraries 250 $(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) \ 251 `echo $(srcdir)/tests/all.tcl` $(TESTFLAGS) 252 253valgrindshell: binaries libraries 254 $(TCLSH_ENV) valgrind $(VALGRINDARGS) $(TCLSH_PROG) $(SCRIPT) 255 256depend: 257 258#======================================================================== 259# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable 260# mentioned above. That will ensure that this target is built when you 261# run "make binaries". 262# 263# The $(PKG_OBJECTS) objects are created and linked into the final 264# library. In most cases these object files will correspond to the 265# source files above. 266#======================================================================== 267 268$(PKG_LIB_FILE): $(PKG_OBJECTS) 269 -rm -f $(PKG_LIB_FILE) 270 ${MAKE_LIB} 271 $(RANLIB) $(PKG_LIB_FILE) 272 273$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS) 274 -rm -f $(PKG_STUB_LIB_FILE) 275 ${MAKE_STUB_LIB} 276 $(RANLIB_STUB) $(PKG_STUB_LIB_FILE) 277 278#======================================================================== 279# We need to enumerate the list of .c to .o lines here. 280# 281# In the following lines, $(srcdir) refers to the toplevel directory 282# containing your extension. If your sources are in a subdirectory, 283# you will have to modify the paths to reflect this: 284# 285# sample.$(OBJEXT): $(srcdir)/generic/sample.c 286# $(COMPILE) -c `echo $(srcdir)/generic/sample.c` -o $@ 287# 288# Setting the VPATH variable to a list of paths will cause the makefile 289# to look into these paths when resolving .c to .obj dependencies. 290# As necessary, add $(srcdir):$(srcdir)/compat:.... 291#======================================================================== 292 293VPATH = $(srcdir)/generic:$(srcdir)/unix:$(srcdir)/win:$(srcdir)/macosx 294 295.c.o: 296 $(COMPILE) -c `echo $<` -o $@ 297 298#======================================================================== 299# Distribution creation 300# You may need to tweak this target to make it work correctly. 301#======================================================================== 302 303#COMPRESS = tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar 304COMPRESS = tar zcvf $(PKG_DIR).tar.gz $(PKG_DIR) 305DIST_ROOT = /tmp/dist 306DIST_DIR = $(DIST_ROOT)/$(PKG_DIR) 307 308dist-clean: 309 rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.* 310 311dist: dist-clean 312 $(INSTALL_DATA_DIR) $(DIST_DIR) 313 cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \ 314 $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \ 315 $(srcdir)/configure.ac $(DIST_DIR)/ 316 chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4 317 chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.ac 318 319 for i in $(srcdir)/*.[ch]; do \ 320 if [ -f $$i ]; then \ 321 cp -p $$i $(DIST_DIR)/ ; \ 322 fi; \ 323 done; 324 325 $(INSTALL_DATA_DIR) $(DIST_DIR)/tclconfig 326 cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \ 327 $(DIST_DIR)/tclconfig/ 328 chmod 664 $(DIST_DIR)/tclconfig/tcl.m4 329 chmod +x $(DIST_DIR)/tclconfig/install-sh 330 331 list='demos doc generic library mac tests unix win'; \ 332 for p in $$list; do \ 333 if test -d $(srcdir)/$$p ; then \ 334 $(INSTALL_DATA_DIR) $(DIST_DIR)/$$p; \ 335 cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \ 336 fi; \ 337 done 338 339 (cd $(DIST_ROOT); $(COMPRESS);) 340 341#======================================================================== 342# End of user-definable section 343#======================================================================== 344 345#======================================================================== 346# Don't modify the file to clean here. Instead, set the "CLEANFILES" 347# variable in configure.ac 348#======================================================================== 349 350clean: 351 -test -z "$(BINARIES)" || rm -f $(BINARIES) 352 -rm -f *.$(OBJEXT) core *.core 353 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES) 354 355distclean: clean 356 -rm -f *.tab.c 357 -rm -f $(CONFIG_CLEAN_FILES) 358 -rm -f config.cache config.log config.status 359 360#======================================================================== 361# Install binary object libraries. On Windows this includes both .dll and 362# .lib files. Because the .lib files are not explicitly listed anywhere, 363# we need to deduce their existence from the .dll file of the same name. 364# Library files go into the lib directory. 365# In addition, this will generate the pkgIndex.tcl 366# file in the install location (assuming it can find a usable tclsh shell) 367# 368# You should not have to modify this target. 369#======================================================================== 370 371install-lib-binaries: binaries 372 @$(INSTALL_DATA_DIR) $(DESTDIR)$(pkglibdir) 373 @list='$(lib_BINARIES)'; for p in $$list; do \ 374 if test -f $$p; then \ 375 echo " $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p"; \ 376 $(INSTALL_LIBRARY) $$p $(DESTDIR)$(pkglibdir)/$$p; \ 377 stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \ 378 if test "x$$stub" = "xstub"; then \ 379 echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \ 380 $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \ 381 else \ 382 echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \ 383 $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \ 384 fi; \ 385 ext=`echo $$p|sed -e "s/.*\.//"`; \ 386 if test "x$$ext" = "xdll"; then \ 387 lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \ 388 if test -f $$lib; then \ 389 echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \ 390 $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \ 391 fi; \ 392 fi; \ 393 fi; \ 394 done 395 @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ 396 if test -f $(srcdir)/$$p; then \ 397 destp=`basename $$p`; \ 398 echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \ 399 $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \ 400 fi; \ 401 done 402 @if test "x$(SHARED_BUILD)" = "x1"; then \ 403 echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \ 404 $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \ 405 fi 406 407#======================================================================== 408# Install binary executables (e.g. .exe files and dependent .dll files) 409# This is for files that must go in the bin directory (located next to 410# wish and tclsh), like dependent .dll files on Windows. 411# 412# You should not have to modify this target, except to define bin_BINARIES 413# above if necessary. 414#======================================================================== 415 416install-bin-binaries: binaries 417 @$(INSTALL_DATA_DIR) $(DESTDIR)$(bindir) 418 @list='$(bin_BINARIES)'; for p in $$list; do \ 419 if test -f $$p; then \ 420 echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \ 421 $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \ 422 fi; \ 423 done 424 425Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status 426 cd $(top_builddir) \ 427 && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status 428 429uninstall-binaries: 430 list='$(lib_BINARIES)'; for p in $$list; do \ 431 rm -f $(DESTDIR)$(pkglibdir)/$$p; \ 432 done 433 list='$(PKG_TCL_SOURCES)'; for p in $$list; do \ 434 p=`basename $$p`; \ 435 rm -f $(DESTDIR)$(pkglibdir)/$$p; \ 436 done 437 list='$(bin_BINARIES)'; for p in $$list; do \ 438 rm -f $(DESTDIR)$(bindir)/$$p; \ 439 done 440 441.PHONY: all binaries clean depend distclean doc install libraries test 442 443# Tell versions [3.59,3.63) of GNU make to not export all variables. 444# Otherwise a system limit (for SysV at least) may be exceeded. 445.NOEXPORT: 446