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