Added files to let people build openjpeg with configure tools ; Added makefiles to...
[openjpeg.git] / mj2 / Makefile.am
1 COMPILERFLAGS = -Wall
2
3 USERLIBS =
4 INCLUDES = -I.. -I. -I../libopenjpeg
5
6 if with_libjpwl
7 USERLIBS += -L../jpwl -lopenjpeg_JPWL
8 COMPILERFLAGS += -DUSE_JPWL
9 endif
10
11 if with_liblcms2
12 INCLUDES += @lcms2includes@
13 USERLIBS += @lcms2libs@
14 endif
15
16 if with_liblcms1
17 INCLUDES += @lcms1includes@
18 USERLIBS += @lcms1libs@
19 endif
20
21 bin_PROGRAMS = frames_to_mj2 mj2_to_frames extract_j2k_from_mj2 wrap_j2k_in_mj2
22
23 CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
24 LDADD = ../libopenjpeg/libopenjpeg.la $(USERLIBS)
25
26 frames_to_mj2_SOURCES = ../codec/compat/getopt.c mj2_convert.c mj2.c \
27  frames_to_mj2.c
28
29 mj2_to_frames_SOURCES = ../codec/compat/getopt.c mj2_convert.c mj2.c \
30  mj2_to_frames.c
31
32 extract_j2k_from_mj2_SOURCES = mj2.c extract_j2k_from_mj2.c
33
34 wrap_j2k_in_mj2_SOURCES = mj2.c wrap_j2k_in_mj2.c
35
36 REPBIN=$(bin_PROGRAMS)
37
38 all-local:
39         $(INSTALL) -d ../bin
40         $(INSTALL) $(bin_PROGRAMS) ../bin
41         @echo "" > .report.txt
42         @(for f in ${REPBIN} ; do \
43         echo "Installing: ${prefix}/bin/$$f" >> .report.txt ; \
44         done)