Makefile.am 1.05 KB
Newer Older
1
AM_CFLAGS = $(OPENMP_CFLAGS)
2
AM_FCFLAGS = $(FC_MODINC).. $(OPENMP_FCFLAGS) $(FCFLAGS_f90) $(FCDEFS)
3
4

lib_LTLIBRARIES = libsct.la
5
6
libsct_la_LIBADD = $(LTLIBPAPI) $(LTLIBHDF5)

7
libsct_la_LDFLAGS = -version-info @LIB_CURRENT@:@LIB_REVISION@:@LIB_AGE@
8
9
10
11
12
13
header = $(srcdir)/sct_config.h \
	$(srcdir)/sct_mach.h \
	$(srcdir)/sct_collector.h \
	$(srcdir)/sct_reduce.h \
	$(srcdir)/sct_reporter.h \
	$(srcdir)/sct_mergesort.h
14

15
nodist_include_HEADERS = sct.h
16

17
18
BUILT_SOURCES = sct.h

19
20
if FORTRAN_INTERFACE
libsct_la_SOURCES = sct_collector.c sct_f2c.c sct_mach.c sct_reduce.c sct_reporter.c sct_mergesort.c sct.f90
21
nodist_include_HEADERS += sct.mod
22
23
24
25
else
libsct_la_SOURCES = sct_collector.c sct_f2c.c sct_mach.c sct_reduce.c sct_reporter.c sct_mergesort.c
endif

26
27
CLEANFILES = sct.h sct.mod

28
29
30
31
32
33
34
35
36
37
38
39
40
41
EXTRA_DIST = $(header)

# Build public header sct.h
sct.h: $(header)
if MPI
	$(top_srcdir)/util/gen_public_header.pl HAVE_MPI $(header)
else
	$(top_srcdir)/util/gen_public_header.pl N_HAVE_MPI $(header)
endif

sct.mod: sct.o

pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = pkgconfig/sct.pc