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

Last change on this file since 225 was 225, checked in by dkearney, 19 years ago

added alternative Rappture:result function to tcl bindings
added Rappture::Units::convert function.
adjusted makefile for more files to compile
adjusted configure file to once again check for bltInt.h
adjusted children function to allow for blank path

File size: 13.0 KB
Line 
1# Makefile.in --
2#
3#       This file is a Makefile for the Rappture GUI library.  If it has
4#       the name "Makefile.in" then it is a template for a Makefile.
5#       To generate the actual Makefile, run "./configure", which is a
6#       configuration script generated by the "autoconf" program
7#       (constructs like "@foo@" will get replaced in the actual Makefile.
8#
9#========================================================================
10# This is the parameterized name of the library that we are building.
11#========================================================================
12
13lib_BINARIES=$(Rappture_LIB_FILE)
14BINARIES=$(lib_BINARIES)
15
16#========================================================================
17# Enumerate the names of the source files included in this package.
18# This will be used when a dist target is added to the Makefile.
19#========================================================================
20
21Rappture_SOURCES = \
22  src/Rappture_Init.cc \
23  src/RpLibraryTclInterface.cc \
24  src/RpUnitsTclInterface.cc
25SOURCES = $(Rappture_SOURCES)
26
27#========================================================================
28# Enumerate the names of the object files included in this package.
29# These objects are created and linked into the final library.  In
30# most cases these object files will correspond to the source files
31# above.
32#========================================================================
33
34Rappture_OBJECTS = \
35  Rappture_Init.$(OBJEXT) \
36  RpLibraryTclInterface.$(OBJEXT) \
37  RpUnitsTclInterface.$(OBJEXT)
38OBJECTS = $(Rappture_OBJECTS)
39
40#========================================================================
41# The substitution of "Rappture_LIB_FILE" into the variable name below
42# let's us refer to the objects for the library without knowing the name
43# of the library in advance.  It also lets us use the "$@" variable in
44# the rule for building the library, so we can refer to both the list of
45# objects and the library itself in a platform-independent manner.
46#========================================================================
47
48Rappture_LIB_FILE = @Rappture_LIB_FILE@
49$(Rappture_LIB_FILE)_OBJECTS = $(Rappture_OBJECTS)
50
51#========================================================================
52# This is a list of header files to be installed
53#========================================================================
54
55GENERIC_HDRS=
56
57#========================================================================
58# Nothing of the variables below this line need to be changed.  Please
59# check the TARGETS section below to make sure the make targets are
60# correct.
61#========================================================================
62
63SHELL = @SHELL@
64
65srcdir = @srcdir@
66top_srcdir = @top_srcdir@
67prefix = @prefix@
68exec_prefix = @exec_prefix@
69
70bindir = @bindir@
71sbindir = @sbindir@
72libexecdir = @libexecdir@
73datadir = @datadir@
74sysconfdir = @sysconfdir@
75sharedstatedir = @sharedstatedir@
76localstatedir = @localstatedir@
77libdir = @libdir@
78infodir = @infodir@
79mandir = @mandir@
80includedir = @includedir@
81oldincludedir = /usr/include
82
83DESTDIR =
84
85pkgdatadir = $(datadir)/@PACKAGE@@VERSION@
86pkglibdir = $(libdir)/@PACKAGE@@VERSION@
87pkgincludedir = $(includedir)/@PACKAGE@@VERSION@
88
89top_builddir = .
90
91INSTALL = @INSTALL@
92INSTALL_PROGRAM = @INSTALL_PROGRAM@
93INSTALL_DATA = @INSTALL_DATA@
94INSTALL_SCRIPT = @INSTALL_SCRIPT@
95INSTALL_STRIP_FLAG =
96transform = @program_transform_name@
97
98NORMAL_INSTALL = :
99PRE_INSTALL = :
100POST_INSTALL = :
101NORMAL_UNINSTALL = :
102PRE_UNINSTALL = :
103POST_UNINSTALL = :
104
105PACKAGE = @PACKAGE@
106VERSION = @VERSION@
107CC = @CC@
108CXX = @CXX@
109CFLAGS_DEBUG = @CFLAGS_DEBUG@ -Wall
110CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ -Wall
111CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ -Wall
112CLEANFILES = @CLEANFILES@
113EXEEXT = @EXEEXT@
114LDFLAGS_DEBUG = @LDFLAGS_DEBUG@
115LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@
116LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@
117MAKE_LIB = @MAKE_LIB@
118MAKE_SHARED_LIB = @MAKE_SHARED_LIB@
119MAKE_STATIC_LIB = @MAKE_STATIC_LIB@
120OBJEXT = @OBJEXT@
121RANLIB = @RANLIB@
122SHLIB_CFLAGS = @SHLIB_CFLAGS@
123SHLIB_LD = @SHLIB_LD@
124SHLIB_LDFLAGS = @SHLIB_LDFLAGS@
125SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
126STLIB_LD = @STLIB_LD@
127TCL_BIN_DIR = @TCL_BIN_DIR@
128TCL_DEFS = @TCL_DEFS@
129TCL_EXTRA_CFLAGS = @TCL_EXTRA_CFLAGS@
130TCL_LD_FLAGS = @TCL_LD_FLAGS@
131TCL_LIBS = @TCL_LIBS@
132TCL_SHLIB_LD_LIBS = @TCL_SHLIB_LD_LIBS@
133TCL_SRC_DIR = @TCL_SRC_DIR@
134TCL_DBGX = @TCL_DBGX@
135TCL_STUB_LIB_FILE = @TCL_STUB_LIB_FILE@
136TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@
137TCLSH_PROG = @TCLSH_PROG@
138
139BLT_SRC_DIR = @BLT_SRC_DIR@
140
141AUTOCONF = autoconf
142
143LDFLAGS = $(LDFLAGS_DEFAULT)
144
145INCLUDES = @TCL_INCLUDES@ -I$(BLT_SRC_DIR)
146
147EXTRA_CFLAGS = $(TCL_DEFS) $(PROTO_FLAGS) $(SECURITY_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) $(NO_DEPRECATED_FLAGS)
148
149DEFS = @DEFS@ $(EXTRA_CFLAGS)
150
151ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
152mkinstalldirs = $(SHELL) $(top_srcdir)/cf/mkinstalldirs
153CONFIG_CLEAN_FILES = pkgIndex.tcl init.tcl
154
155CPPFLAGS = @CPPFLAGS@
156LIBS = @LIBS@
157AR = ar
158CFLAGS = @CFLAGS@
159COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
160COMPILEXX = $(CXX) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
161CCLD = $(CC)
162LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
163
164#========================================================================
165# Start of user-definable TARGETS section
166#========================================================================
167
168#========================================================================
169# TEA TARGETS.  Please note that the "libraries:" target refers to platform
170# independent files, and the "binaries:" target inclues executable programs and
171# platform-dependent libraries.  Modify these targets so that they install
172# the various pieces of your package.  The make and install rules
173# for the BINARIES that you specified above have already been done.
174#========================================================================
175
176all: binaries libraries doc
177
178#========================================================================
179# The binaries target builds executable programs, Windows .dll's, unix
180# shared/static libraries, and any other platform-dependent files.
181# The list of targets to build for "binaries:" is specified at the top
182# of the Makefile, in the "BINARIES" variable.
183#========================================================================
184
185binaries: $(BINARIES)
186
187libraries:
188
189doc:
190
191install: all install-binaries install-libraries
192
193install-binaries: binaries install-lib-binaries install-bin-binaries
194
195#========================================================================
196# This rule installs platform-independent files, such as header files.
197#========================================================================
198
199install-libraries: libraries
200        $(mkinstalldirs) $(includedir)
201        echo "Installing header files in $(includedir)"
202        @for i in $(GENERIC_HDRS) ; do \
203            echo "Installing $$i" ; \
204            $(INSTALL_DATA) $$i $(includedir) ; \
205        done;
206
207#========================================================================
208# Install documentation.  Unix manpages should go in the $(mandir)
209# directory.
210#========================================================================
211
212install-doc: doc
213        $(mkinstalldirs) $(mandir)/man1
214        $(mkinstalldirs) $(mandir)/man3
215        $(mkinstalldirs) $(mandir)/mann
216        @for i in $(srcdir)/*.n; \
217            do \
218            echo "Installing $$i"; \
219            rm -f $(mandir)/mann/$$i; \
220            $(INSTALL_DATA) $$i $(mandir)/mann/$$i ; \
221            chmod 444 $(mandir)/mann/$$i; \
222            done
223
224test:
225
226depend:
227
228#========================================================================
229# Enumerate the names of the object files included in this package.
230# These objects are created and linked into the final library.  In
231# most cases these object files will correspond to the source files
232# above.
233#
234# $(Rappture_LIB_FILE) should be listed as part of the BINARIES variable
235# at the top of the Makefile.  That will ensure that this target is built
236# when you run "make binaries".
237#
238# You shouldn't need to modify this target, except to change the package
239# name from "Rappture" to your package's name.
240#========================================================================
241
242$(Rappture_LIB_FILE): $(Rappture_OBJECTS)
243        -rm -f $(Rappture_LIB_FILE)
244        @MAKE_LIB@  -lrappture
245        $(RANLIB) $(Rappture_LIB_FILE) -lrappture
246
247#========================================================================
248# We need to enumerate the list of .c to .o lines here.
249# Unfortunately, there does not seem to be any other way to do this
250# in a Makefile-independent way.  We can't use VPATH because it picks up
251# object files that may be located in the source directory.
252#
253# In the following lines, $(srcdir) refers to the toplevel directory
254# containing your extension.  If your sources are in a subdirectory,
255# you will have to modify the paths to reflect this:
256#
257# exampleA.$(OBJEXT): $(srcdir)/src/win/exampleA.c
258#       $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/win/exampleA.c` -o $@
259#========================================================================
260
261#RpRusage.$(OBJEXT): $(srcdir)/src/RpRusage.c
262#       $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpRusage.c` -o $@
263
264Rappture_Init.$(OBJEXT): $(srcdir)/src/Rappture_Init.cc
265        $(COMPILEXX) -c `@CYGPATH@ $(srcdir)/src/Rappture_Init.cc` -o $@
266
267RpLibraryTclInterface.$(OBJEXT): $(srcdir)/src/RpLibraryTclInterface.cc
268        $(COMPILEXX) -c `@CYGPATH@ $(srcdir)/src/RpLibraryTclInterface.cc` -o $@
269
270RpUnitsTclInterface.$(OBJEXT): $(srcdir)/src/RpUnitsTclInterface.cc
271        $(COMPILEXX) -c `@CYGPATH@ $(srcdir)/src/RpUnitsTclInterface.cc` -o $@
272
273
274#========================================================================
275# End of user-definable section
276#========================================================================
277
278#========================================================================
279# Don't modify the file to clean here.  Instead, set the "CLEANFILES"
280# variable in configure.in
281#========================================================================
282
283clean: 
284        -test -z "$(BINARIES)" || rm -f $(BINARIES)
285        -rm -f *.o core *.core
286        -rm -f *.$(OBJEXT)
287        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
288:
289distclean: clean
290        -rm -f *.tab.c
291        -rm -f Makefile $(CONFIG_CLEAN_FILES)
292        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
293        -rm -f config.status
294        -rm -rf autom4te.cache
295
296#========================================================================
297# Install binary object libraries.  On Windows this includes both .dll and
298# .lib files.  Because the .lib files are not explicitly listed anywhere,
299# we need to deduce their existence from the .dll file of the same name.
300# Additionally, the .dll files go into the bin directory, but the .lib
301# files go into the lib directory.  On Unix platforms, all library files
302# go into the lib directory.  In addition, this will generate the pkgIndex.tcl
303# file in the install location (assuming it can find a usable tclsh8.2 shell)
304#
305# You should not have to modify this target.
306#========================================================================
307
308install-lib-binaries: installdirs
309        @list='$(lib_BINARIES)'; for p in $$list; do \
310          if test -f $$p; then \
311            ext=`echo $$p|sed -e "s/.*\.//"`; \
312            if test "x$$ext" = "xdll"; then \
313                echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; \
314                $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; \
315                lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
316                if test -f $$lib; then \
317                    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
318                    $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
319                fi; \
320            else \
321                echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
322                $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
323            fi; \
324          else :; fi; \
325        done
326        @list='$(lib_BINARIES)'; for p in $$list; do \
327          if test -f $$p; then \
328            echo " $(RANLIB) $(DESTDIR)$(bindir)/$$p"; \
329            $(RANLIB) $(DESTDIR)$(bindir)/$$p; \
330          else :; fi; \
331        done
332        $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)/pkgIndex.tcl
333        $(INSTALL_DATA) init.tcl $(DESTDIR)$(pkglibdir)/init.tcl
334
335#========================================================================
336# Install binary executables (e.g. .exe files)
337#
338# You should not have to modify this target.
339#========================================================================
340
341install-bin-binaries: installdirs
342        @list='$(bin_BINARIES)'; for p in $$list; do \
343          if test -f $$p; then \
344            echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; \
345            $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; \
346          else :; fi; \
347        done
348
349.SUFFIXES: .c .o .obj
350
351Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
352        cd $(top_builddir) \
353          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
354
355config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
356        $(SHELL) ./config.status --recheck
357$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
358        cd $(srcdir) && $(AUTOCONF)
359
360
361uninstall-binaries:
362        @$(NORMAL_UNINSTALL)
363        list='$(BINARIES)'; for p in $$list; do \
364          rm -f $(DESTDIR)$(libdir)/$$p; \
365        done
366
367installdirs:
368        $(mkinstalldirs)  $(DESTDIR)$(libdir)
369        $(mkinstalldirs)  $(DESTDIR)$(bindir)
370        $(mkinstalldirs)  $(DESTDIR)$(pkglibdir)
371
372.PHONY: all binaries clean depend distclean doc install installdirs \
373libraries test
374
375# Tell versions [3.59,3.63) of GNU make to not export all variables.
376# Otherwise a system limit (for SysV at least) may be exceeded.
377.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.