2011-03-04 11:53:27 +01:00
|
|
|
MAINTAINERCLEANFILES = Makefile.in
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libopenjp3dvm.la
|
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
includesdir = ${includedir}/openjpeg3d-@JP3D_MAJOR_NR@.@JP3D_MINOR_NR@
|
|
|
|
includes_HEADERS = openjpeg3d.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-10 18:08:50 +01:00
|
|
|
libopenjp3dvm_la_LDFLAGS = -no-undefined -version-info @lt_version_jp3d@
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
libopenjp3dvm_la_CPPFLAGS = \
|
|
|
|
-I. \
|
|
|
|
-I$(top_srcdir)/jp3d/libjp3dvm \
|
|
|
|
-I$(top_builddir)/jp3d/libjp3dvm
|
|
|
|
libopenjp3dvm_la_CFLAGS =
|
|
|
|
libopenjp3dvm_la_LIBADD = -lm
|
|
|
|
libopenjp3dvm_la_SOURCES = \
|
|
|
|
bio.c \
|
|
|
|
cio.c \
|
|
|
|
dwt.c \
|
|
|
|
event.c \
|
|
|
|
jp3d.c \
|
|
|
|
jp3d_lib.c \
|
|
|
|
volume.c \
|
|
|
|
mct.c \
|
|
|
|
mqc.c \
|
|
|
|
openjpeg.c \
|
|
|
|
pi.c \
|
|
|
|
raw.c \
|
|
|
|
t1.c \
|
|
|
|
t1_3d.c \
|
|
|
|
t2.c \
|
|
|
|
tcd.c \
|
|
|
|
tgt.c \
|
|
|
|
bio.h \
|
|
|
|
cio.h \
|
|
|
|
dwt.h \
|
|
|
|
event.h \
|
|
|
|
fix.h \
|
|
|
|
int.h \
|
|
|
|
jp3d.h \
|
|
|
|
jp3d_lib.h \
|
|
|
|
mct.h \
|
|
|
|
mqc.h \
|
|
|
|
opj_includes.h \
|
|
|
|
pi.h \
|
|
|
|
raw.h \
|
|
|
|
t1.h \
|
|
|
|
t1_3d.h \
|
|
|
|
t2.h \
|
|
|
|
tcd.h \
|
|
|
|
tgt.h \
|
|
|
|
volume.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
EXTRA_DIST = \
|
|
|
|
CMakeLists.txt
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
install-data-hook:
|
|
|
|
cd $(DESTDIR)$(includedir) && \
|
|
|
|
rm -f openjpeg3d.h && \
|
|
|
|
$(LN_S) openjpeg3d-@JP3D_MAJOR_NR@.@JP3D_MINOR_NR@/openjpeg3d.h \
|
|
|
|
openjpeg3d.h
|
|
|
|
@echo -e " (LA)\t$(libdir)/libopenjp3dvm.la" >> $(top_builddir)/report.txt
|
|
|
|
@( $(call solist) ) >> $(top_builddir)/report.txt
|
2011-03-04 12:03:33 +01:00
|
|
|
@echo -e " (A)\t$(base)/$(a)" >> $(top_builddir)/report.txt
|
|
|
|
@echo -e " (H)\t$(includedir)/openjpeg3d-$(MAJOR_NR).$(MINOR_NR)/openjpeg3d.h" >> $(top_builddir)/report.txt
|
2011-03-04 11:53:27 +01:00
|
|
|
@echo -e " (LN)\t$(includedir)/openjpeg3d.h" >> $(top_builddir)/report.txt
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
uninstall-hook:
|
|
|
|
rm -f $(DESTDIR)$(includedir)/openjpeg3d.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
solist = $(foreach f, $(dll) $(so), echo -e ' $(SO_PREFIX)\t$(base)/$(f)' ;)
|
|
|
|
get_tok = $(shell grep -E "^$(1)=" $(lib_LTLIBRARIES) | cut -d "'" -f 2)
|
|
|
|
base = $(call get_tok,libdir)
|
|
|
|
so = $(call get_tok,library_names)
|
|
|
|
a = $(call get_tok,old_library)
|
2010-10-05 12:33:15 +02:00
|
|
|
|
2011-03-04 11:53:27 +01:00
|
|
|
if HAVE_WIN32
|
|
|
|
SO_PREFIX = (DLL)
|
|
|
|
dll = $(call get_tok,dlname)
|
2010-12-14 04:33:31 +01:00
|
|
|
else
|
2011-03-04 11:53:27 +01:00
|
|
|
if HAVE_DARWIN
|
|
|
|
SO_PREFIX = (DY)
|
|
|
|
dll =
|
|
|
|
else
|
|
|
|
SO_PREFIX = (SO)
|
|
|
|
dll =
|
2011-01-07 04:20:58 +01:00
|
|
|
endif
|
|
|
|
endif
|