2012-03-26 09:34:32 +08:00
|
|
|
# Test c output
|
2013-04-25 06:11:44 +08:00
|
|
|
T=leak
|
|
|
|
VG=valgrind --leak-check=full
|
2012-03-26 09:34:32 +08:00
|
|
|
|
|
|
|
CFLAGS=-g -O0 -I. -I./include
|
2013-03-13 04:45:58 +08:00
|
|
|
|
|
|
|
CFLAGS=-g -O0 -I../include -I/share/ed/local/spock/include
|
|
|
|
LDFLAGS=./liblib/.libs/libnetcdf.a -L/share/ed/local/spock/lib -lhdf5_hl -lhdf5 -lz -lcurl -lm -llber -lldap -lrt -lssl -lcrypto -ldl
|
|
|
|
LFLAG=-L/usr/local/lib
|
|
|
|
RPATH=-Wl,-rpath,${LFLAG}
|
2012-03-26 09:34:32 +08:00
|
|
|
|
|
|
|
all::
|
2013-03-13 04:45:58 +08:00
|
|
|
gcc ${CFLAGS} -o t ${T}.c ${LDFLAGS}
|
2012-03-26 09:34:32 +08:00
|
|
|
${VG} ./t
|
|
|
|
|
2013-03-13 04:45:58 +08:00
|
|
|
|
2013-04-25 06:11:44 +08:00
|
|
|
build::
|
|
|
|
export CFLAGS; export LDFLAGS; ${MAKE} all
|