Makefile.am 1.37 KB
Newer Older
gsell's avatar
gsell committed
1 2 3 4 5 6 7 8 9
#
# Copyright (c) 2006-2015, The Regents of the University of California,
# through Lawrence Berkeley National Laboratory (subject to receipt of any
# required approvals from the U.S. Dept. of Energy) and the Paul Scherrer
# Institut (Switzerland).  All rights reserved.!
#
# License: see file COPYING in top level of source distribution.
#

gsell's avatar
gsell committed
10
AM_CPPFLAGS += -I${abs_top_srcdir}/src/include
gsell's avatar
gsell committed
11
AM_CPPFLAGS += -I${abs_top_srcdir}/examples/include
12
FFLAGS += -cpp $(AM_CPPFLAGS)
gsell's avatar
gsell committed
13
AM_LDFLAGS += -L${abs_top_builddir}/src/h5core/.libs
14 15 16 17 18

LDADD = 

if ENABLE_FORTRAN
LDADD += -lH5hutF
19
AM_LDFLAGS += -L${abs_top_builddir}/src/Fortran/.libs
20 21
endif

gsell's avatar
gsell committed
22 23 24 25
if ENABLE_DEBUG
AM_LDFLAGS += -static
endif

26 27 28 29
LDADD += -lH5hut

noinst_PROGRAMS = 

30
if ENABLE_EXAMPLES
31
if ENABLE_C
32 33 34 35 36 37 38 39
noinst_PROGRAMS +=		\
	attach_file		\
	openclose		\
	query			\
	read_file_attribs	\
	read_step_attribs	\
	write_file_attribs	\
	write_step_attribs
40 41 42
endif

if ENABLE_FORTRAN
43 44 45 46 47 48 49 50 51 52 53 54 55 56
noinst_PROGRAMS +=		\
	openclosef		\
	queryf			\
	read_file_attribsf	\
	read_step_attribsf	\
	write_file_attribsf 	\
	write_step_attribsf

openclosef_SOURCES = openclosef.f90
queryf_SOURCES = queryf.f90
read_file_attribsf_SOURCES = read_file_attribsf.f90
read_step_attribsf_SOURCES = read_step_attribsf.f90
write_file_attribsf_SOURCES = write_file_attribsf.f90
write_step_attribsf_SOURCES = write_step_attribsf.f90
57
endif
58
endif
gsell's avatar
gsell committed
59 60

all: ${noinst_PROGRAMS}
61

gsell's avatar
gsell committed
62
.f90.o:
63
	$(FC)  $(FFLAGS) -c $<