2010-12-10 05:27:40 +01:00
|
|
|
COMPILERFLAGS = -Wall
|
|
|
|
|
2010-12-14 04:33:31 +01:00
|
|
|
if with_sharedlibs
|
|
|
|
COMPILERFLAGS += -DOPJ_EXPORTS
|
|
|
|
else
|
|
|
|
COMPILERFLAGS += -DOPJ_STATIC
|
2010-12-10 05:27:40 +01:00
|
|
|
endif
|
|
|
|
|
2010-10-05 12:33:15 +02:00
|
|
|
USERLIBS = -lm
|
2010-12-08 12:06:41 +01:00
|
|
|
INCLUDES = -I.. -I. -I../libopenjpeg -I../common
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-12-08 12:06:41 +01:00
|
|
|
j2k_to_image_SOURCES = ../common/getopt.c index.c convert.c \
|
|
|
|
../common/color.c j2k_to_image.c
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2010-12-08 12:06:41 +01:00
|
|
|
image_to_j2k_SOURCES = ../common/getopt.c index.c convert.c image_to_j2k.c
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2010-12-08 12:06:41 +01:00
|
|
|
j2k_dump_SOURCES = ../common/getopt.c index.c j2k_dump.c
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
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
|