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