source: tags/1.0/gui/Makefile.in @ 4643

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

added datarootdir to Makefile.in

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