1
# bindings/f95/Makefile.am for PLplot
3
### Process this file with automake to produce Makefile.in
5
# Copyright (C) 2002, 2003, 2004 Rafael Laboissiere
6
# Copyright (C) 2002, 2004 Alan W. Irwin
8
# This file is part of PLplot.
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.
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.
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
23
libplplot = $(top_builddir)/src/libplplot$(LIB_TAG).la
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
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
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.
47
version = -version-info $(F95_SOVERSION)
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
60
generated_fortran_sources = plflt.inc
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
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)
81
# Must be explicit here with dependencies.
82
sfstubsf95.lo: plflt.inc sfstubs.f90 sfstubs.h
84
EXTRA_DIST = readme_f95.txt sfstubs.f90
86
BUILT_SOURCES = $(generated_fortran_sources)
87
CLEANFILES = $(generated_fortran_sources) $(plplotmodule_DATA)
89
noinst_PROGRAMS = plflt
90
plflt_SOURCES = plflt.c
92
plflt.inc: plflt$(EXEEXT)