3 MAJOR = @JP3D_MAJOR_NR@
4 MINOR = @JP3D_MINOR_NR@
5 BUILD = @JP3D_BUILD_NR@
6 CURRENT=`expr $(MAJOR) + $(MINOR)`
8 lib_LTLIBRARIES = libopenjp3dvm.la
10 libopenjp3dvm_la_LDFLAGS = -no-undefined \
11 -version-info $(CURRENT):$(BUILD):$(MINOR)
13 SRCS = bio.c cio.c dwt.c event.c jp3d.c jp3d_lib.c volume.c mct.c mqc.c \
14 openjpeg.c pi.c raw.c t1.c t1_3d.c t2.c tcd.c tgt.c
16 INCLS = t1_3d.h bio.h cio.h dwt.h event.h fix.h int.h jp3d.h jp3d_lib.h \
17 volume.h mct.h mqc.h pi.h raw.h t1.h t2.h tcd.h tgt.h opj_includes.h
19 libopenjp3dvm_la_SOURCES = $(SRCS) $(INCLS)
21 includedir = ${prefix}/include/openjpeg3d-$(MAJOR).$(MINOR)
22 include_HEADERS = openjpeg.h
24 # Converts cr/lf to just lf
28 @$(DOS2UNIX) $(SRCS) $(INCLS)
31 INCLUDES = -I../.. -I.. -I.
32 COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
34 CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
35 #CFLAGS += -DJP3D_VERSION="\"$(MAJOR).$(MINOR).$(BUILD)\""
37 headerdir = openjpeg3d-$(MAJOR).$(MINOR)
40 @$(INSTALL) -d ../../bin
41 @cp -P .libs/libopenjp3dvm.* ../../bin
42 @rm -f ../../bin/libopenjp3dvm.la*
44 @$(INSTALL) -d .report_lib
45 @cp -P .libs/libopenjp3dvm.* .report_lib
46 @rm -f .report_lib/libopenjp3dvm.lai
47 @echo "" > ../.report.txt
48 @echo "Installing: ${prefix}/include/${headerdir}/" >> ../.report.txt
49 @echo "Installing: ${prefix}/include/${headerdir}/openjpeg3d.h" >> ../.report.txt
53 echo "Installing: ${prefix}/lib/$$f" >> ../../.report.txt ; \
58 (cd $(DESTDIR)${prefix}/include && rm -f openjpeg3d.h)
59 (cd ${prefix}/include/${headerdir} && mv openjpeg.h openjpeg3d.h)
60 (cd $(DESTDIR)${prefix}/include && \
61 $(LN_S) ${headerdir}/openjpeg3d.h openjpeg3d.h)
64 (cd $(DESTDIR)${prefix}/include && rm -rf openjpeg3d.h ${headerdir})