blob: ef84211a3d2ccbba848b74b2984bf4efbf0338cc (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
$NetBSD: patch-ae,v 1.4 2001/04/19 00:56:34 jtb Exp $
--- /dev/null Thu Apr 19 00:39:33 2001
+++ hdf/util/Makefile
@@ -0,0 +1,82 @@
+UTILS= hdf24to8 hdfcomp hdfed hdfls hdfpack hdftopal hdftor8 \
+ paltohdf r8tohdf ristosds vmake vshow hdf8to24 \
+ hdf2jpeg jpeg2hdf fp2hdf hdfunpac vcompat
+
+all: ${UTILS}
+
+BINDIR= ${PREFIX}/bin
+LIBDIR= ${PREFIX}/lib
+
+CPPFLAGS+= -Dunix
+CPPFLAGS+= -I${.CURDIR}/../src
+CPPFLAGS+= -I${JPEGBASE}/include
+
+LDFLAGS+= -L${.CURDIR}/../src
+LDFLAGS+= -Wl,-R${JPEGBASE}/lib -L${JPEGBASE}/lib
+
+LDADD+= -ldf -ljpeg -lz
+
+NOGCCERROR= 1
+
+fp2hdf: fp2hdf.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -lm -o $@
+
+hdf24to8: hdf24to8.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdf2jpeg: hdf2jpeg.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdf8to24: hdf8to24.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdfcomp: hdfcomp.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdfed: he_main.o he_cntrl.o he_disp.o he_file.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdfls: hdfls.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdfpack: hdfpack.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdftopal: hdftopal.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdftor8: hdftor8.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+hdfunpac: hdfunpac.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+jpeg2hdf: jpeg2hdf.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+paltohdf: paltohdf.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+r8tohdf: r8tohdf.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+ristosds: ristosds.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+vcompat: vcompat.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+vmake: vmake.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+vshow: vshow.o
+ ${CC} ${CPPFLAGS} ${CFLAGS} $? ${LDFLAGS} ${LDADD} -o $@
+
+
+install: ${UTILS}
+ @for f in ${UTILS}; do \
+ ${BSD_INSTALL_PROGRAM} $$f ${BINDIR}; \
+ done
+
+clean:
+ -rm -f *.o ${UTILS}
|