source: trunk/src/tcl/Makefile.in @ 620

Last change on this file since 620 was 528, checked in by dkearney, 18 years ago

installable version of rappture units tcl bindings.
commented out rappture library bindings for inclusion later.

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