2011-05-23 22:32:22 +02:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
|
|
|
|
includesdir = $(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)
|
|
|
|
includes_HEADERS =
|
|
|
|
|
2012-03-02 11:23:20 +01:00
|
|
|
lib_LTLIBRARIES =
|
|
|
|
|
|
|
|
if WANT_JPIP
|
|
|
|
lib_LTLIBRARIES += libopenjpip_local.la
|
|
|
|
endif
|
|
|
|
|
|
|
|
if WANT_JPIP_SERVER
|
|
|
|
lib_LTLIBRARIES += libopenjpip_server.la
|
|
|
|
endif
|
2011-05-23 22:32:22 +02:00
|
|
|
|
|
|
|
JPIP_SRC = \
|
2011-10-25 23:10:48 +02:00
|
|
|
openjpip.c \
|
|
|
|
query_parser.c \
|
|
|
|
channel_manager.c \
|
|
|
|
session_manager.c \
|
|
|
|
jpip_parser.c \
|
2011-05-23 22:32:22 +02:00
|
|
|
boxheader_manager.c \
|
|
|
|
codestream_manager.c \
|
|
|
|
imgreg_manager.c \
|
|
|
|
marker_manager.c \
|
|
|
|
msgqueue_manager.c \
|
|
|
|
box_manager.c \
|
|
|
|
faixbox_manager.c \
|
|
|
|
index_manager.c \
|
|
|
|
metadata_manager.c \
|
|
|
|
placeholder_manager.c \
|
|
|
|
byte_manager.c \
|
|
|
|
ihdrbox_manager.c \
|
|
|
|
manfbox_manager.c \
|
|
|
|
mhixbox_manager.c \
|
|
|
|
target_manager.c \
|
2011-08-26 14:44:28 +02:00
|
|
|
cachemodel_manager.c \
|
2011-09-30 17:31:06 +02:00
|
|
|
j2kheader_manager.c \
|
|
|
|
jp2k_encoder.c \
|
2012-03-02 11:23:20 +01:00
|
|
|
sock_manager.c \
|
|
|
|
openjpip.h \
|
2011-05-23 22:32:22 +02:00
|
|
|
bool.h \
|
|
|
|
boxheader_manager.h \
|
|
|
|
box_manager.h \
|
|
|
|
byte_manager.h \
|
|
|
|
codestream_manager.h \
|
|
|
|
faixbox_manager.h \
|
|
|
|
ihdrbox_manager.h \
|
|
|
|
imgreg_manager.h \
|
|
|
|
index_manager.h \
|
|
|
|
manfbox_manager.h \
|
|
|
|
marker_manager.h \
|
|
|
|
metadata_manager.h \
|
|
|
|
mhixbox_manager.h \
|
|
|
|
msgqueue_manager.h \
|
|
|
|
placeholder_manager.h \
|
2011-08-26 14:44:28 +02:00
|
|
|
target_manager.h \
|
2011-09-30 17:31:06 +02:00
|
|
|
cachemodel_manager.h \
|
|
|
|
j2kheader_manager.h \
|
2011-10-25 23:10:48 +02:00
|
|
|
jp2k_encoder.h \
|
|
|
|
query_parser.h \
|
|
|
|
channel_manager.h \
|
|
|
|
session_manager.h \
|
2012-03-02 11:23:20 +01:00
|
|
|
jpip_parser.h \
|
|
|
|
jp2k_decoder.h \
|
|
|
|
sock_manager.h
|
|
|
|
|
|
|
|
SERVER_SRC = auxtrans_manager.c \
|
|
|
|
auxtrans_manager.h
|
2011-10-25 23:10:48 +02:00
|
|
|
|
|
|
|
LOCAL_SRC = jp2k_decoder.c \
|
|
|
|
imgsock_manager.c \
|
|
|
|
jpipstream_manager.c \
|
|
|
|
cache_manager.c \
|
|
|
|
dec_clientmsg_handler.c \
|
|
|
|
imgsock_manager.h \
|
|
|
|
jpipstream_manager.h \
|
|
|
|
cache_manager.h \
|
|
|
|
dec_clientmsg_handler.h
|
2011-05-23 22:32:22 +02:00
|
|
|
|
|
|
|
libopenjpip_server_la_CPPFLAGS = \
|
|
|
|
-I. \
|
|
|
|
-I$(top_srcdir)/applications/jpip/libopenjpip \
|
|
|
|
-I$(top_builddir)/applications/jpip/libopenjpip \
|
|
|
|
@FCGI_CFLAGS@ \
|
2012-03-02 11:23:20 +01:00
|
|
|
@LIBCURL_CFLAGS@ \
|
2011-05-23 22:32:22 +02:00
|
|
|
-DSERVER
|
2012-03-02 11:23:20 +01:00
|
|
|
libopenjpip_server_la_CFLAGS = @THREAD_CFLAGS@
|
|
|
|
libopenjpip_server_la_LIBADD = @FCGI_LIBS@ @LIBCURL_LIBS@ @THREAD_LIBS@ -lm
|
2011-05-23 22:32:22 +02:00
|
|
|
libopenjpip_server_la_LDFLAGS = -no-undefined -version-info @lt_version@
|
2012-03-02 11:23:20 +01:00
|
|
|
libopenjpip_server_la_SOURCES = $(JPIP_SRC) $(SERVER_SRC)
|
2011-05-23 22:32:22 +02:00
|
|
|
|
|
|
|
libopenjpip_local_la_CPPFLAGS = \
|
|
|
|
-I. \
|
2011-11-02 01:54:19 +01:00
|
|
|
-I$(top_srcdir)/libopenjpeg \
|
|
|
|
-I$(top_builddir)/libopenjpeg \
|
2011-05-23 22:32:22 +02:00
|
|
|
-I$(top_srcdir)/applications/jpip/libopenjpip \
|
2012-03-02 11:23:20 +01:00
|
|
|
-I$(top_builddir)/applications/jpip/libopenjpip \
|
|
|
|
@LIBCURL_CFLAGS@
|
|
|
|
libopenjpip_local_la_CFLAGS =
|
2011-11-02 01:54:19 +01:00
|
|
|
libopenjpip_local_la_LIBADD = $(top_builddir)/libopenjpeg/libopenjpeg.la -lm
|
2011-05-23 22:32:22 +02:00
|
|
|
libopenjpip_local_la_LDFLAGS = -no-undefined -version-info @lt_version@
|
2011-10-25 23:10:48 +02:00
|
|
|
libopenjpip_local_la_SOURCES = $(JPIP_SRC) $(LOCAL_SRC)
|
2011-05-23 22:32:22 +02:00
|
|
|
|
|
|
|
install-data-hook:
|
2012-03-02 11:23:20 +01:00
|
|
|
if WANT_JPIP_SERVER
|
2011-05-23 22:32:22 +02:00
|
|
|
@echo -e " (LA)\t$(libdir)/libopenjpip_server.la" >> $(top_builddir)/report.txt
|
2011-10-10 08:51:08 +02:00
|
|
|
if BUILD_SHARED
|
2011-05-23 22:32:22 +02:00
|
|
|
@( $(call solist_s) ) >> $(top_builddir)/report.txt
|
2011-10-10 08:51:08 +02:00
|
|
|
endif
|
|
|
|
if BUILD_STATIC
|
2011-05-23 22:32:22 +02:00
|
|
|
@echo -e " (A)\t$(base_s)/$(a_s)" >> $(top_builddir)/report.txt
|
2011-10-10 08:51:08 +02:00
|
|
|
endif
|
2012-03-02 11:23:20 +01:00
|
|
|
endif
|
|
|
|
if WANT_JPIP
|
2011-05-23 22:32:22 +02:00
|
|
|
@echo -e " (LA)\t$(libdir)/libopenjpip_local.la" >> $(top_builddir)/report.txt
|
2011-10-10 08:51:08 +02:00
|
|
|
if BUILD_SHARED
|
2011-05-23 22:32:22 +02:00
|
|
|
@( $(call solist_c) ) >> $(top_builddir)/report.txt
|
2011-10-10 08:51:08 +02:00
|
|
|
endif
|
|
|
|
if BUILD_STATIC
|
2011-05-23 22:32:22 +02:00
|
|
|
@echo -e " (A)\t$(base_c)/$(a_c)" >> $(top_builddir)/report.txt
|
2011-10-10 08:51:08 +02:00
|
|
|
endif
|
2012-03-02 11:23:20 +01:00
|
|
|
endif
|
2011-05-23 22:32:22 +02:00
|
|
|
|
|
|
|
solist_s = $(foreach f, $(dll_s) $(so_s), echo -e ' $(SO_PREFIX)\t$(base_s)/$(f)' ;)
|
|
|
|
get_tok_s = $(shell grep -E "^$(1)=" libopenjpip_server.la | cut -d "'" -f 2)
|
|
|
|
base_s = $(call get_tok_s,libdir)
|
|
|
|
so_s = $(call get_tok_s,library_names)
|
|
|
|
a_s = $(call get_tok_s,old_library)
|
|
|
|
|
|
|
|
solist_c = $(foreach f, $(dll_c) $(so_c), echo -e ' $(SO_PREFIX)\t$(base_c)/$(f)' ;)
|
|
|
|
get_tok_c = $(shell grep -E "^$(1)=" libopenjpip_local.la | cut -d "'" -f 2)
|
|
|
|
base_c = $(call get_tok_c,libdir)
|
|
|
|
so_c = $(call get_tok_c,library_names)
|
|
|
|
a_c = $(call get_tok_c,old_library)
|
|
|
|
|
|
|
|
if HAVE_WIN32
|
|
|
|
SO_PREFIX = (DLL)
|
|
|
|
dll_s = $(call get_tok_s,dlname)
|
|
|
|
dll_c = $(call get_tok_c,dlname)
|
|
|
|
else
|
|
|
|
if HAVE_DARWIN
|
|
|
|
SO_PREFIX = (DY)
|
|
|
|
dll_s =
|
|
|
|
dll_c =
|
|
|
|
else
|
|
|
|
SO_PREFIX = (SO)
|
|
|
|
dll_s =
|
|
|
|
dll_c =
|
|
|
|
endif
|
|
|
|
endif
|