Makefile.am 1.09 KB
Newer Older
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
1
2
AUTOMAKE_OPTIONS = subdir-objects
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS} -I m4
3
4
5
AM_CFLAGS = @AM_CFLAGS@ $(OPENMP_CFLAGS)
AM_LDFLAGS = -L$(libdir) -Wl,-rpath -Wl,$(libdir) @AM_LDFLAGS@ $(OPENMP_CFLAGS)
AM_FCFLAGS = @AM_FCFLAGS@ $(OPENMP_FCFLAGS)
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
6
7

# libraries
8
lib_LTLIBRARIES = libftimings-@FTIMINGS_API_VERSION@-@FC@.la
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
9
10

# libftimings
11
libftimings_@FTIMINGS_API_VERSION@_@FC@_la_SOURCES = \
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
12
13
	ftimings/time.c \
	ftimings/ftimings.f90
14
libftimings_@FTIMINGS_API_VERSION@_@FC@_la_LDFLAGS = -version-info $(FTIMINGS_SO_VERSION)
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
15

16
ftimings_includedir = $(includedir)/ftimings-$(FTIMINGS_API_VERSION)-$(FC)
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
17
nobase_ftimings_include_HEADERS = ftimings.mod
18
ftimings_libincludedir = $(libdir)/ftimings-$(FTIMINGS_API_VERSION)-$(FC)/include
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
19
20

pkgconfigdir = $(libdir)/pkgconfig
21
pkgconfig_DATA = ftimings-$(FTIMINGS_API_VERSION)-$(FC).pc
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
22
23

# programs
24
bin_PROGRAMS = ftimings_@FC@_test
Lorenz Hüdepohl's avatar
Lorenz Hüdepohl committed
25
26

# test
27
28
29
30
31
32
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
33
34

include doxygen.am