119 lines
2.6 KiB
Makefile
Executable File
119 lines
2.6 KiB
Makefile
Executable File
SUBDIRS = .
|
|
|
|
bin_PROGRAMS = ior mdtest
|
|
if USE_CAPS
|
|
bin_PROGRAMS += IOR MDTEST
|
|
endif
|
|
|
|
noinst_HEADERS = ior.h utilities.h parse_options.h aiori.h iordef.h ior-internal.h option.h
|
|
|
|
lib_LIBRARIES = libaiori.a
|
|
libaiori_a_SOURCES = ior.c mdtest.c utilities.c parse_options.c ior-output.c option.c
|
|
|
|
extraSOURCES = aiori.c aiori-DUMMY.c
|
|
extraLDADD =
|
|
extraLDFLAGS =
|
|
extraCPPFLAGS =
|
|
|
|
ior_SOURCES = ior-main.c
|
|
ior_LDFLAGS =
|
|
ior_LDADD = libaiori.a
|
|
ior_CPPFLAGS =
|
|
|
|
mdtest_SOURCES = mdtest-main.c
|
|
mdtest_LDFLAGS =
|
|
mdtest_LDADD = libaiori.a
|
|
mdtest_CPPFLAGS =
|
|
|
|
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.
|
|
extraSOURCES += aiori-HDFS.c
|
|
extraCPPFLAGS += -I/opt/hadoop-2.2.0/include
|
|
extraLDFLAGS += -L/opt/hadoop-2.2.0/lib/native
|
|
extraLDADD += -lhdfs
|
|
endif
|
|
|
|
if USE_HDF5_AIORI
|
|
extraSOURCES += aiori-HDF5.c
|
|
extraLDADD += -lhdf5 -lz
|
|
endif
|
|
|
|
if USE_IME_AIORI
|
|
extraSOURCES += aiori-IME.c
|
|
extraCPPFLAGS += -I/opt/ddn/ime/include
|
|
extraLDFLAGS += -L/opt/ddn/ime/lib
|
|
extraLDADD += -lim_client
|
|
endif
|
|
|
|
if USE_MPIIO_AIORI
|
|
extraSOURCES += aiori-MPIIO.c
|
|
endif
|
|
|
|
if USE_NCMPI_AIORI
|
|
extraSOURCES += aiori-NCMPI.c
|
|
extraLDADD += -lpnetcdf
|
|
endif
|
|
|
|
if USE_MMAP_AIORI
|
|
extraSOURCES += aiori-MMAP.c
|
|
endif
|
|
|
|
if USE_POSIX_AIORI
|
|
extraSOURCES += aiori-POSIX.c
|
|
endif
|
|
|
|
if USE_RADOS_AIORI
|
|
extraSOURCES += aiori-RADOS.c
|
|
extraLDADD += -lrados
|
|
endif
|
|
|
|
if USE_DAOS_AIORI
|
|
extraSOURCES += aiori-DAOS.c aiori-DFS.c list.h
|
|
endif
|
|
|
|
if USE_S3_AIORI
|
|
extraSOURCES += aiori-S3.c
|
|
if AWS4C_DIR
|
|
extraCPPFLAGS += $(AWS4C_CPPFLAGS)
|
|
extraLDFLAGS += $(AWS4C_LDFLAGS)
|
|
endif
|
|
extraLDADD += -lcurl
|
|
extraLDADD += -lxml2
|
|
extraLDADD += -laws4c
|
|
extraLDADD += -laws4c_extra
|
|
endif
|
|
|
|
ior_SOURCES += $(extraSOURCES)
|
|
ior_LDFLAGS += $(extraLDFLAGS)
|
|
ior_LDADD += $(extraLDADD)
|
|
ior_CPPFLAGS += $(extraCPPFLAGS)
|
|
|
|
mdtest_SOURCES += $(extraSOURCES)
|
|
mdtest_LDFLAGS += $(extraLDFLAGS)
|
|
mdtest_LDADD += $(extraLDADD)
|
|
mdtest_CPPFLAGS += $(extraCPPFLAGS)
|
|
|
|
IOR_SOURCES = $(ior_SOURCES)
|
|
IOR_LDFLAGS = $(ior_LDFLAGS)
|
|
IOR_LDADD = $(ior_LDADD)
|
|
IOR_CPPFLAGS = $(ior_CPPFLAGS)
|
|
|
|
MDTEST_SOURCES = $(mdtest_SOURCES)
|
|
MDTEST_LDFLAGS = $(mdtest_LDFLAGS)
|
|
MDTEST_LDADD = $(mdtest_LDADD)
|
|
MDTEST_CPPFLAGS = $(mdtest_CPPFLAGS)
|
|
|
|
libaiori_a_SOURCES += $(extraSOURCES)
|
|
libaiori_a_CPPFLAGS = $(extraCPPFLAGS)
|
|
|
|
|
|
TESTS = testlib
|
|
bin_PROGRAMS += testlib
|
|
|
|
testlib_SOURCES = ./test/lib.c
|
|
testlib_LDFLAGS = $(extraLDFLAGS)
|
|
testlib_LDADD = libaiori.a $(extraLDADD)
|