You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Makefile.am 4.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. noinst_LTLIBRARIES = libjpeg.la
  2. noinst_HEADERS = jerror.h jmorecfg.h jpeglib.h
  3. nodist_noinst_HEADERS = jconfig.h
  4. HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
  5. jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h
  6. libjpeg_la_SOURCES = $(HDRS) jcapimin.c jcapistd.c jccoefct.c jccolor.c \
  7. jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
  8. jcomapi.c jcparam.c jcphuff.c jcprepct.c jcsample.c jctrans.c \
  9. jdapimin.c jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
  10. jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
  11. jdmerge.c jdphuff.c jdpostct.c jdsample.c jdtrans.c jerror.c \
  12. jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c \
  13. jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c
  14. if WITH_SIMD
  15. SUBDIRS = simd
  16. libjpeg_la_LIBADD = simd/libsimd.la
  17. else
  18. libjpeg_la_SOURCES += jsimd_none.c
  19. endif
  20. TSTHDRS = turbojpeg.h rrutil.h rrtimer.h
  21. noinst_PROGRAMS = jpgtest jpegut cjpeg djpeg jpegtran
  22. jpgtest_SOURCES = $(TSTHDRS) jpgtest.cxx bmp.h bmp.c turbojpegl.c
  23. jpgtest_LDADD = libjpeg.la
  24. jpegut_SOURCES = $(TSTHDRS) jpegut.c bmp.h bmp.c turbojpegl.c
  25. jpegut_LDADD = libjpeg.la
  26. cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \
  27. rdppm.c rdswitch.c rdtarga.c
  28. cjpeg_LDADD = libjpeg.la
  29. cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
  30. -DTARGA_SUPPORTED
  31. djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \
  32. wrbmp.c wrgif.c wrppm.c wrtarga.c
  33. djpeg_LDADD = libjpeg.la
  34. djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \
  35. -DTARGA_SUPPORTED
  36. jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c transupp.h
  37. jpegtran_LDADD = libjpeg.la
  38. DOCS= jconfig.doc README README-turbo.txt LICENSE.txt LGPL.txt \
  39. README_TigerVNC.txt
  40. TESTFILES= testorig.jpg testorig.ppm testimg.bmp testimgflt.jpg \
  41. testimgfst.jpg testimgint.jpg testimgp.jpg testimgflt.ppm testimgfst.ppm \
  42. testimgint.ppm testimgflt-nosimd.jpg
  43. EXTRA_DIST = win $(DOCS) $(TESTFILES) CMakeLists.txt
  44. dist-hook:
  45. rm -rf `find $(distdir) -name .svn`
  46. if WITH_SIMD
  47. test: testclean all
  48. ./jpegut
  49. ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testorig.ppm
  50. ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testorig.ppm
  51. ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testorig.ppm
  52. cmp $(srcdir)/testimgint.jpg testoutint.jpg
  53. cmp $(srcdir)/testimgfst.jpg testoutfst.jpg
  54. cmp $(srcdir)/testimgflt.jpg testoutflt.jpg
  55. ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testorig.jpg
  56. ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testorig.jpg
  57. ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testorig.jpg
  58. cmp $(srcdir)/testimgint.ppm testoutint.ppm
  59. cmp $(srcdir)/testimgfst.ppm testoutfst.ppm
  60. cmp $(srcdir)/testimgflt.ppm testoutflt.ppm
  61. ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
  62. cmp $(srcdir)/testimg.bmp testout.bmp
  63. ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testorig.ppm
  64. cmp $(srcdir)/testimgp.jpg testoutp.jpg
  65. ./jpegtran -outfile testoutt.jpg testoutp.jpg
  66. cmp $(srcdir)/testimgint.jpg testoutt.jpg
  67. else
  68. test: testclean all
  69. ./jpegut
  70. ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testorig.ppm
  71. ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testorig.ppm
  72. ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testorig.ppm
  73. cmp $(srcdir)/testimgint.jpg testoutint.jpg
  74. cmp $(srcdir)/testimgfst.jpg testoutfst.jpg
  75. cmp $(srcdir)/testimgflt-nosimd.jpg testoutflt.jpg
  76. ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testorig.jpg
  77. ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testorig.jpg
  78. ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testorig.jpg
  79. cmp $(srcdir)/testimgint.ppm testoutint.ppm
  80. cmp $(srcdir)/testimgfst.ppm testoutfst.ppm
  81. cmp $(srcdir)/testorig.ppm testoutflt.ppm
  82. ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
  83. cmp $(srcdir)/testimg.bmp testout.bmp
  84. ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testorig.ppm
  85. cmp $(srcdir)/testimgp.jpg testoutp.jpg
  86. ./jpegtran -outfile testoutt.jpg testoutp.jpg
  87. cmp $(srcdir)/testimgint.jpg testoutt.jpg
  88. endif
  89. testclean:
  90. rm -f testout*
  91. rm -f *_GRAYQ[0-9]*.bmp
  92. rm -f *_GRAYQ[0-9]*.ppm
  93. rm -f *_GRAYQ[0-9]*.jpg
  94. rm -f *_420Q[0-9]*.bmp
  95. rm -f *_420Q[0-9]*.ppm
  96. rm -f *_420Q[0-9]*.jpg
  97. rm -f *_422Q[0-9]*.bmp
  98. rm -f *_422Q[0-9]*.ppm
  99. rm -f *_422Q[0-9]*.jpg
  100. rm -f *_444Q[0-9]*.bmp
  101. rm -f *_444Q[0-9]*.ppm
  102. rm -f *_444Q[0-9]*.jpg