2010-10-05 12:33:15 +02:00
|
|
|
#libjp3dvm
|
|
|
|
#
|
|
|
|
MAJOR = @JP3D_MAJOR_NR@
|
|
|
|
MINOR = @JP3D_MINOR_NR@
|
|
|
|
BUILD = @JP3D_BUILD_NR@
|
|
|
|
CURRENT=`expr $(MAJOR) + $(MINOR)`
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libopenjp3dvm.la
|
|
|
|
|
|
|
|
libopenjp3dvm_la_LDFLAGS = -no-undefined \
|
|
|
|
-version-info $(CURRENT):$(BUILD):$(MINOR)
|
|
|
|
|
|
|
|
SRCS = 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
|
|
|
|
|
|
|
|
INCLS = t1_3d.h bio.h cio.h dwt.h event.h fix.h int.h jp3d.h jp3d_lib.h \
|
|
|
|
volume.h mct.h mqc.h pi.h raw.h t1.h t2.h tcd.h tgt.h opj_includes.h
|
|
|
|
|
|
|
|
libopenjp3dvm_la_SOURCES = $(SRCS) $(INCLS)
|
|
|
|
|
|
|
|
includedir = ${prefix}/include/openjpeg3d-$(MAJOR).$(MINOR)
|
2010-12-09 11:34:47 +01:00
|
|
|
include_HEADERS = openjpeg3d.h
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
# Converts cr/lf to just lf
|
|
|
|
DOS2UNIX = dos2unix
|
|
|
|
|
|
|
|
dos2unix:
|
|
|
|
@$(DOS2UNIX) $(SRCS) $(INCLS)
|
|
|
|
|
2010-12-14 04:33:31 +01:00
|
|
|
INCLUDES = -I../.. -I.
|
2010-10-05 12:33:15 +02:00
|
|
|
COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
|
|
|
|
|
2010-12-14 04:33:31 +01:00
|
|
|
if with_sharedlibs
|
|
|
|
COMPILERFLAGS += -DOPJ_EXPORTS
|
|
|
|
else
|
|
|
|
COMPILERFLAGS += -DOPJ_STATIC
|
|
|
|
libopenjp3dvm_la_LDFLAGS += -static
|
|
|
|
endif
|
|
|
|
|
2010-10-05 12:33:15 +02:00
|
|
|
CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
|
|
|
|
#CFLAGS += -DJP3D_VERSION="\"$(MAJOR).$(MINOR).$(BUILD)\""
|
|
|
|
|
|
|
|
headerdir = openjpeg3d-$(MAJOR).$(MINOR)
|
|
|
|
|
|
|
|
all-local:
|
|
|
|
@$(INSTALL) -d ../../bin
|
2011-01-07 04:20:58 +01:00
|
|
|
@rm -rf .report_dir
|
|
|
|
@$(INSTALL) -d .report_dir
|
|
|
|
if build_so
|
|
|
|
if with_sharedlibs
|
|
|
|
@find .libs -type f -name "*\.so*" -exec cp -P {} .report_dir \;
|
|
|
|
@find .libs -type l -name "*\.so*" -exec cp -P {} .report_dir \;
|
|
|
|
else !with_sharedlibs
|
|
|
|
@find .libs -type f -name "*\.a" -exec cp -P {} .report_dir \;
|
|
|
|
endif !with_sharedlibs
|
|
|
|
endif
|
|
|
|
if build_dll
|
|
|
|
if with_sharedlibs
|
|
|
|
@find .libs -type f -name "*\.dll" -exec cp -P {} .report_dir \;
|
|
|
|
@find .libs -type f -name "*\.a" -exec cp -P {} .report_dir \;
|
|
|
|
else !with_sharedlibs
|
|
|
|
@find .libs -type f -name "*\.a" -exec cp -P {} .report_dir \;
|
|
|
|
endif !with_sharedlibs
|
|
|
|
endif
|
|
|
|
if build_dylib
|
|
|
|
if with_sharedlibs
|
|
|
|
@find .libs -type f -name "*\.dylib" -exec cp -P {} .report_dir \;
|
|
|
|
else !with_sharedlibs
|
|
|
|
@find .libs -type l -name "*\.a" -exec cp -P {} .report_dir \;
|
|
|
|
endif !with_sharedlibs
|
|
|
|
endif
|
|
|
|
@cp -a .report_dir/* ../../bin
|
2010-10-05 12:33:15 +02:00
|
|
|
@echo "" > ../.report.txt
|
|
|
|
@echo "Installing: ${prefix}/include/${headerdir}/" >> ../.report.txt
|
2010-10-10 23:17:18 +02:00
|
|
|
@echo "Installing: ${prefix}/include/${headerdir}/openjpeg3d.h" >> ../.report.txt
|
2011-01-07 04:20:58 +01:00
|
|
|
@echo "Installing: ${prefix}/lib/libopenjp3dvm.la" >> ../.report.txt
|
|
|
|
@(cd .report_dir; \
|
|
|
|
for file in `ls *.dll 2> /dev/null` ; do \
|
|
|
|
echo "Installing: ${prefix}/bin/$${file}" >> ../../.report.txt ; \
|
|
|
|
done ; \
|
|
|
|
for file in `ls *.a 2> /dev/null` ; do \
|
|
|
|
echo "Installing: ${prefix}/lib/$${file}" >> ../../.report.txt ; \
|
|
|
|
done ; \
|
|
|
|
for file in `ls *.so* 2> /dev/null` ; do \
|
|
|
|
echo "Installing: ${prefix}/lib/$${file}" >> ../../.report.txt ; \
|
|
|
|
done ; \
|
|
|
|
for file in `ls *.dylib 2> /dev/null` ; do \
|
|
|
|
echo "Installing: ${prefix}/lib/$${file}" >> ../../.report.txt ; \
|
|
|
|
done \
|
|
|
|
)
|
|
|
|
@rm -rf .report_dir
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
(cd $(DESTDIR)${prefix}/include && rm -f openjpeg3d.h)
|
|
|
|
(cd $(DESTDIR)${prefix}/include && \
|
2010-10-10 23:17:18 +02:00
|
|
|
$(LN_S) ${headerdir}/openjpeg3d.h openjpeg3d.h)
|
2010-10-05 12:33:15 +02:00
|
|
|
|
|
|
|
uninstall-hook:
|
|
|
|
(cd $(DESTDIR)${prefix}/include && rm -rf openjpeg3d.h ${headerdir})
|