4 CURRENT=`expr $(MAJOR) + $(MINOR)`
6 lib_LTLIBRARIES = libopenjpeg.la
10 libopenjpeg_la_LDFLAGS = -no-undefined \
11 -version-info $(CURRENT):$(BUILD):$(MINOR)
13 libopenjpeg_la_LIBADD = @LDLIBS@
15 SRCS = bio.c cio.c dwt.c event.c image.c j2k.c j2k_lib.c jp2.c jpt.c \
16 mct.c mqc.c openjpeg.c pi.c raw.c t1.c t2.c tcd.c tgt.c opj_convert.c
18 INCLS = bio.h cio.h dwt.h event.h fix.h image.h int.h j2k.h j2k_lib.h \
19 jp2.h jpt.h mct.h mqc.h pi.h raw.h t1.h t2.h tcd.h tgt.h opj_malloc.h \
20 opj_convert.h opj_includes.h
22 libopenjpeg_la_SOURCES = $(SRCS) $(INCLS)
24 includedir = ${prefix}/include/openjpeg-$(MAJOR).$(MINOR)
25 include_HEADERS = openjpeg.h
27 # Converts cr/lf to just lf
31 @$(DOS2UNIX) $(SRCS) $(INCLS)
33 COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
36 INCLUDES += @lcms1includes@
40 INCLUDES += @lcms2includes@
43 CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
45 headerdir = openjpeg-$(MAJOR).$(MINOR)
49 @cp -P .libs/libopenjpeg.* ../bin/
50 @rm -f ../bin/libopenjpeg.la*
52 @$(INSTALL) -d .report_lib
53 @cp -P .libs/libopenjpeg.* .report_lib
54 @rm -f .report_lib/libopenjpeg.lai
55 @echo "" > .report.txt
56 @echo "Installing: ${prefix}/include/${headerdir}/" >> .report.txt
57 @echo "Installing: ${prefix}/include/${headerdir}/openjpeg.h" >> .report.txt
61 echo "Installing: ${prefix}/lib/$$f" >> ../.report.txt ; \
66 (cd $(DESTDIR)${prefix}/include && rm -f openjpeg.h)
67 (cd $(DESTDIR)${prefix}/include && \
68 $(LN_S) ${headerdir}/openjpeg.h openjpeg.h)
71 (cd $(DESTDIR)${prefix}/include && rm -rf openjpeg.h ${headerdir})