diff options
Diffstat (limited to 'mj2/Makefile.am')
| -rw-r--r-- | mj2/Makefile.am | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/mj2/Makefile.am b/mj2/Makefile.am new file mode 100644 index 00000000..fbf5c9de --- /dev/null +++ b/mj2/Makefile.am @@ -0,0 +1,44 @@ +COMPILERFLAGS = -Wall + +USERLIBS = +INCLUDES = -I.. -I. -I../libopenjpeg + +if with_libjpwl +USERLIBS += -L../jpwl -lopenjpeg_JPWL +COMPILERFLAGS += -DUSE_JPWL +endif + +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) |
