summaryrefslogtreecommitdiff
path: root/graphics/hdf5/files/mfhdf/ncdump/Makefile
blob: 727b1de60b321c8b3a37406054919fb56760cf58 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $FreeBSD$

PROG		 = ncdump
MANDIR		 = ${PREFIX}/man/man

LDFLAGS		+= -L${.CURDIR}/../libsrc -L${.CURDIR}/../../hdf/src -lmfhdf -ldf
CFLAGS		+= -I${.CURDIR}/../libsrc
SRCS		=  ncdump.c vardata.c dumplib.c

.include <bsd.prog.mk>

ENVIR		= env LD_LIBRARY_PATH=${.CURDIR}/../../hdf/src:${.CURDIR}/../libsrc
NCGEN		= ${.CURDIR}/../ncgen/ncgen

test:		$(PROG) test0.cdl
	${ENVIR} $(NCGEN) -o test0.nc -n test0.cdl
	${ENVIR} ./$(PROG) test0.nc > test1.cdl
	${ENVIR} $(NCGEN) -o test1.nc -n test1.cdl
	${ENVIR} ./$(PROG) -n test0 test1.nc > test2.cdl
	@cmp test1.cdl test2.cdl && \
	    echo "*** $(PROGRAM) test successful ***" ; \
	    rm test1.cdl test1.nc test2.cdl