summaryrefslogtreecommitdiff
path: root/mj2/Makefile.am
blob: b5495387f967fcf14235854197ee425c94738c10 (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
COMPILERFLAGS = -Wall -static

USERLIBS =
INCLUDES = -I.. -I. -I../libopenjpeg

if with_liblcms2
INCLUDES += @lcms2includes@
USERLIBS += @lcms2libs@
endif

if with_liblcms1
INCLUDES += @lcms1includes@
USERLIBS += @lcms1libs@
endif

bin_PROGRAMS = frames_to_mj2 mj2_to_frames extract_j2k_from_mj2 wrap_j2k_in_mj2

CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
LDADD = ../libopenjpeg/libopenjpeg.la $(USERLIBS)

frames_to_mj2_SOURCES = ../codec/compat/getopt.c mj2_convert.c mj2.c \
 frames_to_mj2.c

mj2_to_frames_SOURCES = ../codec/compat/getopt.c mj2_convert.c mj2.c \
 mj2_to_frames.c

extract_j2k_from_mj2_SOURCES = mj2.c extract_j2k_from_mj2.c

wrap_j2k_in_mj2_SOURCES = mj2.c wrap_j2k_in_mj2.c

REPBIN=$(bin_PROGRAMS)

all-local:
	$(INSTALL) -d ../bin
	$(INSTALL) $(bin_PROGRAMS) ../bin
	@echo "" > .report.txt
	@(for f in ${REPBIN} ; do \
	echo "Installing: ${prefix}/bin/$$f" >> .report.txt ; \
	done)