d08a96e251
* [antonin] changed remaining "WIN32" to "_WIN32" ! [antonin] libopenjpeg has no more dependency on LCMS lib. Everything concerning color (icc profile, conversion to rgb, etc) has been put outside libopenjpeg and is used in j2k_to_image.c and mj2_to_frames.c. - [antonin] removed "opj_convert{.c,.h}" + [antonin] added a directory "common/" that contains "getopt{.c,.h}" (previously in "codec/compat"). + [antonin] added files "color{.c,.h}" in "common/" that define the code for icc profile management and sycc_to_rgb conversion + [antonin] added "common/format_defs.h" that contains common definitions used in image_to_j2k, j2k_to_image, j2k_dump.
46 lines
968 B
Makefile
46 lines
968 B
Makefile
COMPILERFLAGS = -Wall -static
|
|
USERLIBS = -lm
|
|
INCLUDES = -I.. -I. -I../libopenjpeg -I../common
|
|
|
|
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 = ../common/getopt.c index.c convert.c \
|
|
../common/color.c j2k_to_image.c
|
|
|
|
image_to_j2k_SOURCES = ../common/getopt.c index.c convert.c image_to_j2k.c
|
|
|
|
j2k_dump_SOURCES = ../common/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
|