4 CURRENT=`expr $(MAJOR) + $(MINOR)`
6 lib_LTLIBRARIES = libopenjpeg.la
10 libopenjpeg_la_LDFLAGS = -no-undefined \
11 -version-info $(CURRENT):$(BUILD):$(MINOR)
13 SRCS = bio.c cio.c dwt.c event.c image.c j2k.c j2k_lib.c jp2.c jpt.c \
14 mct.c mqc.c openjpeg.c pi.c raw.c t1.c t2.c tcd.c tgt.c
16 INCLS = bio.h cio.h dwt.h event.h fix.h image.h int.h j2k.h j2k_lib.h \
17 jp2.h jpt.h mct.h mqc.h pi.h raw.h t1.h t2.h tcd.h tgt.h opj_malloc.h \
20 libopenjpeg_la_SOURCES = $(SRCS) $(INCLS)
22 includedir = ${prefix}/include/openjpeg-$(MAJOR).$(MINOR)
23 include_HEADERS = openjpeg.h
25 # Converts cr/lf to just lf
29 @$(DOS2UNIX) $(SRCS) $(INCLS)
31 COMPILERFLAGS = -Wall -O3 -ffast-math -std=c99
33 CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
35 headerdir = openjpeg-$(MAJOR).$(MINOR)
39 @cp -P .libs/libopenjpeg.* ../bin/
40 @rm -f ../bin/libopenjpeg.la*
42 @$(INSTALL) -d .report_lib
43 @cp -P .libs/libopenjpeg.* .report_lib
44 @rm -f .report_lib/libopenjpeg.lai
45 @echo "" > .report.txt
46 @echo "Installing: ${prefix}/include/${headerdir}/" >> .report.txt
47 @echo "Installing: ${prefix}/include/${headerdir}/openjpeg.h" >> .report.txt
51 echo "Installing: ${prefix}/lib/$$f" >> ../.report.txt ; \
56 (cd $(DESTDIR)${prefix}/include && rm -f openjpeg.h)
57 (cd $(DESTDIR)${prefix}/include && \
58 $(LN_S) ${headerdir}/openjpeg.h openjpeg.h)
61 (cd $(DESTDIR)${prefix}/include && rm -rf openjpeg.h ${headerdir})