2011-03-04 11:53:27 +01:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-05-23 22:30:20 +02:00
|
|
|
SUBDIRS = .
|
|
|
|
|
|
|
|
if WANT_JPWL
|
|
|
|
SUBDIRS += jpwl
|
|
|
|
endif
|
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
includesdir = $(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)
|
|
|
|
includes_HEADERS = openjpeg.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
lib_LTLIBRARIES = libopenjpeg.la
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
libopenjpeg_la_CPPFLAGS = \
|
|
|
|
-I. \
|
|
|
|
-I$(top_srcdir)/libopenjpeg \
|
|
|
|
-I$(top_builddir)/libopenjpeg \
|
|
|
|
@LCMS1_CFLAGS@ \
|
|
|
|
@LCMS2_CFLAGS@
|
|
|
|
libopenjpeg_la_CFLAGS =
|
|
|
|
libopenjpeg_la_LIBADD = @LCMS1_LIBS@ @LCMS2_LIBS@
|
|
|
|
libopenjpeg_la_LDFLAGS = -no-undefined -version-info @lt_version@
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
libopenjpeg_la_SOURCES = \
|
|
|
|
bio.c \
|
|
|
|
cio.c \
|
|
|
|
dwt.c \
|
|
|
|
event.c \
|
|
|
|
image.c \
|
|
|
|
j2k.c \
|
|
|
|
j2k_lib.c \
|
|
|
|
jp2.c \
|
|
|
|
jpt.c \
|
|
|
|
mct.c \
|
|
|
|
mqc.c \
|
|
|
|
openjpeg.c \
|
|
|
|
pi.c \
|
|
|
|
raw.c \
|
|
|
|
t1.c \
|
2011-05-23 22:30:20 +02:00
|
|
|
t1_generate_luts.c \
|
2011-03-04 11:53:27 +01:00
|
|
|
t2.c \
|
|
|
|
tcd.c \
|
|
|
|
tgt.c \
|
2011-09-09 16:49:08 +02:00
|
|
|
cidx_manager.c \
|
|
|
|
phix_manager.c \
|
|
|
|
ppix_manager.c \
|
|
|
|
thix_manager.c \
|
|
|
|
tpix_manager.c \
|
2011-03-04 11:53:27 +01:00
|
|
|
bio.h \
|
|
|
|
cio.h \
|
|
|
|
dwt.h \
|
|
|
|
event.h \
|
|
|
|
fix.h \
|
|
|
|
image.h \
|
|
|
|
int.h \
|
|
|
|
j2k.h \
|
|
|
|
j2k_lib.h \
|
|
|
|
jp2.h \
|
|
|
|
jpt.h \
|
|
|
|
mct.h \
|
|
|
|
mqc.h \
|
2011-05-23 22:30:20 +02:00
|
|
|
opj_includes.h \
|
|
|
|
opj_malloc.h \
|
2011-03-04 11:53:27 +01:00
|
|
|
pi.h \
|
|
|
|
raw.h \
|
|
|
|
t1.h \
|
|
|
|
t1_luts.h \
|
|
|
|
t2.h \
|
|
|
|
tcd.h \
|
2011-09-09 16:49:08 +02:00
|
|
|
tgt.h \
|
|
|
|
cidx_manager.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
EXTRA_DIST = \
|
|
|
|
CMakeLists.txt
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
install-data-hook:
|
|
|
|
cd $(DESTDIR)$(includedir) && \
|
|
|
|
rm -f openjpeg.h && \
|
|
|
|
$(LN_S) openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h \
|
|
|
|
openjpeg.h
|
|
|
|
@rm -rf $(top_builddir)/report.txt
|
|
|
|
@echo -e " (LA)\t$(libdir)/libopenjpeg.la" >> $(top_builddir)/report.txt
|
|
|
|
@( $(call solist) ) >> $(top_builddir)/report.txt
|
2011-03-04 12:03:33 +01:00
|
|
|
@echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
|
|
|
|
@echo -e " (H)\t$(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h" >> $(top_builddir)/report.txt
|
2011-03-04 11:53:27 +01:00
|
|
|
@echo -e " (LN)\t$(includedir)/openjpeg.h" >> $(top_builddir)/report.txt
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(includedir)/openjpeg.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
solist = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
|
|
|
|
get_tok = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
|
|
|
|
base = $(call get_tok,libdir)
|
|
|
|
so = $(call get_tok,library_names)
|
|
|
|
a = $(call get_tok,old_library)
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
if HAVE_WIN32
|
|
|
|
SO_PREFIX = (DLL)
|
|
|
|
dll = $(call get_tok,dlname)
|
2010-12-14 04:33:31 +01:00
|
|
|
else
|
2011-03-04 11:53:27 +01:00
|
|
|
if HAVE_DARWIN
|
|
|
|
SO_PREFIX = (DY)
|
|
|
|
dll =
|
|
|
|
else
|
|
|
|
SO_PREFIX = (SO)
|
|
|
|
dll =
|
2011-01-07 04:20:58 +01:00
|
|
|
endif
|
|
|
|
endif
|