netcdf-c/Make0

32 lines
547 B
Plaintext
Raw Normal View History

T=t
NCLIB=./liblib/.libs/libnetcdf.a
2013-03-13 04:45:58 +08:00
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
2013-03-13 04:45:58 +08:00
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}
2013-03-13 04:45:58 +08:00
clean:
rm -f ${T}.o ${T}.exe