Commit 0f268611 authored by Lorenz Hüdepohl's avatar Lorenz Hüdepohl
Browse files

Support different Fortran compilers

The resulting package is called ftimings-$(FTIMINGS_API_VERSION)-$(FC)
parent fc4cea7e
......@@ -25,6 +25,6 @@ ltmain.sh
m4/
missing
stamp-h1
ftimings-*.pc
ftimings_test
ftimings-*-*.pc
ftimings_*_test
ftimings.mod
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
AM_CFLAGS = -DPACKAGE_FILESDIR=\"$(filesdir)\" \
-O2 --pedantic-error -ansi -Wall --std=gnu99 \
$(GSL_CFLAGS) $(CFLAG_VISIBILITY)
AM_CFLAGS = @AM_CFLAGS@
AM_LDFLAGS = -L$(libdir) -Wl,-rpath -Wl,$(libdir) @AM_LDFLAGS@
# libraries
lib_LTLIBRARIES = libftimings-@FTIMINGS_API_VERSION@.la
lib_LTLIBRARIES = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
# libftimings
libftimings_@FTIMINGS_API_VERSION@_la_SOURCES = \
libftimings_@FTIMINGS_API_VERSION@_@FC@_la_SOURCES = \
ftimings/time.c \
ftimings/ftimings.f90
libftimings_@FTIMINGS_API_VERSION@_la_LDFLAGS = -version-info $(FTIMINGS_SO_VERSION)
libftimings_@FTIMINGS_API_VERSION@_@FC@_la_LDFLAGS = -version-info $(FTIMINGS_SO_VERSION)
ftimings_includedir = $(includedir)/ftimings-$(FTIMINGS_API_VERSION)
ftimings_includedir = $(includedir)/ftimings-$(FTIMINGS_API_VERSION)-$(FC)
nobase_ftimings_include_HEADERS = ftimings.mod
ftimings_libincludedir = $(libdir)/ftimings-$(FTIMINGS_API_VERSION)/include
ftimings_libincludedir = $(libdir)/ftimings-$(FTIMINGS_API_VERSION)-$(FC)/include
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = ftimings-$(FTIMINGS_API_VERSION).pc
pkgconfig_DATA = ftimings-$(FTIMINGS_API_VERSION)-$(FC).pc
# programs
bin_PROGRAMS = ftimings_test
bin_PROGRAMS = ftimings_@FC@_test
# test
ftimings_test_SOURCES = test/test_timings.F90
ftimings_test_LDADD = libftimings-@FTIMINGS_API_VERSION@.la
ftimings_@FC@_test_SOURCES = test/test_timings.F90
ftimings_@FC@_test_LDADD = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
# other files to distribute
filesdir = $(datadir)/@PACKAGE@-@FC@/examples
files_DATA = test/test_timings.F90
AC_INIT([libftimings], [0.1])
AC_INIT([ftimings], [0.1])
AC_PREREQ([2.59])
AC_CONFIG_MACRO_DIR([m4])
......@@ -18,8 +18,10 @@ PKG_PROG_PKG_CONFIG
AC_SUBST([FTIMINGS_SO_VERSION], [0:1:0])
AC_SUBST([FTIMINGS_API_VERSION], [0.1])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_LDFLAGS])
AC_CONFIG_FILES([Makefile
ftimings-${FTIMINGS_API_VERSION}.pc:ftimings.pc.in
ftimings-${FTIMINGS_API_VERSION}-${FC}.pc:ftimings.pc.in
])
AC_OUTPUT
......@@ -7,5 +7,5 @@ Name: @PACKAGE_NAME@
Description: FTIMINGS
Version: @PACKAGE_VERSION@
URL: @PACKAGE_URL@
Libs: -L${libdir} -lftimings-@FTIMINGS_API_VERSION@
fcflags= -I${includedir}/ftimings-@FTIMINGS_API_VERSION@
Libs: -L${libdir} -lftimings-@FTIMINGS_API_VERSION@-@FC@
fcflags= -I${includedir}/ftimings-@FTIMINGS_API_VERSION@-@FC@
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment