mirror of
https://github.com/Unidata/netcdf-c.git
synced 2024-11-27 07:30:33 +08:00
e35a14a85d
2. modify oc2/ocrc.c rcfilenames to look for .ocrc before .dodsrc. 3. Modify testauth.sh to avoid using names that might already exist for cookies file and netrc file. Still must use .ocrc to test for local/home search. 4. Modify testauth.sh to save and restore any file it creates that already exists.
32 lines
547 B
Plaintext
32 lines
547 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
|