summaryrefslogtreecommitdiff
path: root/codec/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'codec/Makefile.am')
-rw-r--r--codec/Makefile.am49
1 files changed, 49 insertions, 0 deletions
diff --git a/codec/Makefile.am b/codec/Makefile.am
new file mode 100644
index 00000000..b0837fa9
--- /dev/null
+++ b/codec/Makefile.am
@@ -0,0 +1,49 @@
+COMPILERFLAGS = -Wall
+USERLIBS = -lm
+INCLUDES = -I.. -I. -I../libopenjpeg
+
+if with_libjpwl
+USERLIBS += -L../jpwl -lopenjpeg_JPWL
+COMPILERFLAGS += -DUSE_JPWL
+endif
+
+if with_libtiff
+INCLUDES += @tiffincludes@
+USERLIBS += @tifflibs@
+endif
+
+if with_libpng
+INCLUDES += @pngincludes@
+USERLIBS += @pnglibs@
+endif
+
+if with_liblcms2
+INCLUDES += @lcms2includes@
+USERLIBS += @lcms2libs@
+endif
+
+if with_liblcms1
+INCLUDES += @lcms1includes@
+USERLIBS += @lcms1libs@
+endif
+
+bin_PROGRAMS = j2k_to_image image_to_j2k j2k_dump
+
+CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
+LDADD = $(USERLIBS) ../libopenjpeg/libopenjpeg.la
+
+j2k_to_image_SOURCES = compat/getopt.c index.c convert.c j2k_to_image.c
+
+image_to_j2k_SOURCES = compat/getopt.c index.c convert.c image_to_j2k.c
+
+j2k_dump_SOURCES = compat/getopt.c index.c j2k_dump.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