Makefile.in 15 KB

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