1997-08-16 00:54:08 +08:00
|
|
|
# HDF5 Library Test Makefile(.in) -*- makefile -*-
|
|
|
|
#
|
|
|
|
# Copyright (C) 1997 National Center for Supercomputing Applications.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
#
|
|
|
|
@COMMENCE@
|
|
|
|
|
|
|
|
# Add include directory to the C preprocessor flags.
|
|
|
|
CPPFLAGS=-I. -I../src @CPPFLAGS@
|
|
|
|
|
1997-12-11 06:41:56 +08:00
|
|
|
# These are our main targets. They should be listed in the order to be
|
|
|
|
# executed, generally most specific tests to least specific tests.
|
1998-06-17 03:38:26 +08:00
|
|
|
PROGS=testhdf5 gheap hyperslab istore bittests dtypes dsets cmpd_dset extend \
|
|
|
|
external shtype iopipe big links chunk
|
|
|
|
TESTS=testhdf5 gheap hyperslab istore bittests dtypes dsets cmpd_dset extend \
|
|
|
|
external shtype links
|
1998-05-22 23:05:53 +08:00
|
|
|
TIMINGS=iopipe chunk
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1998-01-28 23:41:45 +08:00
|
|
|
# Temporary files
|
1998-01-31 07:32:28 +08:00
|
|
|
MOSTLYCLEAN=cmpd_dset.h5 dataset.h5 extend.h5 istore.h5 tfile1.h5 tfile2.h5 \
|
1998-03-17 09:29:54 +08:00
|
|
|
tfile3.h5 th5s1.h5 theap.h5 tohdr.h5 tstab1.h5 tstab2.h5 \
|
1998-03-14 01:50:38 +08:00
|
|
|
extern_1.h5 extern_2.h5 extern_3.h5 extern_1.raw extern_1b.raw \
|
|
|
|
extern_2.raw extern_2b.raw extern_3.raw extern_3b.raw \
|
1998-04-03 11:29:38 +08:00
|
|
|
extern_4.raw extern_4b.raw iopipe.raw iopipe.h5 gheap0.h5 \
|
1998-04-04 05:11:05 +08:00
|
|
|
gheap1.h5 gheap2.h5 gheap3.h5 gheap4.h5 shtype0.h5 shtype1.h5 \
|
1998-05-22 23:05:53 +08:00
|
|
|
shtype2a.h5 shtype2b.h5 shtype3.h5 links.h5 chunk.h5
|
1998-01-28 23:41:45 +08:00
|
|
|
|
1997-10-21 07:14:35 +08:00
|
|
|
# Source and object files for programs... The PROG_SRC list contains all the
|
|
|
|
# source files and is used for things like dependencies, archiving, etc. The
|
|
|
|
# other source lists are for the individual tests, the files of which may
|
|
|
|
# overlap with other tests.
|
1998-04-24 06:24:52 +08:00
|
|
|
PROG_SRC=testhdf5.c tattr.c tfile.c theap.c tmeta.c tohdr.c tstab.c th5s.c \
|
1998-05-22 23:05:53 +08:00
|
|
|
dtypes.c hyperslab.c istore.c dsets.c cmpd_dset.c extend.c external.c \
|
1998-06-17 03:38:26 +08:00
|
|
|
iopipe.c gheap.c shtype.c big.c links.c chunk.c bittests.c
|
1997-08-16 00:54:08 +08:00
|
|
|
PROG_OBJ=$(PROG_SRC:.c=.o)
|
|
|
|
|
1998-04-24 06:24:52 +08:00
|
|
|
TESTHDF5_SRC=testhdf5.c tattr.c tfile.c theap.c tmeta.c tohdr.c tstab.c th5s.c
|
1997-10-21 07:14:35 +08:00
|
|
|
TESTHDF5_OBJ=$(TESTHDF5_SRC:.c=.o)
|
|
|
|
|
1998-04-03 11:29:38 +08:00
|
|
|
GHEAP_SRC=gheap.c
|
|
|
|
GHEAP_OBJ=$(GHEAP_SRC:.c=.o)
|
|
|
|
|
1997-12-11 06:41:56 +08:00
|
|
|
DSETS_SRC=dsets.c
|
|
|
|
DSETS_OBJ=$(DSETS_SRC:.c=.o)
|
|
|
|
|
1998-06-17 03:38:26 +08:00
|
|
|
BITTESTS_SRC=bittests.c
|
|
|
|
BITTESTS_OBJ=$(BITTESTS_SRC:.c=.o)
|
|
|
|
|
1997-12-11 06:41:56 +08:00
|
|
|
DTYPES_SRC=dtypes.c
|
|
|
|
DTYPES_OBJ=$(DTYPES_SRC:.c=.o)
|
|
|
|
|
1997-10-21 07:14:35 +08:00
|
|
|
HYPERSLAB_SRC=hyperslab.c
|
|
|
|
HYPERSLAB_OBJ=$(HYPERSLAB_SRC:.c=.o)
|
|
|
|
|
|
|
|
ISTORE_SRC=istore.c
|
|
|
|
ISTORE_OBJ=$(ISTORE_SRC:.c=.o)
|
|
|
|
|
1998-01-24 03:53:37 +08:00
|
|
|
CMPD_DSET_SRC=cmpd_dset.c
|
|
|
|
CMPD_DSET_OBJ=$(CMPD_DSET_SRC:.c=.o)
|
|
|
|
|
1998-01-31 07:32:28 +08:00
|
|
|
EXTEND_SRC=extend.c
|
|
|
|
EXTEND_OBJ=$(EXTEND_SRC:.c=.o)
|
|
|
|
|
1998-03-05 00:20:23 +08:00
|
|
|
EXTERNAL_SRC=external.c
|
|
|
|
EXTERNAL_OBJ=$(EXTERNAL_SRC:.c=.o)
|
|
|
|
|
1998-03-14 01:50:38 +08:00
|
|
|
GRPTIME_SRC=grptime.c
|
|
|
|
GRPTIME_OBJ=$(GRPTIME_SRC:.c=.o)
|
|
|
|
|
1998-04-04 05:11:05 +08:00
|
|
|
SHTYPE_SRC=shtype.c
|
|
|
|
SHTYPE_OBJ=$(SHTYPE_SRC:.c=.o)
|
|
|
|
|
1998-03-14 01:50:38 +08:00
|
|
|
IOPIPE_SRC=iopipe.c
|
|
|
|
IOPIPE_OBJ=$(IOPIPE_SRC:.c=.o)
|
|
|
|
|
[svn-r339] Changes since 19980408
----------------------
./src/H5Osdspace.c
./html/H5.format.html
In the past we were allowed to have >2GB files on a 32-bit
machine as long as no dataset within the file was larger than
4GB (or whatever sizeof(size_t) is). That's been fixed now.
All dataset size calculations are done with `hsize_t' which is
normally defined as `unsigned long long'.
./src/H5F.c
./src/H5Ffamily.c
./src/H5Fprivate.h
./src/H5P.c
./src/H5Ppublic.h
The file family member size can now be set/queried. The
default is still 64MB, but it can be set to 1GB by saying:
H5Pset_family (plist, 30, H5P_DEFAULT);
When opening an existing file family the specified
bits-per-member is ignored and the first member of the family
determines the bits-per-member, which can be retrieved with
H5Pget_family().
./acconfig.h
./configure.in
./src/H5config.h
./src/H5public.h
Added `--disable-hsizet' so that those with old GCC compilers
(<2.8.1) can still compile the code.
./src/H5.c
./src/H5private.h
Added HDfprintf() which works just like fprintf() except you
can give `H' as a size modifier for the integer conversions
and supply an `hsize_t' or `hssize_t' argument without casting
it. For instance:
hsize_t npoints = H5Sget_npoints(space);
HDfprintf(stdout,"Dataset has %Hd (%#018Hx) points\n",
npoints, npoints);
You can now give `%a' as a format to print an address, but all
formating flags are ignored and it causes the return value of
HDfprintf() to not include the characters in the address (but
who uses the return value anyway :-). Example:
H5G_t *grp;
HDfprintf(stdout, "Group object header at %a\n",
&(grp->ent.header));
Added HDstrtoll() which works exactly like [HD]strtol() except
the result is an int64.
./src/debug.c
Large addresses can now be entered from the command-line. Use
either decimal, octal (leading `0') or hexadecimal (leading
`0x') when giving the address.
./src/h5ls.c
The printf format for dataset dimensions was changed to `%Hu'
to support large datasets.
./test/big.c [NEW]
A test for big datasets on 32-bit machines. This test is not
run by default. Don't try to run it on an nfs-mounted file
system or other file system that doesn't support holes because
it creates two 32GB datasets of all zero.
1998-04-10 04:22:11 +08:00
|
|
|
BIG_SRC=big.c
|
|
|
|
BIG_OBJ=$(BIG_SRC:.c=.o)
|
|
|
|
|
1998-04-15 00:44:46 +08:00
|
|
|
LINKS_SRC=links.c
|
|
|
|
LINKS_OBJ=$(LINKS_SRC:.c=.o)
|
|
|
|
|
1998-05-22 23:05:53 +08:00
|
|
|
CHUNK_SRC=chunk.c
|
|
|
|
CHUNK_OBJ=$(CHUNK_SRC:.c=.o)
|
|
|
|
|
1997-08-16 00:54:08 +08:00
|
|
|
# Private header files (not to be installed)...
|
|
|
|
PRIVATE_HDR=testhdf5.h
|
|
|
|
|
1998-03-17 09:29:54 +08:00
|
|
|
# Additional targets
|
|
|
|
.PHONY: timings _timings
|
|
|
|
timings _timings: $(TIMINGS)
|
|
|
|
@for timing in $(TIMINGS) dummy; do \
|
|
|
|
if test $$timing != dummy; then \
|
|
|
|
echo "Running $$timing $(TEST_FLAGS)"; \
|
|
|
|
$(RUNTEST) ./$$timing $(TEST_FLAGS) || exit 1; \
|
|
|
|
fi; \
|
|
|
|
done;
|
|
|
|
|
1997-08-16 00:54:08 +08:00
|
|
|
# How to build the programs...
|
1997-10-21 07:14:35 +08:00
|
|
|
testhdf5: $(TESTHDF5_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(TESTHDF5_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-04-03 11:29:38 +08:00
|
|
|
gheap: $(GHEAP_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(GHEAP_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1997-12-11 06:41:56 +08:00
|
|
|
dsets: $(DSETS_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(DSETS_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-06-17 03:38:26 +08:00
|
|
|
bittests: $(BITTESTS_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(BITTESTS_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1997-12-11 06:41:56 +08:00
|
|
|
dtypes: $(DTYPES_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(DTYPES_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1997-10-21 07:14:35 +08:00
|
|
|
hyperslab: $(HYPERSLAB_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(HYPERSLAB_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
|
|
|
istore: $(ISTORE_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(ISTORE_OBJ) ../src/libhdf5.a $(LIBS)
|
1997-08-16 00:54:08 +08:00
|
|
|
|
1998-01-24 03:53:37 +08:00
|
|
|
cmpd_dset: $(CMPD_DSET_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(CMPD_DSET_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-01-31 07:32:28 +08:00
|
|
|
extend: $(EXTEND_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(EXTEND_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-03-05 00:20:23 +08:00
|
|
|
external: $(EXTERNAL_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(EXTERNAL_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-04-04 05:11:05 +08:00
|
|
|
shtype: $(SHTYPE_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(SHTYPE_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-03-14 01:50:38 +08:00
|
|
|
iopipe: $(IOPIPE_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(IOPIPE_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
|
|
|
grptime: $(GRPTIME_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(GRPTIME_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
[svn-r339] Changes since 19980408
----------------------
./src/H5Osdspace.c
./html/H5.format.html
In the past we were allowed to have >2GB files on a 32-bit
machine as long as no dataset within the file was larger than
4GB (or whatever sizeof(size_t) is). That's been fixed now.
All dataset size calculations are done with `hsize_t' which is
normally defined as `unsigned long long'.
./src/H5F.c
./src/H5Ffamily.c
./src/H5Fprivate.h
./src/H5P.c
./src/H5Ppublic.h
The file family member size can now be set/queried. The
default is still 64MB, but it can be set to 1GB by saying:
H5Pset_family (plist, 30, H5P_DEFAULT);
When opening an existing file family the specified
bits-per-member is ignored and the first member of the family
determines the bits-per-member, which can be retrieved with
H5Pget_family().
./acconfig.h
./configure.in
./src/H5config.h
./src/H5public.h
Added `--disable-hsizet' so that those with old GCC compilers
(<2.8.1) can still compile the code.
./src/H5.c
./src/H5private.h
Added HDfprintf() which works just like fprintf() except you
can give `H' as a size modifier for the integer conversions
and supply an `hsize_t' or `hssize_t' argument without casting
it. For instance:
hsize_t npoints = H5Sget_npoints(space);
HDfprintf(stdout,"Dataset has %Hd (%#018Hx) points\n",
npoints, npoints);
You can now give `%a' as a format to print an address, but all
formating flags are ignored and it causes the return value of
HDfprintf() to not include the characters in the address (but
who uses the return value anyway :-). Example:
H5G_t *grp;
HDfprintf(stdout, "Group object header at %a\n",
&(grp->ent.header));
Added HDstrtoll() which works exactly like [HD]strtol() except
the result is an int64.
./src/debug.c
Large addresses can now be entered from the command-line. Use
either decimal, octal (leading `0') or hexadecimal (leading
`0x') when giving the address.
./src/h5ls.c
The printf format for dataset dimensions was changed to `%Hu'
to support large datasets.
./test/big.c [NEW]
A test for big datasets on 32-bit machines. This test is not
run by default. Don't try to run it on an nfs-mounted file
system or other file system that doesn't support holes because
it creates two 32GB datasets of all zero.
1998-04-10 04:22:11 +08:00
|
|
|
big: $(BIG_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(BIG_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-04-15 00:44:46 +08:00
|
|
|
links: $(LINKS_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(LINKS_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1998-05-22 23:05:53 +08:00
|
|
|
chunk: $(CHUNK_OBJ) ../src/libhdf5.a
|
|
|
|
$(CC) $(CFLAGS) -o $@ $(CHUNK_OBJ) ../src/libhdf5.a $(LIBS)
|
|
|
|
|
1997-08-16 00:54:08 +08:00
|
|
|
@CONCLUDE@
|