mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-12-03 08:01:25 +08:00
25f062528b
The file docs/indexing.dox tries to provide design information for the refactoring. The primary change is to replace all walking of linked lists with the use of the NCindex data structure. Ncindex is a combination of a hash table (for name-based lookup) and a vector (for walking the elements in the index). Additionally, global vectors are added to NC_HDF5_FILE_INFO_T to support direct mapping of an e.g. dimid to the NC_DIM_INFO_T object. These global vectors exist for dimensions, types, and groups because they have globally unique id numbers. WARNING: 1. since libsrc4 and libsrchdf4 share code, there are also changes in libsrchdf4. 2. Any outstanding pull requests that change libsrc4 or libhdf4 are likely to cause conflicts with this code. 3. The original reason for doing this was for performance improvements, but as noted elsewhere, this may not be significant because the meta-data read performance apparently is being dominated by the hdf5 library because we do bulk meta-data reading rather than lazy reading.
41 lines
794 B
Plaintext
41 lines
794 B
Plaintext
T=tst_fileinfo
|
|
|
|
NCLIB=./liblib/.libs/libnetcdf.a
|
|
D4LIB=./libdap4/.libs/libdap4.a
|
|
|
|
LFLAG=-L/usr/local/lib
|
|
|
|
#HDF5LIB=-lhdf5_hl -lhdf5
|
|
#CURLLIB=-lcurl
|
|
#ZLIB=-lz
|
|
|
|
OTHERLIBS=-lm
|
|
|
|
LIBS=${D4LIB} ${NCLIB} ${LFLAG} ${CURLLIB} ${HDF5LIB} ${ZLIB} ${OTHERLIBS}
|
|
INCL=-I. -I./include
|
|
RPATH=-Wl,-rpath,${LFLAG}
|
|
|
|
# Might want to specify a particular C compiler with flags
|
|
CC=gcc
|
|
#CFLAGS=-g -O2 -Wall -DHAVE_CONFIG_H
|
|
CFLAGS=-g -O2 -DHAVE_CONFIG_H
|
|
|
|
GFLAGS=-g -O0
|
|
|
|
##################################################
|
|
|
|
all::
|
|
cc -g -c ${T}.c ${INCL}
|
|
cc -g -o ${T} ${T}.o ${LIBS} ${RPATH}
|
|
|
|
clean:
|
|
rm -f ${T}.o ${T}.exe
|
|
|
|
|
|
EZXML=ezxml-0.8.6.tar.gz
|
|
ezxml::
|
|
rm -fr ./ezxml ./ezxml.[ch]
|
|
tar -zxf ./${EZXML}
|
|
sed -e 's|//\(.*\)|/*\1*/|' <ezxml/ezxml.c >./ezxml.c
|
|
sed -e 's|//\(.*\)|/*\1*/|' <ezxml/ezxml.h >./ezxml.h
|