WIP: begin to test opj_decode_tile_data
[openjpeg.git] / libopenjpeg / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 SUBDIRS = .
4
5 if WANT_JPWL
6 SUBDIRS += jpwl
7 endif
8
9 includesdir = $(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)
10 includes_HEADERS = openjpeg.h
11
12 lib_LTLIBRARIES = libopenjpeg.la
13
14 libopenjpeg_la_CPPFLAGS = \
15 -I. \
16 -I$(top_srcdir)/libopenjpeg \
17 -I$(top_builddir)/libopenjpeg \
18 @LCMS1_CFLAGS@ \
19 @LCMS2_CFLAGS@
20 libopenjpeg_la_CFLAGS =
21 libopenjpeg_la_LIBADD = @LCMS1_LIBS@ @LCMS2_LIBS@
22 libopenjpeg_la_LDFLAGS = -no-undefined -version-info @lt_version@
23
24 libopenjpeg_la_SOURCES = \
25 bio.c \
26 cio.c \
27 dwt.c \
28 event.c \
29 image.c \
30 j2k.c \
31 j2k_lib.c \
32 jp2.c \
33 jpt.c \
34 mct.c \
35 mqc.c \
36 openjpeg.c \
37 pi.c \
38 raw.c \
39 t1.c \
40 t1_generate_luts.c \
41 t2.c \
42 tcd.c \
43 tgt.c \
44 cidx_manager.c \
45 phix_manager.c \
46 ppix_manager.c \
47 thix_manager.c \
48 tpix_manager.c \
49 bio.h \
50 cio.h \
51 dwt.h \
52 event.h \
53 fix.h \
54 image.h \
55 int.h \
56 j2k.h \
57 j2k_lib.h \
58 jp2.h \
59 jpt.h \
60 mct.h \
61 mqc.h \
62 opj_includes.h \
63 opj_malloc.h \
64 pi.h \
65 raw.h \
66 t1.h \
67 t1_luts.h \
68 t2.h \
69 tcd.h \
70 tgt.h \
71 cidx_manager.h
72
73 EXTRA_DIST = \
74 CMakeLists.txt
75
76 install-data-hook:
77         cd $(DESTDIR)$(includedir) && \
78           rm -f openjpeg.h && \
79           $(LN_S) openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h \
80                   openjpeg.h
81         @rm -rf $(top_builddir)/report.txt
82         @echo -e " (LA)\t$(libdir)/libopenjpeg.la" >> $(top_builddir)/report.txt
83         @( $(call solist) ) >> $(top_builddir)/report.txt
84         @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
85         @echo -e " (H)\t$(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h" >> $(top_builddir)/report.txt
86         @echo -e " (LN)\t$(includedir)/openjpeg.h" >> $(top_builddir)/report.txt
87
88 uninstall-hook:
89         rm -f $(DESTDIR)$(includedir)/openjpeg.h
90
91 solist    = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
92 get_tok   = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
93 base      = $(call get_tok,libdir)
94 so        = $(call get_tok,library_names)
95 a         = $(call get_tok,old_library)
96
97 if HAVE_WIN32
98 SO_PREFIX = (DLL)
99 dll       = $(call get_tok,dlname)
100 else
101 if HAVE_DARWIN
102 SO_PREFIX = (DY)
103 dll       =
104 else
105 SO_PREFIX = (SO)
106 dll       =
107 endif
108 endif