2005-02-01 11:20:11 +08:00
|
|
|
#
|
2007-02-08 06:28:58 +08:00
|
|
|
# Copyright by The HDF Group.
|
2005-10-12 00:55:29 +08:00
|
|
|
# Copyright by the Board of Trustees of the University of Illinois.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# This file is part of HDF5. The full HDF5 copyright notice, including
|
|
|
|
# terms governing use, modification, and redistribution, is contained in
|
|
|
|
# the files COPYING and Copyright.html. COPYING can be found at the root
|
|
|
|
# of the source code distribution tree; Copyright.html can be found at the
|
|
|
|
# root level of an installed copy of the electronic HDF5 document set and
|
|
|
|
# is linked from the top-level documents page. It can also be found at
|
2007-02-08 06:28:58 +08:00
|
|
|
# http://hdfgroup.org/HDF5/doc/Copyright.html. If you do not have
|
|
|
|
# access to either file, you may request a copy from help@hdfgroup.org.
|
2005-02-01 11:20:11 +08:00
|
|
|
#
|
|
|
|
##
|
|
|
|
## Makefile.am
|
|
|
|
## Run automake to generate a Makefile.in from this file.
|
|
|
|
##
|
|
|
|
#
|
|
|
|
# HDF5 High-Level Fortran Makefile(.in)
|
|
|
|
|
|
|
|
include $(top_srcdir)/config/commence.am
|
|
|
|
|
2005-06-24 13:00:01 +08:00
|
|
|
AM_CPPFLAGS=-I$(top_srcdir)/src -I$(top_builddir)/src -I$(top_srcdir)/hl/src
|
[svn-r10158] Purpose:
Automake version upgrade
Description:
Upgraded automake version from 1.6.2 to 1.9.5.
Changed bin/reconfigure script to use automake 1.9.5.
Changed configure.in and Makefiles to use new FCFLAGS and FC variables
instead of FFLAGS and F9X.
Automake and configure should now do the lion's share of the work
supporting Fortran 9X; macros in acsite.m4 are now mostly unused (will
be cleaned later).
Altered how configure handles pmake; now root-level Makefile.in is
processed by bin/reconfigure to have a .MAKEFLAGS target, since
automake no longer allows us to define unused variables.
Configure now always checks for C++ compiler even if it is not
used, since automake thinks this is the Right Thing To Do and
will break otherwise.
Platforms tested:
Sol, copper, heping, mir, sleipnir, eirene, pommier, kelgia, modi4.
2005-03-08 01:57:27 +08:00
|
|
|
AM_FCFLAGS=-I$(top_builddir)/fortran/src -I$(top_builddir)/hl/fortran/src $(F9XMODFLAG)$(top_builddir)/fortran/src $(F9XMODFLAG)$(top_builddir)/hl/fortran/src
|
2005-02-01 11:20:11 +08:00
|
|
|
|
2005-09-16 05:30:06 +08:00
|
|
|
# Some Fortran compilers can't build shared libraries, so sometimes we
|
|
|
|
# need to make sure the Fortran programs link against the static version
|
|
|
|
# of the HDF5 library. We do this by passing the -static flag to the linker.
|
|
|
|
if FORTRAN_SHARED_CONDITIONAL
|
|
|
|
else
|
|
|
|
AM_LDFLAGS=-static
|
|
|
|
endif
|
|
|
|
|
2005-02-01 11:20:11 +08:00
|
|
|
# Our main target, the test programs
|
|
|
|
TEST_PROG=tstlite tstimage tsttable
|
|
|
|
check_PROGRAMS=$(TEST_PROG)
|
|
|
|
|
2005-06-24 13:00:01 +08:00
|
|
|
LDADD= $(LIBH5F_HL) $(LIBH5F) $(LIBH5_HL) $(LIBHDF5)
|
2005-02-01 11:20:11 +08:00
|
|
|
|
|
|
|
# Source files for the programs
|
|
|
|
tstlite_SOURCES=tstlite.f90
|
|
|
|
tstimage_SOURCES=tstimage.f90
|
|
|
|
tsttable_SOURCES=tsttable.f90
|
|
|
|
|
2005-02-11 05:24:22 +08:00
|
|
|
# Temporary files.
|
2005-08-03 01:59:03 +08:00
|
|
|
CHECK_CLEANFILES+=dsetf[1-4].h5 f1img.h5 f1tab.h5
|
2005-02-11 05:24:22 +08:00
|
|
|
|
2005-02-01 11:20:11 +08:00
|
|
|
include $(top_srcdir)/config/conclude.am
|