mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
Makefile.in: Added test/ as one of the -I directories to search for header files. Needed because <h5test.h> is used. t_file.c t_mpi.c testphdf5.c testphdf5.h: Added FILENAME to meet the assumption in h5test.h. (May use CLEANUP in the future.) Moved the prefix setting to the h5_fixname().
41 lines
1.0 KiB
Makefile
41 lines
1.0 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=testphdf5
|
|
|
|
## Temporary files
|
|
MOSTLYCLEAN=ParaEg[123].h5f
|
|
DISTCLEAN=go
|
|
|
|
## Test source files
|
|
TEST_SRC=testphdf5.c t_dset.c t_file.c t_mpi.c t_mdset.c
|
|
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)
|
|
|
|
testphdf5: $(TEST_OBJ)
|
|
@$(LT_LINK_EXE) $(CFLAGS) -o $@ $(TEST_OBJ) $(LIBH5TEST) $(LIBHDF5) $(LDFLAGS) $(LIBS)
|
|
|
|
$(TEST_OBJ): $(TEST_HDR)
|
|
@CONCLUDE@
|