Makefile.am 1.5 KB
Newer Older
1

2 3
if ENABLE_FORTRAN
AM_CPPFLAGS += -I$(top_srcdir)/src/include
4

gsell's avatar
gsell committed
5 6 7
F90_FILES =						\
	$(top_srcdir)/src/include/H5hut.f90		\
	$(top_srcdir)/src/include/H5_const.f90		\
gsell's avatar
gsell committed
8
	$(top_srcdir)/src/include/H5_file.f90		\
gsell's avatar
gsell committed
9
	$(top_srcdir)/src/include/H5_model.f90		\
gsell's avatar
gsell committed
10 11
	$(top_srcdir)/src/include/H5_file_attribs.f90	\
	$(top_srcdir)/src/include/H5_step_attribs.f90	\
gsell's avatar
gsell committed
12
	$(top_srcdir)/src/include/H5_debug.f90		\
13
	$(top_srcdir)/src/include/H5_err.f90		\
gsell's avatar
gsell committed
14
	$(top_srcdir)/src/include/H5_log.f90		\
15
	$(top_srcdir)/src/include/H5Part_model.f90	\
gsell's avatar
gsell committed
16
	$(top_srcdir)/src/include/H5Part_io.f90		\
17
	$(top_srcdir)/src/include/H5Block_model.f90	\
gsell's avatar
gsell committed
18 19
	$(top_srcdir)/src/include/H5Block_attribs.f90	\
	$(top_srcdir)/src/include/H5Block_io.f90
20 21 22

EXTRA_HEADERS =

23
EXTRA_DIST =			\
gsell's avatar
gsell committed
24 25
	$(F90_FILES)		\
	h5_private.h
26

27
nodist_include_HEADERS = 	\
gsell's avatar
gsell committed
28
	$(top_srcdir)/src/include/H5hut.f
29

30
lib_LTLIBRARIES = libH5hutF.la
31 32

include_HEADERS =		\
gsell's avatar
gsell committed
33 34
	$(F90_FILES)		\
	$(top_srcdir)/src/include/H5hut.f
35 36 37 38

libH5hutF_la_SOURCES =		\
	H5.c			\
	H5_attribs.c		\
gsell's avatar
gsell committed
39
	H5_model.c		\
40
	H5Part_model.c		\
41
	H5Part_io.c		\
42
	H5Block_model.c		\
43 44 45
	H5Block_attribs.c	\
	H5Block_io.c

46
libH5hutF_la_DEPENDENCIES =	\
gsell's avatar
gsell committed
47
	$(top_srcdir)/src/include/H5hut.f
48 49 50

libH5hutF_la_LDFLAGS = -version-info 2:0:0 -rpath '$(libdir)'

gsell's avatar
gsell committed
51 52 53 54
$(top_srcdir)/src/include/H5hut.f: $(F90_FILES)
	awk '/INTEGER\*8 :: /{print "       " $$0}' $^ >$@
	awk '/PARAMETER /{print "       " $$0}' $^ >> $@
	awk '/INTEGER\*8 FUNCTION/{print "       " $$1 " " $$3}' $^ >>$@
55

gsell's avatar
gsell committed
56
all-local: $(top_srcdir)/src/include/H5hut.f
gsell's avatar
gsell committed
57

58
endif
59 60 61 62 63

clean: clean-am

clean-local:
	$(RM) -f *~