blob: 6d4ccae200d4d82a30d6708fd8d5d126283968d1 (
plain) (
blame)
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
|
# $FreeBSD$
UTILS = hdf24to8 hdfcomp hdfls hdfpack hdftopal hdftor8 paltohdf \
r8tohdf ristosds vmake vshow hdf8to24 hdf2jpeg jpeg2hdf fp2hdf \
hdfunpac vcompat
all: ${UTILS} hdfed
HEOBJ = he_main.o he_cntrl.o he_disp.o he_file.o
#CFLAGS += -I${PREFIX}/include -I${.CURDIR}/../src/
CFLAGS += -I${.CURDIR}/../src/
#LDFLAGS += -L${PREFIX}/lib -ljpeg -L${.CURDIR}/../src/ -ldf -lz
LDFLAGS += -L${.CURDIR}/../src/ -ldf
hdfed: he.h he_proto.h $(HEOBJ)
$(CC) $(HEOBJ) $(LDFLAGS) -o hdfed
test: all fptest
env LD_LIBRARY_PATH=${.CURDIR}/../src ./testutil.sh
clean:
-rm -f *.o $(UTILS) hdfed fptest
-rm -f o* ctx* cb* fptestf .depend
depend:
mkdep ${CFLAGS} ${UTILS:S/$/.c/g} ${HEOBJ:S/.o/.c/g}
install: all
install -c -s -o root -g wheel -m 555 ${UTILS} hdfed ${BINDIR}
|