source: trunk/gui/Makefile.in @ 367

Last change on this file since 367 was 193, checked in by mmc, 18 years ago
  • Added "Upload..." capability to the <loader> widget. You can now add an <upload> directive containing the path of the control that will receive data. A file is uploaded from the desktop and saved in the specified control.
  • Fixed download capability to work properly for all result types, including contour plots and molecules.
  • Added rappture::signal so we can catch SIGHUP and clean up the upload/download spool directory.
File size: 13.6 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=$(RapptureGUI_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
21RapptureGUI_SOURCES = \
22  src/RpInit.c \
23  src/RpRlimit.c \
24  src/RpRusage.c \
25  src/RpSignal.c
26SOURCES = $(RapptureGUI_SOURCES)
27
28#========================================================================
29# Enumerate the names of the object files included in this package.
30# These objects are created and linked into the final library.  In
31# most cases these object files will correspond to the source files
32# above.
33#========================================================================
34
35RapptureGUI_OBJECTS = \
36  RpInit.$(OBJEXT) \
37  RpRlimit.$(OBJEXT) \
38  RpRusage.$(OBJEXT) \
39  RpSignal.$(OBJEXT)
40OBJECTS = $(RapptureGUI_OBJECTS)
41
42#========================================================================
43# The substitution of "RapptureGUI_LIB_FILE" into the variable name below
44# let's us refer to the objects for the library without knowing the name
45# of the library in advance.  It also lets us use the "$@" variable in
46# the rule for building the library, so we can refer to both the list of
47# objects and the library itself in a platform-independent manner.
48#========================================================================
49
50RapptureGUI_LIB_FILE = @RapptureGUI_LIB_FILE@
51$(RapptureGUI_LIB_FILE)_OBJECTS = $(RapptureGUI_OBJECTS)
52
53#========================================================================
54# This is a list of header files to be installed
55#========================================================================
56
57GENERIC_HDRS=
58
59#========================================================================
60# Nothing of the variables below this line need to be changed.  Please
61# check the TARGETS section below to make sure the make targets are
62# correct.
63#========================================================================
64
65SHELL = @SHELL@
66
67srcdir = @srcdir@
68top_srcdir = @top_srcdir@
69prefix = @prefix@
70exec_prefix = @exec_prefix@
71
72bindir = @bindir@
73sbindir = @sbindir@
74libexecdir = @libexecdir@
75datadir = @datadir@
76sysconfdir = @sysconfdir@
77sharedstatedir = @sharedstatedir@
78localstatedir = @localstatedir@
79libdir = @libdir@
80infodir = @infodir@
81mandir = @mandir@
82includedir = @includedir@
83oldincludedir = /usr/include
84
85DESTDIR =
86
87pkgdatadir = $(datadir)/@PACKAGE@@VERSION@
88pkglibdir = $(libdir)/@PACKAGE@@VERSION@
89pkgincludedir = $(includedir)/@PACKAGE@@VERSION@
90
91top_builddir = .
92
93INSTALL = @INSTALL@
94INSTALL_PROGRAM = @INSTALL_PROGRAM@
95INSTALL_DATA = @INSTALL_DATA@
96INSTALL_SCRIPT = @INSTALL_SCRIPT@
97INSTALL_STRIP_FLAG =
98transform = @program_transform_name@
99
100NORMAL_INSTALL = :
101PRE_INSTALL = :
102POST_INSTALL = :
103NORMAL_UNINSTALL = :
104PRE_UNINSTALL = :
105POST_UNINSTALL = :
106
107PACKAGE = @PACKAGE@
108VERSION = @VERSION@
109CC = @CC@
110CFLAGS_DEBUG = @CFLAGS_DEBUG@ -Wall
111CFLAGS_DEFAULT = @CFLAGS_DEFAULT@ -Wall
112CFLAGS_OPTIMIZE = @CFLAGS_OPTIMIZE@ -Wall
113CLEANFILES = @CLEANFILES@
114EXEEXT = @EXEEXT@
115LDFLAGS_DEBUG = @LDFLAGS_DEBUG@
116LDFLAGS_DEFAULT = @LDFLAGS_DEFAULT@
117LDFLAGS_OPTIMIZE = @LDFLAGS_OPTIMIZE@
118MAKE_LIB = @MAKE_LIB@
119MAKE_SHARED_LIB = @MAKE_SHARED_LIB@
120MAKE_STATIC_LIB = @MAKE_STATIC_LIB@
121OBJEXT = @OBJEXT@
122RANLIB = @RANLIB@
123SHLIB_CFLAGS = @SHLIB_CFLAGS@
124SHLIB_LD = @SHLIB_LD@
125SHLIB_LDFLAGS = @SHLIB_LDFLAGS@
126SHLIB_LD_LIBS = @SHLIB_LD_LIBS@
127STLIB_LD = @STLIB_LD@
128TCL_BIN_DIR = @TCL_BIN_DIR@
129TCL_DEFS = @TCL_DEFS@
130TCL_EXTRA_CFLAGS = @TCL_EXTRA_CFLAGS@
131TCL_LD_FLAGS = @TCL_LD_FLAGS@
132TCL_LIBS = @TCL_LIBS@
133TCL_SHLIB_LD_LIBS = @TCL_SHLIB_LD_LIBS@
134TCL_SRC_DIR = @TCL_SRC_DIR@
135TCL_DBGX = @TCL_DBGX@
136TCL_STUB_LIB_FILE = @TCL_STUB_LIB_FILE@
137TCL_STUB_LIB_SPEC = @TCL_STUB_LIB_SPEC@
138TCLSH_PROG = @TCLSH_PROG@
139
140BLT_SRC_DIR = @BLT_SRC_DIR@
141
142AUTOCONF = autoconf
143
144LDFLAGS = $(LDFLAGS_DEFAULT)
145
146INCLUDES = @TCL_INCLUDES@ -I$(BLT_SRC_DIR)
147
148EXTRA_CFLAGS = $(TCL_DEFS) $(PROTO_FLAGS) $(SECURITY_FLAGS) $(MEM_DEBUG_FLAGS) $(KEYSYM_FLAGS) $(NO_DEPRECATED_FLAGS)
149
150DEFS = @DEFS@ $(EXTRA_CFLAGS)
151
152ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
153mkinstalldirs = $(SHELL) $(top_srcdir)/cf/mkinstalldirs
154CONFIG_CLEAN_FILES = pkgIndex.tcl init.tcl
155
156CPPFLAGS = @CPPFLAGS@
157LIBS = @LIBS@
158AR = ar
159CFLAGS = @CFLAGS@
160COMPILE = $(CC) $(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        cd filexfer; make all
189
190doc:
191
192install: all install-binaries install-libraries
193
194install-binaries: binaries install-lib-binaries install-bin-binaries
195
196#========================================================================
197# This rule installs platform-independent files, such as header files.
198#========================================================================
199
200install-libraries: libraries
201        $(mkinstalldirs) $(includedir)
202        echo "Installing header files in $(includedir)"
203        @for i in $(GENERIC_HDRS) ; do \
204            echo "Installing $$i" ; \
205            $(INSTALL_DATA) $$i $(includedir) ; \
206        done;
207
208#========================================================================
209# Install documentation.  Unix manpages should go in the $(mandir)
210# directory.
211#========================================================================
212
213install-doc: doc
214        $(mkinstalldirs) $(mandir)/man1
215        $(mkinstalldirs) $(mandir)/man3
216        $(mkinstalldirs) $(mandir)/mann
217        @for i in $(srcdir)/*.n; \
218            do \
219            echo "Installing $$i"; \
220            rm -f $(mandir)/mann/$$i; \
221            $(INSTALL_DATA) $$i $(mandir)/mann/$$i ; \
222            chmod 444 $(mandir)/mann/$$i; \
223            done
224
225test:
226
227depend:
228
229#========================================================================
230# Enumerate the names of the object files included in this package.
231# These objects are created and linked into the final library.  In
232# most cases these object files will correspond to the source files
233# above.
234#
235# $(RapptureGUI_LIB_FILE) should be listed as part of the BINARIES variable
236# at the top of the Makefile.  That will ensure that this target is built
237# when you run "make binaries".
238#
239# You shouldn't need to modify this target, except to change the package
240# name from "Rappture" to your package's name.
241#========================================================================
242
243$(RapptureGUI_LIB_FILE): $(RapptureGUI_OBJECTS)
244        -rm -f $(RapptureGUI_LIB_FILE)
245        @MAKE_LIB@
246        $(RANLIB) $(RapptureGUI_LIB_FILE)
247
248#========================================================================
249# We need to enumerate the list of .c to .o lines here.
250# Unfortunately, there does not seem to be any other way to do this
251# in a Makefile-independent way.  We can't use VPATH because it picks up
252# object files that may be located in the source directory.
253#
254# In the following lines, $(srcdir) refers to the toplevel directory
255# containing your extension.  If your sources are in a subdirectory,
256# you will have to modify the paths to reflect this:
257#
258# exampleA.$(OBJEXT): $(srcdir)/src/win/exampleA.c
259#       $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/win/exampleA.c` -o $@
260#========================================================================
261
262RpInit.$(OBJEXT): $(srcdir)/src/RpInit.c
263        $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpInit.c` -o $@
264
265RpRlimit.$(OBJEXT): $(srcdir)/src/RpRlimit.c
266        $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpRlimit.c` -o $@
267
268RpRusage.$(OBJEXT): $(srcdir)/src/RpRusage.c
269        $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpRusage.c` -o $@
270
271RpSignal.$(OBJEXT): $(srcdir)/src/RpSignal.c
272        $(COMPILE) -c `@CYGPATH@ $(srcdir)/src/RpSignal.c` -o $@
273
274
275#========================================================================
276# End of user-definable section
277#========================================================================
278
279#========================================================================
280# Don't modify the file to clean here.  Instead, set the "CLEANFILES"
281# variable in configure.in
282#========================================================================
283
284clean: 
285        cd filexfer; make clean
286        -test -z "$(BINARIES)" || rm -f $(BINARIES)
287        -rm -f *.o core *.core
288        -rm -f *.$(OBJEXT)
289        -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
290
291distclean: clean
292        -rm -f *.tab.c
293        -rm -f Makefile $(CONFIG_CLEAN_FILES)
294        -rm -f config.cache config.log stamp-h stamp-h[0-9]*
295        -rm -f config.status
296        -rm -rf autom4te.cache
297
298#========================================================================
299# Install binary object libraries.  On Windows this includes both .dll and
300# .lib files.  Because the .lib files are not explicitly listed anywhere,
301# we need to deduce their existence from the .dll file of the same name.
302# Additionally, the .dll files go into the bin directory, but the .lib
303# files go into the lib directory.  On Unix platforms, all library files
304# go into the lib directory.  In addition, this will generate the pkgIndex.tcl
305# file in the install location (assuming it can find a usable tclsh8.2 shell)
306#
307# You should not have to modify this target.
308#========================================================================
309
310install-lib-binaries: installdirs
311        @list='$(lib_BINARIES)'; for p in $$list; do \
312          if test -f $$p; then \
313            ext=`echo $$p|sed -e "s/.*\.//"`; \
314            if test "x$$ext" = "xdll"; then \
315                echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; \
316                $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; \
317                lib=`basename $$p|sed -e 's/.[^.]*$$//'`.lib; \
318                if test -f $$lib; then \
319                    echo " $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib"; \
320                    $(INSTALL_DATA) $$lib $(DESTDIR)$(libdir)/$$lib; \
321                fi; \
322            else \
323                echo " $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p"; \
324                $(INSTALL_DATA) $$p $(DESTDIR)$(libdir)/$$p; \
325            fi; \
326          else :; fi; \
327        done
328        @list='$(lib_BINARIES)'; for p in $$list; do \
329          if test -f $$p; then \
330            echo " $(RANLIB) $(DESTDIR)$(bindir)/$$p"; \
331            $(RANLIB) $(DESTDIR)$(bindir)/$$p; \
332          else :; fi; \
333        done
334        $(mkinstalldirs) $(pkglibdir)/scripts
335        @for i in $(srcdir)/scripts/*.tcl; do \
336            echo "Installing $$i" ; \
337            $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/scripts ; \
338        done;
339        $(TCLSH_PROG) $(srcdir)/cf/mkindex.tcl $(DESTDIR)$(pkglibdir)/scripts
340        $(mkinstalldirs) $(pkglibdir)/scripts/images
341        @for i in $(srcdir)/scripts/images/*.gif; do \
342            echo "Installing $$i" ; \
343            $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/scripts/images ; \
344        done;
345        $(INSTALL_DATA) pkgIndex.tcl $(DESTDIR)$(pkglibdir)/pkgIndex.tcl
346        $(INSTALL_DATA) init.tcl $(DESTDIR)$(pkglibdir)/init.tcl
347        $(mkinstalldirs) $(pkglibdir)/filexfer
348        @for i in $(srcdir)/filexfer/filexfer.jar \
349              $(srcdir)/filexfer/*.class \
350              $(srcdir)/filexfer/upload.html; do \
351            echo "Installing $$i" ; \
352            $(INSTALL_DATA) $$i $(DESTDIR)$(pkglibdir)/filexfer ; \
353        done;
354
355#========================================================================
356# Install binary executables (e.g. .exe files)
357#
358# You should not have to modify this target.
359#========================================================================
360
361install-bin-binaries: installdirs
362        @list='$(bin_BINARIES)'; for p in $$list; do \
363          if test -f $$p; then \
364            echo " $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p"; \
365            $(INSTALL_DATA) $$p $(DESTDIR)$(bindir)/$$p; \
366          else :; fi; \
367        done
368
369.SUFFIXES: .c .o .obj
370
371Makefile: $(srcdir)/Makefile.in  $(top_builddir)/config.status
372        cd $(top_builddir) \
373          && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
374
375config.status: $(srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
376        $(SHELL) ./config.status --recheck
377$(srcdir)/configure: $(srcdir)/configure.in $(ACLOCAL_M4) $(CONFIGURE_DEPENDENCIES)
378        cd $(srcdir) && $(AUTOCONF)
379
380
381uninstall-binaries:
382        @$(NORMAL_UNINSTALL)
383        list='$(BINARIES)'; for p in $$list; do \
384          rm -f $(DESTDIR)$(libdir)/$$p; \
385        done
386
387installdirs:
388        $(mkinstalldirs)  $(DESTDIR)$(libdir)
389        $(mkinstalldirs)  $(DESTDIR)$(bindir)
390        $(mkinstalldirs)  $(DESTDIR)$(pkglibdir)
391
392.PHONY: all binaries clean depend distclean doc install installdirs \
393libraries test
394
395# Tell versions [3.59,3.63) of GNU make to not export all variables.
396# Otherwise a system limit (for SysV at least) may be exceeded.
397.NOEXPORT:
Note: See TracBrowser for help on using the repository browser.