1999-07-20 03:56:57 +08:00
|
|
|
## hdf5 Parallel Library Test Makefile(.in)
|
|
|
|
##
|
|
|
|
## Copyright (C) 1998 National Center for Supercomputing Applications
|
|
|
|
## All rights reserved
|
|
|
|
##
|
|
|
|
##
|
1999-03-04 07:17:48 +08:00
|
|
|
top_srcdir=@top_srcdir@
|
1999-03-20 04:09:50 +08:00
|
|
|
top_builddir=..
|
|
|
|
srcdir=@srcdir@
|
|
|
|
@COMMENCE@
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Add the include directory to the C preprocessor flags the the hdf5 library
|
|
|
|
## to the library list.
|
2000-01-26 12:33:38 +08:00
|
|
|
CPPFLAGS=-I. -I$(srcdir) -I../src -I$(top_srcdir)/src -I$(top_srcdir)/test @CPPFLAGS@
|
1999-03-18 21:42:52 +08:00
|
|
|
LIBHDF5=../src/libhdf5.la
|
1999-12-17 22:54:30 +08:00
|
|
|
LIBH5TEST=../test/libh5test.la
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## These tests are parallel
|
1998-11-13 23:06:06 +08:00
|
|
|
RUNTEST=$(RUNPARALLEL)
|
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## These are our main targets
|
2000-10-20 14:19:21 +08:00
|
|
|
TEST_PROGS=t_mpi testphdf5
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Temporary files
|
1998-11-13 23:06:06 +08:00
|
|
|
MOSTLYCLEAN=ParaEg[123].h5f
|
2001-01-19 07:30:23 +08:00
|
|
|
DISTCLEAN=go Makefile
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## Test source files
|
2000-10-20 14:19:21 +08:00
|
|
|
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)
|
1999-04-26 22:43:53 +08:00
|
|
|
TEST_OBJ=$(TEST_SRC:.c=.lo)
|
1999-07-01 06:04:22 +08:00
|
|
|
TEST_HDR=testphdf5.h
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-20 03:56:57 +08:00
|
|
|
## How to build the tests... They all depend on the hdf5 library
|
1999-12-17 22:54:30 +08:00
|
|
|
$(TEST_PROGS): $(LIBHDF5) $(LIBH5TEST)
|
1998-11-13 23:06:06 +08:00
|
|
|
|
1999-07-01 06:04:22 +08:00
|
|
|
$(TEST_OBJ): $(TEST_HDR)
|
2000-10-20 14:19:21 +08:00
|
|
|
|
|
|
|
t_mpi: t_mpi.lo
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ t_mpi.lo $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
|
|
|
testphdf5: $(TEST_PHDF5_OBJ)
|
|
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ $(TEST_PHDF5_OBJ) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
|
1998-11-13 23:06:06 +08:00
|
|
|
@CONCLUDE@
|