2fb79f9fce07562a5fdb55d82a5e080aabc4c927
[openjpeg.git] / src / lib / openjp2 / 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 opj_stdint.h $(top_builddir)/opj_config.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 libopenjpeg_la_CFLAGS =
19 libopenjpeg_la_LIBADD = -lm
20 libopenjpeg_la_LDFLAGS = -no-undefined -version-info @lt_version@
21
22 libopenjpeg_la_SOURCES = \
23 bio.c \
24 cio.c \
25 dwt.c \
26 event.c \
27 image.c \
28 j2k.c \
29 j2k_lib.c \
30 jp2.c \
31 jpt.c \
32 mct.c \
33 mqc.c \
34 openjpeg.c \
35 pi.c \
36 raw.c \
37 t1.c \
38 t1_generate_luts.c \
39 t2.c \
40 tcd.c \
41 tgt.c \
42 cidx_manager.c \
43 phix_manager.c \
44 ppix_manager.c \
45 thix_manager.c \
46 tpix_manager.c \
47 function_list.c \
48 bio.h \
49 cio.h \
50 dwt.h \
51 event.h \
52 fix.h \
53 image.h \
54 indexbox_manager.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 function_list.h
73
74 EXTRA_DIST = \
75 CMakeLists.txt
76
77 install-data-hook:
78         cd $(DESTDIR)$(includedir) && rm -f openjpeg.h
79         @rm -rf $(top_builddir)/report.txt
80         @echo -e " (LA)\t$(libdir)/libopenjpeg.la" >> $(top_builddir)/report.txt
81 if BUILD_SHARED
82         @( $(call solist) ) >> $(top_builddir)/report.txt
83 endif
84 if BUILD_STATIC
85         @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
86 endif
87         @echo -e " (H)\t$(includedir)/openjpeg-$(MAJOR_NR).$(MINOR_NR)/openjpeg.h" >> $(top_builddir)/report.txt
88
89 uninstall-hook:
90         rm -f $(DESTDIR)$(includedir)/openjpeg.h
91
92 solist    = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
93 get_tok   = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
94 base      = $(call get_tok,libdir)
95 so        = $(call get_tok,library_names)
96 a         = $(call get_tok,old_library)
97
98 if HAVE_WIN32
99 SO_PREFIX = (DLL)
100 dll       = $(call get_tok,dlname)
101 else
102 if HAVE_DARWIN
103 SO_PREFIX = (DY)
104 dll       =
105 else
106 SO_PREFIX = (SO)
107 dll       =
108 endif
109 endif