[1.5] fix output when --disable-shared or --disable-static is
[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 if BUILD_SHARED
54         @( $(call solist) ) >> $(top_builddir)/report.txt
55 endif
56 if BUILD_STATIC
57         @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
58 endif
59
60 solist    = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
61 get_tok   = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
62 base      = $(call get_tok,libdir)
63 so        = $(call get_tok,library_names)
64 a         = $(call get_tok,old_library)
65
66 if HAVE_WIN32
67 SO_PREFIX = (DLL)
68 dll       = $(call get_tok,dlname)
69 else
70 if HAVE_DARWIN
71 SO_PREFIX = (DY)
72 dll       =
73 else
74 SO_PREFIX = (SO)
75 dll       =
76 endif
77 endif