source: tol/toltcl/Makefile.in @ ed3716e

1941-docker-image-to-testdevel
Last change on this file since ed3716e was 6d7779d, checked in by Jorge Pérez <josp.jorge@…>, 18 years ago

initial import

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@1 be4846ae-f051-483a-831f-b64e7d08527f

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