f856a5fa435e707a95cdb53cbb730d1b38303785
[openjpeg.git] / codec / Makefile.am
1 COMPILERFLAGS = -Wall
2
3 if with_staticlibs
4 COMPILERFLAGS += -static
5 endif
6
7 USERLIBS = -lm
8 INCLUDES = -I.. -I. -I../libopenjpeg -I../common
9
10 if with_libtiff
11 INCLUDES += @tiffincludes@
12 USERLIBS += @tifflibs@
13 endif
14
15 if with_libpng
16 INCLUDES += @pngincludes@
17 USERLIBS += @pnglibs@
18 endif
19
20 if with_liblcms2
21 INCLUDES += @lcms2includes@
22 USERLIBS += @lcms2libs@
23 endif
24
25 if with_liblcms1
26 INCLUDES += @lcms1includes@
27 USERLIBS += @lcms1libs@
28 endif
29
30 bin_PROGRAMS = j2k_to_image image_to_j2k j2k_dump
31
32 CFLAGS = $(COMPILERFLAGS) $(INCLUDES)
33 LDADD = $(USERLIBS) ../libopenjpeg/libopenjpeg.la
34
35 j2k_to_image_SOURCES = ../common/getopt.c index.c convert.c \
36         ../common/color.c j2k_to_image.c
37
38 image_to_j2k_SOURCES = ../common/getopt.c index.c convert.c image_to_j2k.c
39
40 j2k_dump_SOURCES = ../common/getopt.c index.c j2k_dump.c
41
42 REPBIN=$(bin_PROGRAMS)
43
44 all-local:
45         $(INSTALL) -d ../bin
46         $(INSTALL) $(bin_PROGRAMS) ../bin
47         @echo "" > .report.txt
48         @for f in ${REPBIN} ; do \
49         echo "Installing: ${prefix}/bin/$$f" >> .report.txt ; \
50         done