[trunk] Start FolderReorgProposal task
[openjpeg.git] / src / lib / openjpip / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 includesdir = $(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)
4 includes_HEADERS = 
5
6 lib_LTLIBRARIES =
7
8 if WANT_JPIP
9 lib_LTLIBRARIES += libopenjpip_local.la
10 endif
11
12 if WANT_JPIP_SERVER
13 lib_LTLIBRARIES += libopenjpip_server.la
14 endif
15
16 JPIP_SRC = \
17 openjpip.c \
18 query_parser.c \
19 channel_manager.c \
20 session_manager.c \
21 jpip_parser.c \
22 boxheader_manager.c \
23 codestream_manager.c \
24 imgreg_manager.c \
25 marker_manager.c \
26 msgqueue_manager.c \
27 box_manager.c \
28 faixbox_manager.c \
29 index_manager.c \
30 metadata_manager.c \
31 placeholder_manager.c \
32 byte_manager.c \
33 ihdrbox_manager.c \
34 manfbox_manager.c \
35 mhixbox_manager.c \
36 target_manager.c \
37 cachemodel_manager.c \
38 j2kheader_manager.c \
39 jp2k_encoder.c \
40 sock_manager.c \
41 openjpip.h \
42 bool.h \
43 boxheader_manager.h \
44 box_manager.h \
45 byte_manager.h \
46 codestream_manager.h \
47 faixbox_manager.h \
48 ihdrbox_manager.h \
49 imgreg_manager.h \
50 index_manager.h \
51 manfbox_manager.h \
52 marker_manager.h \
53 metadata_manager.h \
54 mhixbox_manager.h \
55 msgqueue_manager.h \
56 placeholder_manager.h \
57 target_manager.h \
58 cachemodel_manager.h \
59 j2kheader_manager.h \
60 jp2k_encoder.h \
61 query_parser.h \
62 channel_manager.h \
63 session_manager.h \
64 jpip_parser.h \
65 jp2k_decoder.h \
66 sock_manager.h 
67
68 SERVER_SRC = auxtrans_manager.c \
69 auxtrans_manager.h
70
71 LOCAL_SRC = jp2k_decoder.c \
72 imgsock_manager.c \
73 jpipstream_manager.c \
74 cache_manager.c \
75 dec_clientmsg_handler.c \
76 imgsock_manager.h \
77 jpipstream_manager.h \
78 cache_manager.h \
79 dec_clientmsg_handler.h
80
81 libopenjpip_server_la_CPPFLAGS = \
82 -I. \
83 -I$(top_srcdir)/libopenjpeg \
84 -I$(top_builddir)/libopenjpeg \
85 -I$(top_srcdir)/applications/jpip/libopenjpip \
86 -I$(top_builddir)/applications/jpip/libopenjpip \
87 @FCGI_CFLAGS@ \
88 @LIBCURL_CFLAGS@ \
89 -DSERVER
90 libopenjpip_server_la_CFLAGS = @THREAD_CFLAGS@
91 libopenjpip_server_la_LIBADD = @FCGI_LIBS@ @LIBCURL_LIBS@ @THREAD_LIBS@ -lm
92 libopenjpip_server_la_LDFLAGS = -no-undefined -version-info @lt_version@
93 libopenjpip_server_la_SOURCES = $(JPIP_SRC) $(SERVER_SRC)
94
95 libopenjpip_local_la_CPPFLAGS = \
96 -I. \
97 -I$(top_srcdir)/libopenjpeg \
98 -I$(top_builddir)/libopenjpeg \
99 -I$(top_srcdir)/applications/jpip/libopenjpip \
100 -I$(top_builddir)/applications/jpip/libopenjpip \
101 @LIBCURL_CFLAGS@
102 libopenjpip_local_la_CFLAGS = 
103 libopenjpip_local_la_LIBADD = $(top_builddir)/libopenjpeg/libopenjpeg.la -lm
104 libopenjpip_local_la_LDFLAGS = -no-undefined -version-info @lt_version@
105 libopenjpip_local_la_SOURCES = $(JPIP_SRC) $(LOCAL_SRC)
106
107 install-data-hook:
108 if WANT_JPIP_SERVER
109         @echo -e " (LA)\t$(libdir)/libopenjpip_server.la" >> $(top_builddir)/report.txt
110 if BUILD_SHARED
111         @( $(call solist_s) ) >> $(top_builddir)/report.txt
112 endif
113 if BUILD_STATIC
114         @echo -e " (A)\t$(base_s)/$(a_s)" >> $(top_builddir)/report.txt
115 endif
116 endif
117 if WANT_JPIP
118         @echo -e " (LA)\t$(libdir)/libopenjpip_local.la" >> $(top_builddir)/report.txt
119 if BUILD_SHARED
120         @( $(call solist_c) ) >> $(top_builddir)/report.txt
121 endif
122 if BUILD_STATIC
123         @echo -e " (A)\t$(base_c)/$(a_c)" >> $(top_builddir)/report.txt
124 endif
125 endif
126
127 solist_s    = $(foreach f, $(dll_s) $(so_s), echo -e ' $(SO_PREFIX)\t$(base_s)/$(f)' ;)
128 get_tok_s   = $(shell grep -E "^$(1)=" libopenjpip_server.la | cut -d "'" -f 2)
129 base_s      = $(call get_tok_s,libdir)
130 so_s        = $(call get_tok_s,library_names)
131 a_s         = $(call get_tok_s,old_library)
132
133 solist_c    = $(foreach f, $(dll_c) $(so_c), echo -e ' $(SO_PREFIX)\t$(base_c)/$(f)' ;)
134 get_tok_c   = $(shell grep -E "^$(1)=" libopenjpip_local.la | cut -d "'" -f 2)
135 base_c      = $(call get_tok_c,libdir)
136 so_c        = $(call get_tok_c,library_names)
137 a_c         = $(call get_tok_c,old_library)
138
139 if HAVE_WIN32
140 SO_PREFIX = (DLL)
141 dll_s     = $(call get_tok_s,dlname)
142 dll_c     = $(call get_tok_c,dlname)
143 else
144 if HAVE_DARWIN
145 SO_PREFIX = (DY)
146 dll_s     =
147 dll_c     =
148 else
149 SO_PREFIX = (SO)
150 dll_s     =
151 dll_c     =
152 endif
153 endif