b0837fa9cfc63436343c7766de537837e0c47ac9
[openjpeg.git] / codec / Makefile.am
1 COMPILERFLAGS = -Wall
2 USERLIBS = -lm
3 INCLUDES = -I.. -I. -I../libopenjpeg
4
5 if with_libjpwl
6 USERLIBS += -L../jpwl -lopenjpeg_JPWL
7 COMPILERFLAGS += -DUSE_JPWL
8 endif
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 = compat/getopt.c index.c convert.c j2k_to_image.c
36
37 image_to_j2k_SOURCES = compat/getopt.c index.c convert.c image_to_j2k.c
38
39 j2k_dump_SOURCES = compat/getopt.c index.c j2k_dump.c
40
41 REPBIN=$(bin_PROGRAMS)
42
43 all-local:
44         $(INSTALL) -d ../bin
45         $(INSTALL) $(bin_PROGRAMS) ../bin
46         @echo "" > .report.txt
47         @for f in ${REPBIN} ; do \
48         echo "Installing: ${prefix}/bin/$$f" >> .report.txt ; \
49         done