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

Last change on this file since 951 was 951, checked in by gah, 13 years ago

added datarootdir to Makefile.in

File size: 16.2 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@
81datarootdir     = @datarootdir@
82mandir          = @mandir@
83includedir      = @includedir@
84
85DESTDIR         =
86
87PKG_DIR         = $(PACKAGE_NAME)$(PACKAGE_VERSION)
88pkgdatadir      = $(datadir)/$(PKG_DIR)
89pkglibdir       = $(libdir)/$(PKG_DIR)
90pkgincludedir   = $(includedir)/$(PKG_DIR)
91
92top_builddir    = .
93
94INSTALL         = @INSTALL@
95INSTALL_PROGRAM = @INSTALL_PROGRAM@
96INSTALL_DATA    = @INSTALL_DATA@
97INSTALL_SCRIPT  = @INSTALL_SCRIPT@
98
99PACKAGE_NAME    = @PACKAGE_NAME@
100PACKAGE_VERSION = @PACKAGE_VERSION@
101CC              = @CC@
102CXX             = @CXX@
103CFLAGS_DEFAULT  = @CFLAGS_DEFAULT@
104CFLAGS_WARNING  = @CFLAGS_WARNING@
105CLEANFILES      = @CLEANFILES@
106EXEEXT          = @EXEEXT@
107LDFLAGS_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@
117SHLIB_LD_LIBS   = @SHLIB_LD_LIBS@
118STLIB_LD        = @STLIB_LD@
119#TCL_DEFS       = @TCL_DEFS@
120TCL_BIN_DIR     = @TCL_BIN_DIR@
121TCL_SRC_DIR     = @TCL_SRC_DIR@
122#TK_BIN_DIR     = @TK_BIN_DIR@
123#TK_SRC_DIR     = @TK_SRC_DIR@
124
125# Not used, but retained for reference of what libs Tcl required
126#TCL_LIBS       = @TCL_LIBS@
127
128#========================================================================
129# TCLLIBPATH seeds the auto_path in Tcl's init.tcl so we can test our
130# package without installing.  The other environment variables allow us
131# to test against an uninstalled Tcl.  Add special env vars that you
132# require for testing here (like TCLX_LIBRARY).
133#========================================================================
134
135EXTRA_PATH      = $(top_builddir):$(TCL_BIN_DIR)
136#EXTRA_PATH     = $(top_builddir):$(TCL_BIN_DIR):$(TK_BIN_DIR)
137TCLLIBPATH      = $(top_builddir)
138TCLSH_ENV       = TCL_LIBRARY=`@CYGPATH@ $(TCL_SRC_DIR)/library` \
139                  @LD_LIBRARY_PATH_VAR@="$(EXTRA_PATH):$(@LD_LIBRARY_PATH_VAR@)" \
140                  PATH="$(EXTRA_PATH):$(PATH)" \
141                  TCLLIBPATH="$(TCLLIBPATH)"
142#                 TK_LIBRARY=`@CYGPATH@ $(TK_SRC_DIR)/library`
143
144TCLSH_PROG      = @TCLSH_PROG@
145TCLSH   = $(TCLSH_ENV) $(TCLSH_PROG)
146
147#WISH_PROG      = @WISH_PROG@
148#WISH   = $(TCLSH_ENV) $(WISH_PROG)
149
150
151SHARED_BUILD    = @SHARED_BUILD@
152
153INCLUDES        = @PKG_INCLUDES@ @TCL_INCLUDES@ -I$(BLT_SRC_DIR) -I$(ALT_DIR)/include -I$(RAPPTURE_DIR)/include
154#INCLUDES       = @PKG_INCLUDES@ @TCL_INCLUDES@ @TK_INCLUDES@ @TK_XINCLUDES@
155
156PKG_CFLAGS      = @PKG_CFLAGS@
157
158# TCL_DEFS is not strictly need here, but if you remove it, then you
159# must make sure that configure.in checks for the necessary components
160# that your library may use.  TCL_DEFS can actually be a problem if
161# you do not compile with a similar machine setup as the Tcl core was
162# compiled with.
163#DEFS           = $(TCL_DEFS) @DEFS@ $(PKG_CFLAGS)
164DEFS            = @DEFS@ $(PKG_CFLAGS)
165
166CONFIG_CLEAN_FILES = Makefile
167
168CPPFLAGS        = @CPPFLAGS@
169LIBS            = @PKG_LIBS@ @LIBS@
170AR              = @AR@
171CFLAGS          = @CFLAGS@
172COMPILE         = $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
173
174#========================================================================
175# Start of user-definable TARGETS section
176#========================================================================
177
178#========================================================================
179# TEA TARGETS.  Please note that the "libraries:" target refers to platform
180# independent files, and the "binaries:" target inclues executable programs and
181# platform-dependent libraries.  Modify these targets so that they install
182# the various pieces of your package.  The make and install rules
183# for the BINARIES that you specified above have already been done.
184#========================================================================
185
186all: binaries libraries doc
187
188#========================================================================
189# The binaries target builds executable programs, Windows .dll's, unix
190# shared/static libraries, and any other platform-dependent files.
191# The list of targets to build for "binaries:" is specified at the top
192# of the Makefile, in the "BINARIES" variable.
193#========================================================================
194
195binaries: $(BINARIES)
196
197libraries:
198
199
200#========================================================================
201# Your doc target should differentiate from doc builds (by the developer)
202# and doc installs (see install-doc), which just install the docs on the
203# end user machine when building from source.
204#========================================================================
205
206doc:
207#       @echo "If you have documentation to create, place the commands to"
208#       @echo "build the docs in the 'doc:' target.  For example:"
209#       @echo "        xml2nroff sample.xml > sample.n"
210#       @echo "        xml2html sample.xml > sample.html"
211
212install: all install-binaries install-libraries install-doc
213
214install-binaries: binaries install-lib-binaries install-bin-binaries
215
216#========================================================================
217# This rule installs platform-independent files, such as header files.
218# The list=...; for p in $$list handles the empty list case x-platform.
219#========================================================================
220
221install-libraries: libraries
222        @mkdir -p $(DESTDIR)$(includedir)
223        @echo "Installing header files in $(DESTDIR)$(includedir)"
224        @list='$(PKG_HEADERS)'; for i in $$list; do \
225            echo "Installing $(srcdir)/$$i" ; \
226            $(INSTALL_DATA) $(srcdir)/$$i $(DESTDIR)$(includedir) ; \
227        done;
228
229#========================================================================
230# Install documentation.  Unix manpages should go in the $(mandir)
231# directory.
232#========================================================================
233
234install-doc: doc
235#       @mkdir -p $(DESTDIR)$(mandir)/mann
236#       @echo "Installing documentation in $(DESTDIR)$(mandir)"
237#       @list='$(srcdir)/doc/*.n'; for i in $$list; do \
238#           echo "Installing $$i"; \
239#           rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
240#           $(INSTALL_DATA) $$i $(DESTDIR)$(mandir)/mann ; \
241#       done
242
243test: binaries libraries
244        $(TCLSH) `@CYGPATH@ $(srcdir)/tests/all.tcl` $(TESTFLAGS)
245
246shell: binaries libraries
247        @$(TCLSH) $(SCRIPT)
248
249gdb:
250        $(TCLSH_ENV) gdb $(TCLSH_PROG) $(SCRIPT)
251
252depend:
253
254#========================================================================
255# $(PKG_LIB_FILE) should be listed as part of the BINARIES variable
256# mentioned above.  That will ensure that this target is built when you
257# run "make binaries".
258#
259# The $(PKG_OBJECTS) objects are created and linked into the final
260# library.  In most cases these object files will correspond to the
261# source files above.
262#========================================================================
263
264$(PKG_LIB_FILE): $(PKG_OBJECTS)
265        -rm -f $(PKG_LIB_FILE)
266        ${MAKE_LIB}
267        $(RANLIB) $(PKG_LIB_FILE)
268
269$(PKG_STUB_LIB_FILE): $(PKG_STUB_OBJECTS)
270        -rm -f $(PKG_STUB_LIB_FILE)
271        ${MAKE_STUB_LIB}
272        $(RANLIB_STUB) $(PKG_STUB_LIB_FILE)
273
274#========================================================================
275# We need to enumerate the list of .c to .o lines here.
276#
277# In the following lines, $(srcdir) refers to the toplevel directory
278# containing your extension.  If your sources are in a subdirectory,
279# you will have to modify the paths to reflect this:
280#
281# sample.$(OBJEXT): $(srcdir)/generic/sample.c
282#       $(COMPILE) -c `@CYGPATH@ $(srcdir)/generic/sample.c` -o $@
283#
284# Setting the VPATH variable to a list of paths will cause the makefile
285# to look into these paths when resolving .c to .obj dependencies.
286# As necessary, add $(srcdir):$(srcdir)/compat:....
287#========================================================================
288
289VPATH = $(srcdir):$(srcdir)/src:$(srcdir)/unix:$(srcdir)/win
290
291.c.@OBJEXT@:
292        $(CC) $(COMPILE) -c `@CYGPATH@ $<` -o $@
293.cc.@OBJEXT@:
294        $(CXX) $(COMPILE) -c `@CYGPATH@ $<` -o $@
295.cpp.@OBJEXT@:
296        $(CXX) $(COMPILE) -c `@CYGPATH@ $<` -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        = gtar 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        mkdir -p $(DIST_DIR)
313        cp -p $(srcdir)/ChangeLog $(srcdir)/README* $(srcdir)/license* \
314                $(srcdir)/aclocal.m4 $(srcdir)/configure $(srcdir)/*.in \
315                $(DIST_DIR)/
316        chmod 664 $(DIST_DIR)/Makefile.in $(DIST_DIR)/aclocal.m4
317        chmod 775 $(DIST_DIR)/configure $(DIST_DIR)/configure.in
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        mkdir $(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                mkdir $(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.in
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        @mkdir -p $(DESTDIR)$(pkglibdir)
373        @list='$(lib_BINARIES)'; for p in $$list; do \
374          if test -f $$p; then \
375            echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(pkglibdir)/$$p"; \
376            $(INSTALL_PROGRAM) $$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        @mkdir -p $(DESTDIR)$(pkglibdir)/scripts
396        @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
397          if test -f $(srcdir)/$$p; then \
398            destp=`basename $$p`; \
399            echo " Install $$destp $(DESTDIR)$(pkglibdir)/scripts/$$destp"; \
400            $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/scripts/$$destp; \
401          fi; \
402        done
403        # Uncomment when you are ready to install tcl rappture library bindings
404        #$(TCLSH_PROG) $(srcdir)/tclconfig/mkindex.tcl $(DESTDIR)$(pkglibdir)/scripts
405        $(INSTALL_DATA) init.tcl $(DESTDIR)$(pkglibdir)/init.tcl
406        @list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
407          if test -f $(srcdir)/$$p; then \
408            destp=`basename $$p`; \
409            echo " Install $$destp $(DESTDIR)$(pkglibdir)/$$destp"; \
410            $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(pkglibdir)/$$destp; \
411          fi; \
412        done
413        @if test "x$(SHARED_BUILD)" = "x1"; then \
414            echo " Install pkgIndex.tcl $(DESTDIR)$(pkglibdir)"; \
415            $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir); \
416        fi
417
418#========================================================================
419# Install binary executables (e.g. .exe files and dependent .dll files)
420# This is for files that must go in the bin directory (located next to
421# wish and tclsh), like dependent .dll files on Windows.
422#
423# You should not have to modify this target, except to define bin_BINARIES
424# above if necessary.
425#========================================================================
426
427install-bin-binaries: binaries
428        @mkdir -p $(DESTDIR)$(bindir)
429        @list='$(bin_BINARIES)'; for p in $$list; do \
430          if test -f $$p; then \
431            echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p"; \
432            $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/$$p; \
433          fi; \
434        done
435
436.SUFFIXES: .c .$(OBJEXT)
437
438Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
439        cd $(top_builddir) \
440          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
441
442uninstall-binaries:
443        list='$(lib_BINARIES)'; for p in $$list; do \
444          rm -f $(DESTDIR)$(pkglibdir)/$$p; \
445        done
446        list='$(PKG_TCL_SOURCES)'; for p in $$list; do \
447          p=`basename $$p`; \
448          rm -f $(DESTDIR)$(pkglibdir)/$$p; \
449        done
450        list='$(bin_BINARIES)'; for p in $$list; do \
451          rm -f $(DESTDIR)$(bindir)/$$p; \
452        done
453
454.PHONY: all binaries clean depend distclean doc install libraries test
455
456# Tell versions [3.59,3.63) of GNU make to not export all variables.
457# Otherwise a system limit (for SysV at least) may be exceeded.
458.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.