1# Makefile.in --
2#
3#	This file is a Makefile for the ctable_server TEA Extension.  If it has the
4#       name "Makefile.in" then it is a template for a Makefile;  to generate
5#       the 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-2003 ActiveState Corporation.
11# Copyright (c) 2005 Karl Lehenbauer
12#
13# See the file "license.terms" for information on usage and redistribution
14# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
15#
16# RCS: @(#) $Id: Makefile.in,v 1.7 2005-11-17 03:32:13 karl Exp $
17
18#========================================================================
19# Add additional lines to handle any additional AC_SUBST cases that
20# have been added in a customized configure script.
21#========================================================================
22
23#SAMPLE_NEW_VAR	= @SAMPLE_NEW_VAR@
24
25#========================================================================
26# Nothing of the variables below this line should need to be changed.
27# Please check the TARGETS section below to make sure the make targets
28# are correct.
29#========================================================================
30
31#========================================================================
32# The names of the source files is defined in the configure script.
33# The object files are used for linking into the final library.
34# This will be used when a dist target is added to the Makefile.
35# It is not important to specify the directory, as long as it is the
36# $(srcdir) or in the generic, win or unix subdirectory.
37#========================================================================
38
39PKG_SOURCES	= @PKG_SOURCES@
40PKG_OBJECTS	= @PKG_OBJECTS@
41
42PKG_STUB_SOURCES = @PKG_STUB_SOURCES@
43PKG_STUB_OBJECTS = @PKG_STUB_OBJECTS@
44
45#========================================================================
46# PKG_TCL_SOURCES identifies Tcl runtime files that are associated with
47# this package that need to be installed, if any.
48#========================================================================
49
50PKG_TCL_SOURCES = @PKG_TCL_SOURCES@
51
52#========================================================================
53# This is a list of public header files to be installed, if any.
54#========================================================================
55
56PKG_HEADERS	= @PKG_HEADERS@
57
58#========================================================================
59# "PKG_LIB_FILE" refers to the library (dynamic or static as per
60# configuration options) composed of the named objects.
61#========================================================================
62
63PKG_LIB_FILE	= @PKG_LIB_FILE@
64PKG_STUB_LIB_FILE = @PKG_STUB_LIB_FILE@
65
66bin_BINARIES    = sttp
67#lib_BINARIES	= $(PKG_LIB_FILE)
68#BINARIES	= $(lib_BINARIES)
69lib_BINARIES	=
70BINARIES	=
71
72SHELL		= @SHELL@
73
74srcdir		= @srcdir@
75prefix		= @prefix@
76exec_prefix	= @exec_prefix@
77
78bindir		= @bindir@
79libdir		= @libdir@
80datadir		= @datadir@
81datarootdir     = @datarootdir@
82mandir		= @mandir@
83includedir	= @includedir@
84
85DESTDIR		=
86
87PKG_DIR		= $(PACKAGE_NAME)
88#PKG_DIR	= $(PACKAGE_NAME)$(PACKAGE_VERSION)
89pkgdatadir	= $(datadir)/$(PKG_DIR)
90pkglibdir	= $(libdir)/$(PKG_DIR)
91pkgincludedir	= $(includedir)/$(PKG_DIR)
92
93top_builddir	= .
94
95INSTALL		= @INSTALL@
96INSTALL_PROGRAM	= @INSTALL_PROGRAM@
97INSTALL_DATA	= @INSTALL_DATA@
98INSTALL_SCRIPT	= @INSTALL_SCRIPT@
99
100PACKAGE_NAME	= @PACKAGE_NAME@
101PACKAGE_VERSION	= @PACKAGE_VERSION@
102CC		= @CC@
103#CFLAGS_DEFAULT	= @CFLAGS_DEFAULT@
104CFLAGS_WARNING	= @CFLAGS_WARNING@
105CLEANFILES	= @CLEANFILES@
106EXEEXT		= @EXEEXT@
107#LDFLAGS_DEFAULT	= @LDFLAGS_DEFAULT@
108MAKE_LIB	= @MAKE_LIB@
109MAKE_SHARED_LIB	= @MAKE_SHARED_LIB@
110MAKE_STATIC_LIB	= @MAKE_STATIC_LIB@
111MAKE_STUB_LIB	= @MAKE_STUB_LIB@
112OBJEXT		= @OBJEXT@
113RANLIB		= @RANLIB@
114RANLIB_STUB	= @RANLIB_STUB@
115SHLIB_CFLAGS	= @SHLIB_CFLAGS@
116SHLIB_LD	= @SHLIB_LD@
117#SHLIB_LD_FLAGS	= @SHLIB_LD_FLAGS@
118SHLIB_LD_LIBS	= @SHLIB_LD_LIBS@
119STLIB_LD	= @STLIB_LD@
120TCL_DEFS	= @TCL_DEFS@
121TCL_BIN_DIR	= @TCL_BIN_DIR@
122TCL_SRC_DIR	= @TCL_SRC_DIR@
123# This is necessary for packages that use private Tcl headers
124#TCL_TOP_DIR_NATIVE	= @TCL_TOP_DIR_NATIVE@
125# Not used, but retained for reference of what libs Tcl required
126TCL_LIBS	= @TCL_LIBS@
127
128
129#========================================================================
130# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
131# package without installing.  The other environment variables allow us
132# to test against an uninstalled Tcl.  Add special env vars that you
133# require for testing here (like TCLX_LIBRARY).
134#========================================================================
135
136EXTRA_PATH	= $(top_builddir):$(TCL_BIN_DIR)
137TCLSH_ENV	= TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \
138		  @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
139		  PATH="$(EXTRA_PATH):$(PATH)" \
140		  TCLLIBPATH="$(top_builddir)"
141TCLSH_PROG	= @TCLSH_PROG@
142TCLSH		= $(TCLSH_ENV) $(TCLSH_PROG)
143SHARED_BUILD	= @SHARED_BUILD@
144
145INCLUDES	= @PKG_INCLUDES@ @TCL_INCLUDES@
146
147PKG_CFLAGS	= @PKG_CFLAGS@
148
149# TCL_DEFS is not strictly need here, but if you remove it, then you
150# must make sure that configure.in checks for the necessary components
151# that your library may use.  TCL_DEFS can actually be a problem if
152# you do not compile with a similar machine setup as the Tcl core was
153# compiled with.
154#DEFS		= $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
155DEFS		= @DEFS@ $(PKG_CFLAGS)
156
157CONFIG_CLEAN_FILES = Makefile pkgIndex.tcl autom4te.cache
158
159CPPFLAGS	= @CPPFLAGS@
160LIBS		= @PKG_LIBS@ @LIBS@
161AR		= ar
162CFLAGS		= @CFLAGS@
163COMPILE		= $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
164
165#========================================================================
166# Start of user-definable TARGETS section
167#========================================================================
168
169#========================================================================
170# TEA TARGETS.  Please note that the "libraries:" target refers to platform
171# independent files, and the "binaries:" target inclues executable programs and
172# platform-dependent libraries.  Modify these targets so that they install
173# the various pieces of your package.  The make and install rules
174# for the BINARIES that you specified above have already been done.
175#========================================================================
176
177all: binaries libraries doc
178
179#========================================================================
180# The binaries target builds executable programs, Windows .dll's, unix
181# shared/static libraries, and any other platform-dependent files.
182# The list of targets to build for "binaries:" is specified at the top
183# of the Makefile, in the "BINARIES" variable.
184#========================================================================
185
186binaries: $(BINARIES)
187
188libraries: pkgIndex.tcl
189
190$(PKG_TCL_SOURCES):
191	cp -f $(srcdir)/$@ $@
192
193pkgIndex.tcl: $(PKG_TCL_SOURCES)
194	echo "pkg_mkIndex . $(PKG_TCL_SOURCES)" | $(TCLSH_PROG)
195
196doc:
197
198#@echo "If you have documentation to create, place the commands to"
199#@echo "build the docs in the 'doc:' target.  For example:"
200#@echo "        xml2nroff sample.xml > sample.n"
201#@echo "        xml2html sample.xml > sample.html"
202
203install: all install-binaries install-libraries install-doc
204
205install-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
212install-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
225install-doc: doc
226#	@mkdir -p $(DESTDIR)$(mandir)/mann
227#	@echo "Installing documentation in $(DESTDIR)$(mandir)"
228#	@list='$(srcdir)/docs/*.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
234test: binaries libraries
235	cd tests; make test
236
237shell: binaries libraries
238	@$(TCLSH) $(SCRIPT)
239
240gdb:
241	$(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
242
243depend:
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	= tar czvf $(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# 	mkdir -p $(DIST_DIR)/generic
301# 	mkdir -p $(DIST_DIR)/win
302# 	cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \
303# 		$(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \
304# 		$(DIST_DIR)/
305# 	chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4
306# 	chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in
307
308# 	cp -p $(srcdir)/generic/*.[ch] $(DIST_DIR)/generic
309# 	cp -p $(srcdir)/win/*.[ch] $(DIST_DIR)/win
310
311# 	mkdir $(DIST_DIR)/tclconfig
312# 	cp $(srcdir)/tclconfig/install-sh $(srcdir)/tclconfig/tcl.m4 \
313# 		$(DIST_DIR)/tclconfig/
314# 	chmod 664 $(DIST_DIR)/tclconfig/tcl.m4
315# 	chmod +x $(DIST_DIR)/tclconfig/install-sh
316
317# 	list='demos doc generic library mac tests unix win'; \
318# 	for p in $$list; do \
319# 	    if test -d $(srcdir)/$$p ; then \
320# 		mkdir $(DIST_DIR)/$$p; \
321# 		cp -p $(srcdir)/$$p/*.* $(DIST_DIR)/$$p/; \
322# 	    fi; \
323# 	done
324
325# 	(cd $(DIST_ROOT); $(COMPRESS);)
326
327#========================================================================
328# End of user-definable section
329#========================================================================
330
331#========================================================================
332# Don't modify the file to clean here.  Instead, set the "CLEANFILES"
333# variable in configure.in
334#========================================================================
335
336clean:
337	-test -z "$(BINARIES)" || rm -f $(BINARIES)
338	-rm -f *.$(OBJEXT) core *.core
339	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
340
341distclean: clean
342	-rm -f *.tab.c
343	-rm -rf $(CONFIG_CLEAN_FILES)
344	-rm -rf config.cache config.log config.status autom4te*.cache
345
346#========================================================================
347# Install binary object libraries.  On Windows this includes both .dll and
348# .lib files.  Because the .lib files are not explicitly listed anywhere,
349# we need to deduce their existence from the .dll file of the same name.
350# Library files go into the lib directory.
351# In addition, this will install pkgIndex.tcl
352# file in the install location
353#
354# You should not have to modify this target.
355#========================================================================
356
357install-lib-binaries:
358	@mkdir -p $(DESTDIR)$(pkglibdir)
359	@list='$(lib_BINARIES)'; for p in $$list; do \
360	  if test -f $$p; then \
361	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
362	    $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p; \
363	    stub=`echo $$p|sed -e "s/.*\(stub\).*/\1/"`; \
364	    if test "x$$stub" = "xstub"; then \
365		echo " $(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p"; \
366		$(RANLIB_STUB) $(DESTDIR)$(pkglibdir)/$$p; \
367	    else \
368		echo " $(RANLIB) $(DESTDIR)$(pkglibdir)/$$p"; \
369		$(RANLIB) $(DESTDIR)$(pkglibdir)/$$p; \
370	    fi; \
371	    ext=`echo $$p|sed -e "s/.*\.//"`; \
372	    if test "x$$ext" = "xdll"; then \
373		lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
374		if test -f $$lib; then \
375		    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib"; \
376	            $(INSTALL_DATA) $$lib $(DESTDIR)$(pkglibdir)/$$lib; \
377		fi; \
378	    fi; \
379	  fi; \
380	done
381	@list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
382	  if test -f $(srcdir)/$$p; then \
383	    destp=`basename $$p`; \
384	    echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
385	    $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
386	  elif test -f $$p; then \
387	    destp=`basename $$p`; \
388	    echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
389	    $(INSTALL_DATA) $$p $(DESTDIR)$(pkglibdir)/$$destp; \
390	  fi; \
391	done
392	@if test true -o "x$(SHARED_BUILD)" = "x1"; then \
393	    echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
394	    $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
395	fi
396
397#========================================================================
398# Install binary executables (e.g. .exe files and dependent .dll files)
399# This is for files that must go in the bin directory (located next to
400# wish and tclsh), like dependent .dll files on Windows.
401#
402# You should not have to modify this target, except to define bin_BINARIES
403# above if necessary.
404#========================================================================
405
406install-bin-binaries:
407	@mkdir -p $(DESTDIR)$(bindir)
408	@list='$(bin_BINARIES)'; for p in $$list; do \
409	  if test -f $$p; then \
410	    echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
411	    $(INSTALL_SCRIPT) $$p $(DESTDIR)$(bindir)/$$p; \
412	  fi; \
413	done
414
415.SUFFIXES: .c .$(OBJEXT)
416
417Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
418	cd $(top_builddir) \
419	  && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
420
421uninstall-binaries:
422	list='$(lib_BINARIES)'; for p in $$list; do \
423	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
424	done
425	list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
426	  p=`basename $$p`; \
427	  rm -f $(DESTDIR)$(pkglibdir)/$$p; \
428	done
429	list='$(bin_BINARIES)'; for p in $$list; do \
430	  rm -f $(DESTDIR)$(bindir)/$$p; \
431	done
432
433.PHONY: all binaries clean depend distclean doc install libraries test
434
435# Tell versions [3.59,3.63) of GNU make to not export all variables.
436# Otherwise a system limit (for SysV at least) may be exceeded.
437.NOEXPORT:
438