blob: c43dc492faaedd26a5eaffd30922c654199eeba8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
$NetBSD: patch-al,v 1.2 2001/03/25 01:09:51 jtb Exp $
--- /dev/null Sun Mar 25 00:38:11 2001
+++ hdf/test/Makefile
@@ -0,0 +1,60 @@
+CSRCS= rig.c sdstr.c blocks.c an.c anfile.c extelt.c file.c file1.c \
+ vers.c sdmms.c sdnmms.c slab.c litend.c tvset.c comp.c bitio.c \
+ tree.c macros.c conv.c nbit.c man.c mgr.c testhdf.c tbv.c \
+ tvsfpack.c chunks.c tvattr.c buffer.c
+
+COBJS= ${CSRCS:.c=.o}
+
+FSRCS= fortest.c fortestF.f forsupff.f forsupf.c \
+ manf.f mgrf.f slabwf.f t24f.f tanf.f tanfilef.f tpf.f tr8f.f \
+ tsdmmsf.f tsdnmmsf.f tsdnntf.f tsdntf.f tsdstrf.f tstubsf.f \
+ tvsetf.f, tvattrf.f
+
+FOBJS= fortestF.o forsupff.o forsupf.o \
+ manf.o mgrf.o slabwf.o t24f.o tanf.o tanfilef.o tpf.o tr8f.o \
+ tsdmmsf.o tsdnmmsf.o tsdnntf.o tsdntf.o tsdstrf.o tstubsf.o \
+ tvsetf.o tvattrf.o
+
+CPPFLAGS+= -Dunix
+CPPFLAGS+= -I${.CURDIR}/../src
+
+LDFLAGS+= -Wl,-R${.CURDIR}/../src -L${.CURDIR}/../src
+LDFLAGS+= -Wl,-R${JPEGBASE}/lib -L${JPEGBASE}/lib
+
+LDADD+= -ldf -ljpeg -lz -lm
+
+FTESTS = fortest fortestF
+
+all: testhdf ${FTESTS} gentest
+
+TESTF = fortest.o
+
+TESTDIR = testdir
+
+${FOBJS}: fortest.inc
+
+test: atest-hdf
+
+atest-hdf: testhdf ${FTESTS}
+ -rm -f *.hdf
+
+testhdf: ${COBJS}
+ ${CC} ${CPPFLAGS} ${CFLAGS} -o $@ $? ${LDFLAGS} ${LDADD}
+ test -d ${TESTDIR} || mkdir ${TESTDIR}
+
+fortestF: ${FOBJS}
+ ${FC} ${FFLAGS} -o $@ $? ${LDFLAGS} ${LDADD}
+
+fortest: fortest.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} -o $@ $? ${LDFLAGS} ${LDADD}
+
+gentest: gentest.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} -o $@ $? ${LDFLAGS} ${LDADD}
+
+clean:
+ -rm -f testhdf ${COBJS} ${FOBJS} ${FTESTS} \
+ core *.hdf ptesthdf qtesthdf gentest *.o fortest.arg ${TESTDIR}/* \
+ .depend
+
+depend:
+ mkdep ${CFLAGS} ${CSRCS}
|