mdtest/src/Makefile.am

46 lines
1015 B
Makefile
Raw Normal View History

2011-10-27 21:46:40 +04:00
bin_PROGRAMS = ior
if USE_CAPS
bin_PROGRAMS += IOR
endif
2011-10-27 21:46:40 +04:00
ior_SOURCES =
ior_CPPFLAGS =
ior_LDFLAGS =
ior_LDADD =
ior_SOURCES += ior.c utilities.c parse_options.c
ior_SOURCES += ior.h utilities.h parse_options.h aiori.h iordef.h
if USE_HDFS_AIORI
# TBD: figure out how to find this from the corresponding bin/ dir in $PATH
# or pick an environment var to use (and set it in modulefiles)
# or provide a config-flag, to set a variable we use here
ior_SOURCES += aiori-HDFS.c
ior_CPPFLAGS += -I/opt/hadoop-2.2.0/include
ior_LDFLAGS += -L/opt/hadoop-2.2.0/lib/native
ior_LDADD += -lhdfs
endif
if USE_HDF5_AIORI
ior_SOURCES += aiori-HDF5.c
ior_LDADD += -lhdf5 -lz
endif
if USE_MPIIO_AIORI
ior_SOURCES += aiori-MPIIO.c
endif
if USE_NCMPI_AIORI
ior_SOURCES += aiori-NCMPI.c
ior_LDADD += -lpnetcdf
endif
if USE_PLFS_AIORI
ior_SOURCES += aiori-PLFS.c
endif
if USE_POSIX_AIORI
ior_SOURCES += aiori-POSIX.c
endif
IOR_SOURCES = $(ior_SOURCES)
IOR_LDADD = $(ior_LDADD)
IOT_CPPFLAGS = $(ior_CPPFLAGS)