DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 1 | lib_LTLIBRARIES = libjpeg.la |
DRC | 6da61db | 2013-01-19 01:06:46 +0000 | [diff] [blame] | 2 | libjpeg_la_LDFLAGS = -version-info ${LIBTOOL_CURRENT}:${SO_MINOR_VERSION}:${SO_AGE} -no-undefined |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 3 | include_HEADERS = jerror.h jmorecfg.h jpeglib.h |
| 4 | |
| 5 | if WITH_TURBOJPEG |
| 6 | lib_LTLIBRARIES += libturbojpeg.la |
DRC | 2421115 | 2013-04-27 22:18:29 +0000 | [diff] [blame] | 7 | libturbojpeg_la_LDFLAGS = -version-info 1:0:1 -no-undefined |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 8 | include_HEADERS += turbojpeg.h |
| 9 | endif |
| 10 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 11 | nodist_include_HEADERS = jconfig.h |
DRC | 0c0f304 | 2010-01-28 05:34:53 +0000 | [diff] [blame] | 12 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 13 | |
Adam Tkac | da5a1fe | 2008-10-22 11:19:25 +0000 | [diff] [blame] | 14 | HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 15 | jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h jpegcomp.h |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 16 | |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 17 | libjpeg_la_SOURCES = $(HDRS) jcapimin.c jcapistd.c jccoefct.c jccolor.c \ |
| 18 | jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \ |
| 19 | jcomapi.c jcparam.c jcphuff.c jcprepct.c jcsample.c jctrans.c \ |
| 20 | jdapimin.c jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \ |
| 21 | jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \ |
| 22 | jdmerge.c jdphuff.c jdpostct.c jdsample.c jdtrans.c jerror.c \ |
| 23 | jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c \ |
| 24 | jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c |
| 25 | |
| 26 | if WITH_ARITH |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 27 | libjpeg_la_SOURCES += jaricom.c |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 28 | endif |
| 29 | |
| 30 | if WITH_ARITH_ENC |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 31 | libjpeg_la_SOURCES += jcarith.c |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 32 | endif |
| 33 | |
| 34 | if WITH_ARITH_DEC |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 35 | libjpeg_la_SOURCES += jdarith.c |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 36 | endif |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 37 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 38 | |
| 39 | SUBDIRS = java |
| 40 | |
| 41 | |
| 42 | if WITH_TURBOJPEG |
| 43 | |
DRC | 418dbdf | 2011-05-26 10:45:06 +0000 | [diff] [blame] | 44 | libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpeg.c turbojpeg.h \ |
DRC | 9b28def | 2011-05-21 14:37:15 +0000 | [diff] [blame] | 45 | transupp.c transupp.h jdatadst-tj.c jdatasrc-tj.c |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 46 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 47 | if WITH_JAVA |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 48 | |
| 49 | libturbojpeg_la_SOURCES += turbojpeg-jni.c |
DRC | e08c05f | 2011-03-31 08:03:26 +0000 | [diff] [blame] | 50 | libturbojpeg_la_CFLAGS = ${JNI_CFLAGS} |
DRC | f8e0055 | 2011-02-04 11:06:36 +0000 | [diff] [blame] | 51 | TJMAPFILE = turbojpeg-mapfile.jni |
| 52 | |
| 53 | else |
| 54 | |
| 55 | TJMAPFILE = turbojpeg-mapfile |
| 56 | |
| 57 | endif |
| 58 | |
| 59 | libturbojpeg_la_SOURCES += $(TJMAPFILE) |
DRC | 6f8c668 | 2010-02-16 05:03:51 +0000 | [diff] [blame] | 60 | |
| 61 | if VERSION_SCRIPT |
DRC | 9fa9559 | 2011-02-25 00:23:44 +0000 | [diff] [blame] | 62 | libturbojpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)$(srcdir)/$(TJMAPFILE) |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 63 | endif |
DRC | 6f8c668 | 2010-02-16 05:03:51 +0000 | [diff] [blame] | 64 | |
| 65 | endif |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 66 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 67 | |
| 68 | if VERSION_SCRIPT |
| 69 | libjpeg_la_LDFLAGS += $(VERSION_SCRIPT_FLAG)libjpeg.map |
| 70 | endif |
| 71 | |
| 72 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 73 | if WITH_SIMD |
| 74 | |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 75 | SUBDIRS += simd |
Pierre Ossman | 3a65ef4 | 2009-03-16 13:34:18 +0000 | [diff] [blame] | 76 | libjpeg_la_LIBADD = simd/libsimd.la |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 77 | libturbojpeg_la_LIBADD = simd/libsimd.la |
Pierre Ossman | 2ae181c | 2009-03-09 13:21:27 +0000 | [diff] [blame] | 78 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 79 | else |
| 80 | |
| 81 | libjpeg_la_SOURCES += jsimd_none.c |
| 82 | |
| 83 | endif |
| 84 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 85 | |
| 86 | bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom |
| 87 | noinst_PROGRAMS = jcstest |
| 88 | |
| 89 | |
| 90 | if WITH_TURBOJPEG |
| 91 | |
| 92 | bin_PROGRAMS += tjbench |
| 93 | |
| 94 | noinst_PROGRAMS += tjunittest |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 95 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 96 | tjbench_SOURCES = tjbench.c bmp.h bmp.c tjutil.h tjutil.c rdbmp.c rdppm.c \ |
DRC | 18821f8 | 2011-05-24 17:07:51 +0000 | [diff] [blame] | 97 | wrbmp.c wrppm.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 98 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 99 | tjbench_LDADD = libturbojpeg.la libjpeg.la -lm |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 100 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 101 | tjbench_CFLAGS = -DBMP_SUPPORTED -DPPM_SUPPORTED |
DRC | be49b8c | 2011-05-24 13:41:27 +0000 | [diff] [blame] | 102 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 103 | tjunittest_SOURCES = tjunittest.c tjutil.h tjutil.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 104 | |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 105 | tjunittest_LDADD = libturbojpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 106 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 107 | endif |
| 108 | |
| 109 | |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 110 | cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \ |
| 111 | rdppm.c rdswitch.c rdtarga.c |
| 112 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 113 | cjpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 114 | |
| 115 | cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 116 | -DTARGA_SUPPORTED |
| 117 | |
| 118 | djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \ |
| 119 | wrbmp.c wrgif.c wrppm.c wrtarga.c |
| 120 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 121 | djpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 122 | |
| 123 | djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 124 | -DTARGA_SUPPORTED |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 125 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 126 | jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c transupp.h |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 127 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 128 | jpegtran_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 129 | |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 130 | rdjpgcom_SOURCES = rdjpgcom.c |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 131 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 132 | rdjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 133 | |
| 134 | wrjpgcom_SOURCES = wrjpgcom.c |
| 135 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame] | 136 | wrjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 137 | |
DRC | b76c840 | 2011-12-19 15:01:55 +0000 | [diff] [blame] | 138 | jcstest_SOURCES = jcstest.c |
| 139 | |
| 140 | jcstest_LDADD = libjpeg.la |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 141 | |
DRC | cbda81a | 2010-06-05 01:12:35 +0000 | [diff] [blame] | 142 | dist_man1_MANS = cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 143 | |
DRC | 2f12d7a | 2013-01-13 01:19:09 +0000 | [diff] [blame] | 144 | DOCS= coderules.txt jconfig.txt change.log rdrle.c wrrle.c BUILDING.txt \ |
| 145 | ChangeLog.txt |
DRC | a1647c8 | 2012-02-10 00:39:05 +0000 | [diff] [blame] | 146 | |
| 147 | docdir = $(datadir)/doc |
DRC | 01bf9d9 | 2012-02-10 01:52:31 +0000 | [diff] [blame] | 148 | dist_doc_DATA = README README-turbo.txt libjpeg.txt structure.txt usage.txt \ |
DRC | a1647c8 | 2012-02-10 00:39:05 +0000 | [diff] [blame] | 149 | wizard.txt |
| 150 | |
| 151 | exampledir = $(datadir)/doc |
DRC | 01bf9d9 | 2012-02-10 01:52:31 +0000 | [diff] [blame] | 152 | dist_example_DATA = example.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 153 | |
DRC | 750e078 | 2011-05-10 21:05:49 +0000 | [diff] [blame] | 154 | |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 155 | EXTRA_DIST = win release $(DOCS) testimages CMakeLists.txt \ |
DRC | a006fba | 2011-10-27 23:25:28 +0000 | [diff] [blame] | 156 | sharedlib/CMakeLists.txt cmakescripts libjpeg.map.in doc doxygen.config \ |
| 157 | jccolext.c jdcolext.c jdmrgext.c |
DRC | 0a945a1 | 2010-02-15 11:04:51 +0000 | [diff] [blame] | 158 | |
| 159 | dist-hook: |
| 160 | rm -rf `find $(distdir) -name .svn` |
| 161 | |
| 162 | |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 163 | SUBDIRS += md5 |
| 164 | |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 165 | MD5_JPEG_INT = 9a68f56bc76e466aa7e52f415d0f4a5f |
| 166 | MD5_JPEG_FAST = 0e1502e7fa421835e376a314fac2a39f |
| 167 | MD5_JPEG_FAST_100 = 7bf72a8e741d64eecb960c97323af77c |
| 168 | MD5_JPEG_FLOAT = d1623885ffafcd40c684af09e3d65cd5 |
| 169 | MD5_JPEG_FLOAT_NOSIMD = fb4884c35f8273f498cb32879de5c455 |
| 170 | MD5_JPEG_INT_GRAY = 72b51f894b8f4a10b3ee3066770aa38d |
| 171 | MD5_PPM_INT = d1ed0d11f076b842525271647716aeb8 |
| 172 | MD5_PPM_FAST = 048298a2d2410261c0533cb97bcfef23 |
| 173 | MD5_PPM_FLOAT = 7f5b446ee36b2630e06785b8d42af15f |
| 174 | MD5_PPM_FLOAT_NOSIMD = 64072f1dbdc5b3a187777788604971a5 |
| 175 | MD5_PPM_INT_2_1 = 9f9de8c0612f8d06869b960b05abf9c9 |
| 176 | MD5_PPM_INT_15_8 = b6875bc070720b899566cc06459b63b7 |
| 177 | MD5_PPM_INT_7_4 = 06a177eae05f164fac57f7a2c346ee87 |
| 178 | MD5_PPM_INT_13_8 = bc3452573c8152f6ae552939ee19f82f |
| 179 | MD5_PPM_INT_3_2 = f5a8b88a8a7f96016f04d259cf82ed67 |
| 180 | MD5_PPM_INT_11_8 = d8cc73c0aaacd4556569b59437ba00a5 |
| 181 | MD5_PPM_INT_5_4 = 32775dd9ad2ab90f4c5b219b53e0c86c |
| 182 | MD5_PPM_INT_9_8 = d25e61bc7eac0002f5b393aa223747b6 |
| 183 | MD5_PPM_INT_7_8 = ddb564b7c74a09494016d6cd7502a946 |
| 184 | MD5_PPM_INT_3_4 = 8ed8e68808c3fbc4ea764fc9d2968646 |
| 185 | MD5_PPM_INT_5_8 = a3363274999da2366a024efae6d16c9b |
| 186 | MD5_PPM_INT_1_2 = e692a315cea26b988c8e8b29a5dbcd81 |
| 187 | MD5_PPM_INT_3_8 = 79eca9175652ced755155c90e785a996 |
| 188 | MD5_PPM_INT_1_4 = 79cd778f8bf1a117690052cacdd54eca |
| 189 | MD5_PPM_INT_1_8 = 391b3d4aca640c8567d6f8745eb2142f |
| 190 | MD5_PPM_FAST_1_2 = f30bcf6d32ccd44cbdd9aeaacbd9454f |
| 191 | MD5_BMP_256 = 4980185e3776e89bd931736e1cddeee6 |
| 192 | MD5_JPEG_ARI = e986fb0a637a8d833d96e8a6d6d84ea1 |
| 193 | MD5_PPM_ARI = 72b59a99bcf1de24c5b27d151bde2437 |
| 194 | MD5_JPEG_PROG = 1c4afddc05c0a43489ee54438a482d92 |
DRC | 4b50928 | 2013-11-06 06:55:28 +0000 | [diff] [blame] | 195 | MD5_JPEG_PROG_ARI = 0a8f1c8f66e113c3cf635df0a475a617 |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 196 | MD5_JPEG_CROP = b4197f377e621c4e9b1d20471432610d |
| 197 | |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 198 | test: testclean all |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 199 | if WITH_TURBOJPEG |
DRC | 38cb1ec | 2013-08-23 04:45:43 +0000 | [diff] [blame] | 200 | if WITH_JAVA |
| 201 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest |
| 202 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -bi |
| 203 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv |
| 204 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -noyuvpad |
| 205 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi |
| 206 | $(JAVA) -cp java/turbojpeg.jar -Djava.library.path=.libs TJUnitTest -yuv -bi -noyuvpad |
| 207 | endif |
DRC | 3185cb9 | 2011-05-25 03:52:22 +0000 | [diff] [blame] | 208 | ./tjunittest |
| 209 | ./tjunittest -alloc |
| 210 | ./tjunittest -yuv |
DRC | 910a357 | 2013-10-30 23:02:57 +0000 | [diff] [blame] | 211 | ./tjunittest -yuv -alloc |
DRC | f610d61 | 2013-04-26 10:33:29 +0000 | [diff] [blame] | 212 | ./tjunittest -yuv -noyuvpad |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 213 | endif |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 214 | ./cjpeg -dct int -outfile testoutint.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 215 | md5/md5cmp $(MD5_JPEG_INT) testoutint.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 216 | ./cjpeg -dct fast -opt -outfile testoutfst.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 217 | md5/md5cmp $(MD5_JPEG_FAST) testoutfst.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 218 | ./cjpeg -dct fast -quality 100 -opt -outfile testoutfst100.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 219 | md5/md5cmp $(MD5_JPEG_FAST_100) testoutfst100.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 220 | ./cjpeg -dct float -outfile testoutflt.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 221 | if WITH_SSE_FLOAT_DCT |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 222 | md5/md5cmp $(MD5_JPEG_FLOAT) testoutflt.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 223 | else |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 224 | md5/md5cmp $(MD5_JPEG_FLOAT_NOSIMD) testoutflt.jpg |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 225 | endif |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 226 | ./cjpeg -dct int -grayscale -outfile testoutgray.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 227 | md5/md5cmp $(MD5_JPEG_INT_GRAY) testoutgray.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 228 | ./djpeg -dct int -fast -ppm -outfile testoutint.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 229 | md5/md5cmp $(MD5_PPM_INT) testoutint.ppm |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 230 | ./djpeg -dct fast -ppm -outfile testoutfst.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 231 | md5/md5cmp $(MD5_PPM_FAST) testoutfst.ppm |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 232 | ./djpeg -dct float -ppm -outfile testoutflt.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 321e068 | 2011-05-03 08:47:43 +0000 | [diff] [blame] | 233 | if WITH_SSE_FLOAT_DCT |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 234 | md5/md5cmp $(MD5_PPM_FLOAT) testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 235 | else |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 236 | md5/md5cmp $(MD5_PPM_FLOAT_NOSIMD) testoutflt.ppm |
DRC | 66f97e6 | 2010-11-23 05:49:54 +0000 | [diff] [blame] | 237 | endif |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 238 | ./djpeg -dct int -nosmooth -scale 2/1 -ppm -outfile testoutint2_1.ppm $(srcdir)/testimages/testorig.jpg; |
| 239 | md5/md5cmp $(MD5_PPM_INT_2_1) testoutint2_1.ppm; |
| 240 | ./djpeg -dct int -nosmooth -scale 15/8 -ppm -outfile testoutint15_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 241 | md5/md5cmp $(MD5_PPM_INT_15_8) testoutint15_8.ppm; |
| 242 | ./djpeg -dct int -nosmooth -scale 7/4 -ppm -outfile testoutint7_4.ppm $(srcdir)/testimages/testorig.jpg; |
| 243 | md5/md5cmp $(MD5_PPM_INT_7_4) testoutint7_4.ppm; |
| 244 | ./djpeg -dct int -nosmooth -scale 13/8 -ppm -outfile testoutint13_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 245 | md5/md5cmp $(MD5_PPM_INT_13_8) testoutint13_8.ppm; |
| 246 | ./djpeg -dct int -nosmooth -scale 3/2 -ppm -outfile testoutint3_2.ppm $(srcdir)/testimages/testorig.jpg; |
| 247 | md5/md5cmp $(MD5_PPM_INT_3_2) testoutint3_2.ppm; |
| 248 | ./djpeg -dct int -nosmooth -scale 11/8 -ppm -outfile testoutint11_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 249 | md5/md5cmp $(MD5_PPM_INT_11_8) testoutint11_8.ppm; |
| 250 | ./djpeg -dct int -nosmooth -scale 5/4 -ppm -outfile testoutint5_4.ppm $(srcdir)/testimages/testorig.jpg; |
| 251 | md5/md5cmp $(MD5_PPM_INT_5_4) testoutint5_4.ppm; |
| 252 | ./djpeg -dct int -nosmooth -scale 9/8 -ppm -outfile testoutint9_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 253 | md5/md5cmp $(MD5_PPM_INT_9_8) testoutint9_8.ppm; |
| 254 | ./djpeg -dct int -nosmooth -scale 7/8 -ppm -outfile testoutint7_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 255 | md5/md5cmp $(MD5_PPM_INT_7_8) testoutint7_8.ppm; |
| 256 | ./djpeg -dct int -nosmooth -scale 3/4 -ppm -outfile testoutint3_4.ppm $(srcdir)/testimages/testorig.jpg; |
| 257 | md5/md5cmp $(MD5_PPM_INT_3_4) testoutint3_4.ppm; |
| 258 | ./djpeg -dct int -nosmooth -scale 5/8 -ppm -outfile testoutint5_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 259 | md5/md5cmp $(MD5_PPM_INT_5_8) testoutint5_8.ppm; |
| 260 | ./djpeg -dct int -nosmooth -scale 1/2 -ppm -outfile testoutint1_2.ppm $(srcdir)/testimages/testorig.jpg; |
| 261 | md5/md5cmp $(MD5_PPM_INT_1_2) testoutint1_2.ppm; |
| 262 | ./djpeg -dct int -nosmooth -scale 3/8 -ppm -outfile testoutint3_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 263 | md5/md5cmp $(MD5_PPM_INT_3_8) testoutint3_8.ppm; |
| 264 | ./djpeg -dct int -nosmooth -scale 1/4 -ppm -outfile testoutint1_4.ppm $(srcdir)/testimages/testorig.jpg; |
| 265 | md5/md5cmp $(MD5_PPM_INT_1_4) testoutint1_4.ppm; |
| 266 | ./djpeg -dct int -nosmooth -scale 1/8 -ppm -outfile testoutint1_8.ppm $(srcdir)/testimages/testorig.jpg; |
| 267 | md5/md5cmp $(MD5_PPM_INT_1_8) testoutint1_8.ppm; |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 268 | ./djpeg -dct fast -scale 1/2 -ppm -outfile testoutfst1_2.ppm $(srcdir)/testimages/testorig.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 269 | md5/md5cmp $(MD5_PPM_FAST_1_2) testoutfst1_2.ppm |
DRC | 211d1e7 | 2013-01-13 11:25:20 +0000 | [diff] [blame] | 270 | ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testimages/testorig.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 271 | md5/md5cmp $(MD5_BMP_256) testout.bmp |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 272 | if WITH_ARITH_ENC |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 273 | ./cjpeg -dct int -arithmetic -outfile testoutari.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 274 | md5/md5cmp $(MD5_JPEG_ARI) testoutari.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 275 | ./jpegtran -arithmetic -outfile testouta.jpg $(srcdir)/testimages/testimgint.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 276 | md5/md5cmp $(MD5_JPEG_ARI) testouta.jpg |
DRC | 4b50928 | 2013-11-06 06:55:28 +0000 | [diff] [blame] | 277 | ./cjpeg -dct int -progressive -arithmetic -sample 1x1 -outfile testoutpa.jpg $(srcdir)/testimages/testorig.ppm |
| 278 | md5/md5cmp $(MD5_JPEG_PROG_ARI) testoutpa.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 279 | endif |
| 280 | if WITH_ARITH_DEC |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 281 | ./djpeg -dct int -fast -ppm -outfile testoutari.ppm $(srcdir)/testimages/testimgari.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 282 | md5/md5cmp $(MD5_PPM_ARI) testoutari.ppm |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 283 | ./jpegtran -outfile testouta.jpg $(srcdir)/testimages/testimgari.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 284 | md5/md5cmp $(MD5_JPEG_INT) testouta.jpg |
DRC | e372004 | 2010-11-23 06:50:14 +0000 | [diff] [blame] | 285 | endif |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 286 | ./cjpeg -dct int -progressive -outfile testoutp.jpg $(srcdir)/testimages/testorig.ppm |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 287 | md5/md5cmp $(MD5_JPEG_PROG) testoutp.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 288 | ./jpegtran -outfile testoutt.jpg testoutp.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 289 | md5/md5cmp $(MD5_JPEG_INT) testoutt.jpg |
DRC | 7ab0364 | 2012-01-31 05:47:07 +0000 | [diff] [blame] | 290 | ./jpegtran -crop 120x90+20+50 -transpose -perfect -outfile testoutcrop.jpg $(srcdir)/testimages/testorig.jpg |
DRC | 0bf58f2 | 2013-02-06 23:51:08 +0000 | [diff] [blame] | 291 | md5/md5cmp $(MD5_JPEG_CROP) testoutcrop.jpg |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 292 | |
DRC | 83f2144 | 2010-06-10 18:52:41 +0000 | [diff] [blame] | 293 | |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 294 | testclean: |
DRC | 7b99172 | 2010-06-10 19:44:56 +0000 | [diff] [blame] | 295 | rm -f testout* |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 296 | rm -f *_GRAY_*.bmp |
| 297 | rm -f *_GRAY_*.png |
| 298 | rm -f *_GRAY_*.ppm |
| 299 | rm -f *_GRAY_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 300 | rm -f *_GRAY.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 301 | rm -f *_420_*.bmp |
| 302 | rm -f *_420_*.png |
| 303 | rm -f *_420_*.ppm |
| 304 | rm -f *_420_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 305 | rm -f *_420.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 306 | rm -f *_422_*.bmp |
| 307 | rm -f *_422_*.png |
| 308 | rm -f *_422_*.ppm |
| 309 | rm -f *_422_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 310 | rm -f *_422.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 311 | rm -f *_444_*.bmp |
| 312 | rm -f *_444_*.png |
| 313 | rm -f *_444_*.ppm |
| 314 | rm -f *_444_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 315 | rm -f *_444.yuv |
DRC | f2602ce | 2011-04-01 00:20:33 +0000 | [diff] [blame] | 316 | rm -f *_440_*.bmp |
| 317 | rm -f *_440_*.png |
| 318 | rm -f *_440_*.ppm |
| 319 | rm -f *_440_*.jpg |
DRC | ba6f457 | 2011-03-31 09:41:53 +0000 | [diff] [blame] | 320 | rm -f *_440.yuv |
DRC | 1f3635c | 2013-08-18 10:19:00 +0000 | [diff] [blame] | 321 | rm -f *_411_*.bmp |
| 322 | rm -f *_411_*.png |
| 323 | rm -f *_411_*.ppm |
| 324 | rm -f *_411_*.jpg |
| 325 | rm -f *_411.yuv |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 326 | |
DRC | cb6157b | 2012-01-31 11:38:13 +0000 | [diff] [blame] | 327 | |
| 328 | tjtest: |
| 329 | sh ./tjbenchtest |
| 330 | if WITH_JAVA |
DRC | fac3bea | 2012-09-24 02:27:55 +0000 | [diff] [blame] | 331 | sh ./tjbenchtest.java |
DRC | cb6157b | 2012-01-31 11:38:13 +0000 | [diff] [blame] | 332 | endif |
| 333 | |
| 334 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 335 | pkgscripts/libjpeg-turbo.spec: pkgscripts/libjpeg-turbo.spec.tmpl |
| 336 | cat pkgscripts/libjpeg-turbo.spec.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 337 | sed s@%{__bindir}@$(bindir)@g | sed s@%{__datadir}@$(datadir)@g | \ |
| 338 | sed s@%{__docdir}@$(docdir)@g | sed s@%{__includedir}@$(includedir)@g | \ |
| 339 | sed s@%{__libdir}@$(libdir)@g | sed s@%{__mandir}@$(mandir)@g \ |
| 340 | > pkgscripts/libjpeg-turbo.spec |
DRC | d1c281a | 2010-11-17 22:44:40 +0000 | [diff] [blame] | 341 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 342 | rpm: all pkgscripts/libjpeg-turbo.spec |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 343 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 344 | mkdir -p $$TMPDIR/RPMS; \ |
| 345 | ln -fs `pwd` $$TMPDIR/BUILD; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 346 | rm -f ${PKGNAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 347 | rpmbuild -bb --define "_blddir $$TMPDIR/buildroot" \ |
DRC | 57bd84f | 2012-02-10 01:40:29 +0000 | [diff] [blame] | 348 | --define "_topdir $$TMPDIR" \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 349 | --target ${RPMARCH} pkgscripts/libjpeg-turbo.spec; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 350 | cp $$TMPDIR/RPMS/${RPMARCH}/${PKGNAME}-${VERSION}-${BUILD}.${RPMARCH}.rpm \ |
| 351 | ${PKGNAME}-${VERSION}.${RPMARCH}.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 352 | rm -rf $$TMPDIR |
DRC | 079b434 | 2010-02-15 11:32:23 +0000 | [diff] [blame] | 353 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 354 | srpm: dist-gzip pkgscripts/libjpeg-turbo.spec |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 355 | TMPDIR=`mktemp -d /tmp/${PACKAGE_NAME}-build.XXXXXX`; \ |
| 356 | mkdir -p $$TMPDIR/RPMS; \ |
| 357 | mkdir -p $$TMPDIR/SRPMS; \ |
| 358 | mkdir -p $$TMPDIR/BUILD; \ |
| 359 | mkdir -p $$TMPDIR/SOURCES; \ |
| 360 | mkdir -p $$TMPDIR/SPECS; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 361 | rm -f ${PKGNAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 362 | cp ${PACKAGE_NAME}-${VERSION}.tar.gz $$TMPDIR/SOURCES; \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 363 | cat pkgscripts/libjpeg-turbo.spec | sed s/%{_blddir}/%{_tmppath}/g \ |
DRC | 57bd84f | 2012-02-10 01:40:29 +0000 | [diff] [blame] | 364 | | sed s/#--\>//g \ |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 365 | > $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 366 | rpmbuild -bs --define "_topdir $$TMPDIR" $$TMPDIR/SPECS/libjpeg-turbo.spec; \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 367 | cp $$TMPDIR/SRPMS/${PKGNAME}-${VERSION}-${BUILD}.src.rpm \ |
| 368 | ${PKGNAME}-${VERSION}.src.rpm; \ |
DRC | 1f80a10 | 2010-10-18 00:15:31 +0000 | [diff] [blame] | 369 | rm -rf $$TMPDIR |
DRC | 52a19f2 | 2010-02-15 12:06:27 +0000 | [diff] [blame] | 370 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 371 | pkgscripts/makedpkg: pkgscripts/makedpkg.tmpl |
| 372 | cat pkgscripts/makedpkg.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 373 | sed s@%{__docdir}@$(docdir)@g | sed s@%{__libdir}@$(libdir)@g \ |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 374 | > pkgscripts/makedpkg |
| 375 | |
| 376 | deb: all pkgscripts/makedpkg |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 377 | sh pkgscripts/makedpkg |
DRC | 6533b6e | 2010-02-15 14:57:18 +0000 | [diff] [blame] | 378 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 379 | pkgscripts/uninstall: pkgscripts/uninstall.tmpl |
| 380 | cat pkgscripts/uninstall.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 381 | sed s@%{__bindir}@$(bindir)@g | sed s@%{__datadir}@$(datadir)@g | \ |
| 382 | sed s@%{__includedir}@$(includedir)@g | sed s@%{__libdir}@$(libdir)@g | \ |
| 383 | sed s@%{__mandir}@$(mandir)@g > pkgscripts/uninstall |
| 384 | |
| 385 | pkgscripts/makemacpkg: pkgscripts/makemacpkg.tmpl |
| 386 | cat pkgscripts/makemacpkg.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 387 | sed s@%{__bindir}@$(bindir)@g | sed s@%{__docdir}@$(docdir)@g | \ |
| 388 | sed s@%{__libdir}@$(libdir)@g > pkgscripts/makemacpkg |
| 389 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 390 | if X86_64 |
| 391 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 392 | udmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | 7c6ae03 | 2012-03-23 00:51:56 +0000 | [diff] [blame] | 393 | sh pkgscripts/makemacpkg -build32 ${BUILDDIR32} |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 394 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 395 | iosdmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | a2a2cd6 | 2013-02-04 22:29:57 +0000 | [diff] [blame] | 396 | sh pkgscripts/makemacpkg -build32 ${BUILDDIR32} -buildarmv6 ${BUILDDIRARMV6} -buildarmv7 ${BUILDDIRARMV7} -buildarmv7s ${BUILDDIRARMV7S} |
DRC | 166c5ec | 2012-02-10 01:07:59 +0000 | [diff] [blame] | 397 | |
| 398 | else |
| 399 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 400 | iosdmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | a2a2cd6 | 2013-02-04 22:29:57 +0000 | [diff] [blame] | 401 | sh pkgscripts/makemacpkg -buildarmv6 ${BUILDDIRARMV6} -buildarmv7 ${BUILDDIRARMV7} -buildarmv7s ${BUILDDIRARMV7S} |
DRC | 1fbae84 | 2012-02-09 09:23:30 +0000 | [diff] [blame] | 402 | |
DRC | 315123f | 2010-02-15 16:14:26 +0000 | [diff] [blame] | 403 | endif |
| 404 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 405 | dmg: all pkgscripts/makemacpkg pkgscripts/uninstall |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 406 | sh pkgscripts/makemacpkg |
DRC | b9b1ca3 | 2010-02-17 02:24:02 +0000 | [diff] [blame] | 407 | |
DRC | 7175e51 | 2013-04-23 22:29:00 +0000 | [diff] [blame] | 408 | pkgscripts/makecygwinpkg: pkgscripts/makecygwinpkg.tmpl |
| 409 | cat pkgscripts/makecygwinpkg.tmpl | sed s@%{__prefix}@$(prefix)@g | \ |
| 410 | sed s@%{__docdir}@$(docdir)@g | sed s@%{__libdir}@$(libdir)@g \ |
| 411 | > pkgscripts/makecygwinpkg |
| 412 | |
DRC | 764e1e2 | 2013-04-19 04:25:14 +0000 | [diff] [blame] | 413 | cygwinpkg: all pkgscripts/makecygwinpkg |
DRC | b94f2de | 2011-03-22 09:31:25 +0000 | [diff] [blame] | 414 | sh pkgscripts/makecygwinpkg |