hdf5/testpar/Makefile.in
Albert Cheng 4b9e5af2e7 [svn-r3882] Purpose:
Feature
Description:
    Show simple performance of the MPIO and the HDF5-IO.
    The mpi-perf.c is contributed by Robert Ross of ANL.
    The perf.c is derived from mpi-perf.c
Platforms tested:
    Modi4 (O2K, parallel)
2001-05-01 16:20:50 -05:00

53 lines
1.4 KiB
Makefile

## hdf5 Parallel Library Test Makefile(.in)
##
## Copyright (C) 1998 National Center for Supercomputing Applications
## All rights reserved
##
##
top_srcdir=@top_srcdir@
top_builddir=..
srcdir=@srcdir@
@COMMENCE@
## Add the include directory to the C preprocessor flags the the hdf5 library
## to the library list.
CPPFLAGS=-I. -I$(srcdir) -I../src -I$(top_srcdir)/src -I$(top_srcdir)/test @CPPFLAGS@
LIBHDF5=../src/libhdf5.la
LIBH5TEST=../test/libh5test.la
## These tests are parallel
RUNTEST=$(RUNPARALLEL)
## These are our main targets
TEST_PROGS=t_mpi testphdf5
## Temporary files
MOSTLYCLEAN=ParaEg[123].h5f
DISTCLEAN=go Makefile
## Test source files
TEST_PHDF5_SRC=testphdf5.c t_dset.c t_file.c t_mdset.c
TEST_PHDF5_OBJ=$(TEST_PHDF5_SRC:.c=.lo)
TEST_SRC=t_mpi.c $(TEST_PHDF5_SRC)
TEST_OBJ=$(TEST_SRC:.c=.lo)
TEST_HDR=testphdf5.h
## How to build the tests... They all depend on the hdf5 library
$(TEST_PROGS): $(LIBHDF5) $(LIBH5TEST)
$(TEST_OBJ): $(TEST_HDR)
t_mpi: t_mpi.lo
@$(LT_LINK_EXE) $(CFLAGS) -o $@ t_mpi.lo $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
mpi-perf: mpi-perf.lo
@$(LT_LINK_EXE) $(CFLAGS) -o $@ mpi-perf.lo $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
perf: perf.lo
@$(LT_LINK_EXE) $(CFLAGS) -o $@ perf.lo $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
testphdf5: $(TEST_PHDF5_OBJ)
@$(LT_LINK_EXE) $(CFLAGS) -o $@ $(TEST_PHDF5_OBJ) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
@CONCLUDE@