summaryrefslogtreecommitdiff
blob: 131614ccb1003c615a519dd80a22a52d20b18ad3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Makefile for the main OpenJPEG codecs: j2k_to_image and image_to_j2k

CPPFLAGS += -I../libopenjpeg
LDLIBS += -lopenjpeg -ltiff
LDFLAGS += -L..

PREFIX = /usr
INSTALL_BINDIR = $(PREFIX)/bin

all: j2k_to_image image_to_j2k

common = index.o convert.o #compat/getopt.o

j2k_to_image: j2k_to_image.o ${common}
image_to_j2k: image_to_j2k.o ${common}

clean:
	rm -f *.o j2k_to_image image_to_j2k

install: all
	install -d '$(DESTDIR)$(INSTALL_BINDIR)'
	install -m 755 j2k_to_image image_to_j2k '$(DESTDIR)$(INSTALL_BINDIR)'