72 lines
1.7 KiB
Makefile
72 lines
1.7 KiB
Makefile
bin_PROGRAMS = ior
|
|
if USE_CAPS
|
|
bin_PROGRAMS += IOR
|
|
endif
|
|
|
|
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 the appropriate -I and -L dirs. Maybe we can
|
|
# get them 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
|
|
# TBD: modulefiles don't add PLFS_VER to env, but you can find it embedded in
|
|
# $PLFS_HOME. configure.ac should extract this for us. Then we should
|
|
# add -D... to ior_CPPFLAGS, here. Then aiori-PLFS.c can conditionalize
|
|
# compilation of calls that vary according to PLFS version.
|
|
ior_SOURCES += aiori-PLFS.c
|
|
ior_LDADD += -lplfs
|
|
endif
|
|
|
|
if USE_POSIX_AIORI
|
|
ior_SOURCES += aiori-POSIX.c
|
|
endif
|
|
|
|
|
|
if USE_S3_AIORI
|
|
# TBD: Find the aws4c and libxml installations programmatically
|
|
AWS4C = /users/jti/projects/ecs_hobo/tools/aws4c-0.5
|
|
ior_SOURCES += aiori-S3.c
|
|
ior_CPPFLAGS += -I/usr/include/libxml2
|
|
ior_CPPFLAGS += -I$(AWS4C)
|
|
ior_LDFLAGS += -L$(AWS4C)
|
|
ior_LDADD += -lcurl
|
|
ior_LDADD += -lxml2
|
|
ior_LDADD += -laws4c
|
|
ior_LDADD += -laws4c_extra
|
|
endif
|
|
|
|
|
|
IOR_SOURCES = $(ior_SOURCES)
|
|
IOR_LDADD = $(ior_LDADD)
|
|
IOT_CPPFLAGS = $(ior_CPPFLAGS)
|
|
|