2018-02-25 11:36:24 +08:00
|
|
|
T=tst_fileinfo
|
2012-03-26 09:34:32 +08:00
|
|
|
|
2014-12-25 01:22:47 +08:00
|
|
|
NCLIB=./liblib/.libs/libnetcdf.a
|
2017-03-09 08:01:10 +08:00
|
|
|
D4LIB=./libdap4/.libs/libdap4.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
|
|
|
|
|
2017-03-09 08:01:10 +08:00
|
|
|
LIBS=${D4LIB} ${NCLIB} ${LFLAG} ${CURLLIB} ${HDF5LIB} ${ZLIB} ${OTHERLIBS}
|
2014-12-25 01:22:47 +08:00
|
|
|
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
|
2017-03-09 08:01:10 +08:00
|
|
|
|
|
|
|
|
|
|
|
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
|