WIP: remove a piece of code copy by the merge op at the wrong place
[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
31 libopenjpeg_JPWL_la_CPPFLAGS = \
32 -I. \
33 -I$(top_srcdir)/libopenjpeg \
34 -I$(top_builddir)/libopenjpeg \
35 -I$(top_srcdir)/libopenjpeg/jpwl \
36 -I$(top_builddir)/libopenjpeg/jpwl \
37 -DUSE_JPWL
38 libopenjpeg_JPWL_la_CFLAGS =
39 libopenjpeg_JPWL_la_LIBADD = -lm
40 libopenjpeg_JPWL_la_LDFLAGS = -no-undefined -version-info @lt_version@
41 libopenjpeg_JPWL_la_SOURCES = \
42 $(OPJ_SRC) \
43 crc.c \
44 jpwl.c \
45 jpwl_lib.c \
46 rs.c \
47 crc.h \
48 jpwl.h \
49 rs.h
50
51 install-data-hook:
52         @echo -e " (LA)\t$(libdir)/libopenjpeg_JPWL.la" >> $(top_builddir)/report.txt
53         @( $(call solist) ) >> $(top_builddir)/report.txt
54         @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
55
56 solist    = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
57 get_tok   = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
58 base      = $(call get_tok,libdir)
59 so        = $(call get_tok,library_names)
60 a         = $(call get_tok,old_library)
61
62 if HAVE_WIN32
63 SO_PREFIX = (DLL)
64 dll       = $(call get_tok,dlname)
65 else
66 if HAVE_DARWIN
67 SO_PREFIX = (DY)
68 dll       =
69 else
70 SO_PREFIX = (SO)
71 dll       =
72 endif
73 endif