source: trunk/packages/optimizer/src/Makefile.in @ 1272

Last change on this file since 1272 was 1052, checked in by gah, 16 years ago

fixes to optimizer build

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