Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

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