2014-12-25 01:22:47 +08:00
|
|
|
T=t
|
2012-03-26 09:34:32 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
NCLIB=./liblib/.libs/libnetcdf.a
|
2013-03-13 04:45:58 +08:00
|
|
|
|
|
|
|
LFLAG=-L/usr/local/lib
|
2014-12-25 01:22:47 +08:00
|
|
|
|
2015-01-01 13:29:36 +08:00
|
|
|
#HDF5LIB=-lhdf5_hl -lhdf5
|
|
|
|
#CURLLIB=-lcurl
|
|
|
|
#ZLIB=-lz
|
2014-12-25 01:22:47 +08:00
|
|
|
|
|
|
|
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}
|
2012-03-26 09:34:32 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
# 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
|
2012-03-26 09:34:32 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
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
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
clean:
|
|
|
|
rm -f ${T}.o ${T}.exe
|