* [vincent] fix autotools for various compilation problems
[openjpeg.git] / libopenjpeg / jpwl / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 lib_LTLIBRARIES = libopenjpeg_JPWL.la
4
5 OPJ_SRC = \
6 ../bio.c \
7 ../cio.c \
8 ../dwt.c \
9 ../event.c \
10 ../image.c \
11 ../j2k.c \
12 ../j2k_lib.c \
13 ../jp2.c \
14 ../jpt.c \
15 ../mct.c \
16 ../mqc.c \
17 ../openjpeg.c \
18 ../pi.c \
19 ../raw.c \
20 ../t1.c \
21 ../t1_generate_luts.c \
22 ../t2.c \
23 ../tcd.c \
24 ../tgt.c \
25 ../cidx_manager.c \
26 ../phix_manager.c \
27 ../ppix_manager.c \
28 ../thix_manager.c \
29 ../tpix_manager.c \
30 ../function_list.c
31
32 libopenjpeg_JPWL_la_CPPFLAGS = \
33 -I. \
34 -I$(top_srcdir)/libopenjpeg \
35 -I$(top_builddir)/libopenjpeg \
36 -I$(top_srcdir)/libopenjpeg/jpwl \
37 -I$(top_builddir)/libopenjpeg/jpwl \
38 -DUSE_JPWL
39 libopenjpeg_JPWL_la_CFLAGS =
40 libopenjpeg_JPWL_la_LIBADD = -lm
41 libopenjpeg_JPWL_la_LDFLAGS = -no-undefined -version-info @lt_version@
42 libopenjpeg_JPWL_la_SOURCES = \
43 $(OPJ_SRC) \
44 crc.c \
45 jpwl.c \
46 jpwl_lib.c \
47 rs.c \
48 crc.h \
49 jpwl.h \
50 rs.h
51
52 install-data-hook:
53         @echo -e " (LA)\t$(libdir)/libopenjpeg_JPWL.la" >> $(top_builddir)/report.txt
54         @( $(call solist) ) >> $(top_builddir)/report.txt
55         @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
56
57 solist    = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
58 get_tok   = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
59 base      = $(call get_tok,libdir)
60 so        = $(call get_tok,library_names)
61 a         = $(call get_tok,old_library)
62
63 if HAVE_WIN32
64 SO_PREFIX = (DLL)
65 dll       = $(call get_tok,dlname)
66 else
67 if HAVE_DARWIN
68 SO_PREFIX = (DY)
69 dll       =
70 else
71 SO_PREFIX = (SO)
72 dll       =
73 endif
74 endif