fixed lt_version in configure.ac
[openjpeg.git] / libjp3dvm / Makefile.am
1 MAINTAINERCLEANFILES = Makefile.in
2
3 lib_LTLIBRARIES = libopenjp3dvm.la
4
5 includesdir = ${includedir}/openjpeg3d-@JP3D_MAJOR_NR@.@JP3D_MINOR_NR@
6 includes_HEADERS = openjpeg3d.h
7
8 libopenjp3dvm_la_LDFLAGS = -no-undefined -version-info @lt_version_jp3d@
9
10 libopenjp3dvm_la_CPPFLAGS = \
11 -I. \
12 -I$(top_srcdir)/jp3d/libjp3dvm \
13 -I$(top_builddir)/jp3d/libjp3dvm
14 libopenjp3dvm_la_CFLAGS =
15 libopenjp3dvm_la_LIBADD = -lm
16 libopenjp3dvm_la_SOURCES = \
17 bio.c \
18 cio.c \
19 dwt.c \
20 event.c \
21 jp3d.c \
22 jp3d_lib.c \
23 volume.c \
24 mct.c \
25 mqc.c \
26 openjpeg.c \
27 pi.c \
28 raw.c \
29 t1.c \
30 t1_3d.c \
31 t2.c \
32 tcd.c \
33 tgt.c \
34 bio.h \
35 cio.h \
36 dwt.h \
37 event.h \
38 fix.h \
39 int.h \
40 jp3d.h \
41 jp3d_lib.h \
42 mct.h \
43 mqc.h \
44 opj_includes.h \
45 pi.h \
46 raw.h \
47 t1.h \
48 t1_3d.h \
49 t2.h \
50 tcd.h \
51 tgt.h \
52 volume.h
53
54 EXTRA_DIST = \
55 CMakeLists.txt
56
57 install-data-hook:
58         cd $(DESTDIR)$(includedir) && \
59           rm -f openjpeg3d.h && \
60           $(LN_S) openjpeg3d-@JP3D_MAJOR_NR@.@JP3D_MINOR_NR@/openjpeg3d.h \
61                   openjpeg3d.h
62         @echo -e " (LA)\t$(libdir)/libopenjp3dvm.la" >> $(top_builddir)/report.txt
63         @( $(call solist) ) >> $(top_builddir)/report.txt
64         @echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
65         @echo -e " (H)\t$(includedir)/openjpeg3d-$(MAJOR_NR).$(MINOR_NR)/openjpeg3d.h" >> $(top_builddir)/report.txt
66         @echo -e " (LN)\t$(includedir)/openjpeg3d.h" >> $(top_builddir)/report.txt
67
68 uninstall-hook:
69         rm -f $(DESTDIR)$(includedir)/openjpeg3d.h
70
71 solist    = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
72 get_tok   = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
73 base      = $(call get_tok,libdir)
74 so        = $(call get_tok,library_names)
75 a         = $(call get_tok,old_library)
76
77 if HAVE_WIN32
78 SO_PREFIX = (DLL)
79 dll       = $(call get_tok,dlname)
80 else
81 if HAVE_DARWIN
82 SO_PREFIX = (DY)
83 dll       =
84 else
85 SO_PREFIX = (SO)
86 dll       =
87 endif
88 endif