~ubuntu-branches/ubuntu/intrepid/plplot/intrepid

« back to all changes in this revision

Viewing changes to bindings/f95/Makefile.am

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2006-11-04 10:19:34 UTC
  • mfrom: (2.1.8 edgy)
  • Revision ID: james.westby@ubuntu.com-20061104101934-mlirvdg4gpwi6i5q
Tags: 5.6.1-10
* Orphaning the package
* debian/control: Changed the maintainer to the Debian QA Group

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# bindings/f95/Makefile.am for PLplot
 
2
###
 
3
### Process this file with automake to produce Makefile.in
 
4
###
 
5
# Copyright (C) 2002, 2003, 2004  Rafael Laboissiere
 
6
# Copyright (C) 2002, 2004  Alan W. Irwin
 
7
#
 
8
# This file is part of PLplot.
 
9
#
 
10
# PLplot is free software; you can redistribute it and/or modify it
 
11
# under the terms of the GNU Library General Public License as published by
 
12
# the Free Software Foundation; version 2 of the License.
 
13
#
 
14
# PLplot is distributed in the hope that it will be useful, but WITHOUT
 
15
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 
16
# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Library General Public
 
17
# License for more details.
 
18
#
 
19
# You should have received a copy of the GNU Library General Public License
 
20
# along with the file PLplot; if not, write to the Free Software Foundation, Inc.,
 
21
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 
22
 
 
23
libplplot = $(top_builddir)/src/libplplot$(LIB_TAG).la
 
24
 
 
25
if enable_f95
 
26
# Location to install fortran 95  "module" files (which allows users of
 
27
# fortran libraries to access library-define modules with the "use" statement).
 
28
# This location picked using fairly generic advice from the LFHS mailing list.
 
29
plplotmoduledir = $(libdir)/fortran/modules/plplot
 
30
 
 
31
# order is important here since libplplotf95c@LIB_TAG@.la must be
 
32
# created first (since libplplotf95@LIB_TAG@.la depends upon it).
 
33
lib_LTLIBRARIES = libplplotf95c@LIB_TAG@.la libplplotf95@LIB_TAG@.la
 
34
 
 
35
plplotmodule_DATA = \
 
36
        plplot.mod \
 
37
        plplotp.mod \
 
38
        plplot_flt.mod
 
39
 
 
40
endif
 
41
 
 
42
AM_CPPFLAGS = -I$(top_srcdir)/include $(INCLTDL)
 
43
# -I. flag needed so that for separate build tree the fortran compiler
 
44
# can find the plflt.inc that is generated in the build tree.
 
45
AM_FCFLAGS = -I$(srcdir) -I.
 
46
 
 
47
version = -version-info $(F95_SOVERSION)
 
48
 
 
49
# Keep Fortran and C libraries completely separate so libplplot will know how
 
50
# to link them without relying on poorly known (for most platforms)
 
51
# FLIBS information detailing how to combine C and fortran source in the
 
52
# same library.
 
53
 
 
54
fortran_sources = \
 
55
        strutil.f90 \
 
56
        configurable.f90 \
 
57
        sfstubsf95.f90 \
 
58
        sfstubs.h
 
59
 
 
60
generated_fortran_sources = plflt.inc
 
61
 
 
62
c_sources = \
 
63
        plstubs.h \
 
64
        sc3d.c \
 
65
        sccont.c \
 
66
        scstubs.c
 
67
 
 
68
# This creates the fortran source part of the fortran interface to libplplot.
 
69
# It wraps calls to libplplotf95c@LIB_TAG@.la
 
70
libplplotf95@LIB_TAG@_la_SOURCES = $(fortran_sources)
 
71
nodist_libplplotf95@LIB_TAG@_la_SOURCES = $(generated_fortran_sources)
 
72
libplplotf95@LIB_TAG@_la_LDFLAGS  = $(version) $(RPATH) -no-undefined libplplotf95c@LIB_TAG@.la
 
73
 
 
74
# This creates the C source part of the fortran interface to libplplot.
 
75
# libplplotf95@LIB_TAG@.la wraps libplplotf95c@LIB_TAG@.la which wraps
 
76
# libplplot.  Thus, these two libraries together provide
 
77
# a fortran wrapper for the "common" API part of libplplot.
 
78
libplplotf95c@LIB_TAG@_la_SOURCES  = $(c_sources)
 
79
libplplotf95c@LIB_TAG@_la_LDFLAGS  = $(version) $(RPATH) -no-undefined $(libplplot)
 
80
 
 
81
# Must be explicit here with dependencies.
 
82
sfstubsf95.lo: plflt.inc sfstubs.f90 sfstubs.h
 
83
 
 
84
EXTRA_DIST = readme_f95.txt sfstubs.f90
 
85
 
 
86
BUILT_SOURCES = $(generated_fortran_sources)
 
87
CLEANFILES = $(generated_fortran_sources) $(plplotmodule_DATA)
 
88
 
 
89
noinst_PROGRAMS = plflt
 
90
plflt_SOURCES = plflt.c
 
91
 
 
92
plflt.inc: plflt$(EXEEXT)
 
93
        ./plflt$(EXEEXT)