netcdf-c/Make0
dmh f423f27693 Sync with oc project.
This supports better authorization
handling for DAP requests, especially redirection
based authorization. I also added a new test case
ncdap_tests/testauth.sh.

Specifically, suppose I have a netrc file /tmp/netrc
containing this.
    machine uat.urs.earthdata.nasa.gov login xxxxxx password yyyyyy
Also suppose I have a .ocrc file containing these lines
    HTTP.COOKIEJAR=/tmp/cookies
    HTTP.NETRC=/tmp/netrc
Assume that .ocrc is in the local directory or HOME.

Then this command should work (assuming a valid login and password).
    ncdump -h "https://54.86.135.31/opendap/data/nc/fnoc1.nc"
2014-12-24 10:22:47 -07:00

32 lines
544 B
Plaintext

T=t
NCLIB=./liblib/.libs/libnetcdf.a
LFLAG=-L/usr/local/lib
HDF5LIB=-lhdf5_hl -lhdf5
CURLLIB=-lcurl
ZLIB=-lz
OTHERLIBS=-lm
LIBS=${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