DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 1 | lib_LTLIBRARIES = libjpeg.la libturbojpeg.la |
DRC | a1e9878 | 2010-01-28 22:18:41 +0000 | [diff] [blame] | 2 | libjpeg_la_LDFLAGS = -version-number 62:0:0 -no-undefined |
DRC | 21d6683 | 2010-02-12 04:34:41 +0000 | [diff] [blame] | 3 | libturbojpeg_la_LDFLAGS = -avoid-version -no-undefined |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 4 | include_HEADERS = jconfig.h jerror.h jmorecfg.h jpeglib.h turbojpeg.h |
DRC | 0c0f304 | 2010-01-28 05:34:53 +0000 | [diff] [blame] | 5 | |
Adam Tkac | da5a1fe | 2008-10-22 11:19:25 +0000 | [diff] [blame] | 6 | HDRS = jchuff.h jdct.h jdhuff.h jerror.h jinclude.h jmemsys.h jmorecfg.h \ |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 7 | jpegint.h jpeglib.h jversion.h jsimd.h jsimddct.h |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 8 | |
| 9 | libjpeg_la_SOURCES = $(HDRS) jcapimin.c jcapistd.c jccoefct.c jccolor.c \ |
| 10 | jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \ |
| 11 | jcomapi.c jcparam.c jcphuff.c jcprepct.c jcsample.c jctrans.c \ |
| 12 | jdapimin.c jdapistd.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \ |
| 13 | jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \ |
| 14 | jdmerge.c jdphuff.c jdpostct.c jdsample.c jdtrans.c jerror.c \ |
| 15 | jfdctflt.c jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c \ |
Pierre Ossman | ba82ddf | 2009-06-29 11:20:42 +0000 | [diff] [blame] | 16 | jidctred.c jquant1.c jquant2.c jutils.c jmemmgr.c jmemnobs.c |
Constantin Kaplinsky | 0ca4425 | 2008-09-28 05:08:48 +0000 | [diff] [blame] | 17 | |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 18 | libturbojpeg_la_SOURCES = $(libjpeg_la_SOURCES) turbojpegl.c turbojpeg.h |
| 19 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 20 | if WITH_SIMD |
| 21 | |
Pierre Ossman | 3a65ef4 | 2009-03-16 13:34:18 +0000 | [diff] [blame] | 22 | SUBDIRS = simd |
| 23 | libjpeg_la_LIBADD = simd/libsimd.la |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 24 | libturbojpeg_la_LIBADD = simd/libsimd.la |
Pierre Ossman | 2ae181c | 2009-03-09 13:21:27 +0000 | [diff] [blame] | 25 | |
DRC | 60cddeb | 2010-02-12 05:37:07 +0000 | [diff] [blame] | 26 | else |
| 27 | |
| 28 | libjpeg_la_SOURCES += jsimd_none.c |
| 29 | |
| 30 | endif |
| 31 | |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 32 | TSTHDRS = rrutil.h rrtimer.h |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 33 | |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 34 | noinst_PROGRAMS = jpgtest jpegut cjpeg djpeg jpegtran rdjpgcom wrjpgcom |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 35 | |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 36 | jpgtest_SOURCES = $(TSTHDRS) jpgtest.cxx bmp.h bmp.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 37 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 38 | jpgtest_LDADD = libturbojpeg.la |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 39 | |
DRC | 1bf1a14 | 2010-02-11 06:39:32 +0000 | [diff] [blame] | 40 | jpegut_SOURCES = $(TSTHDRS) jpegut.c bmp.h bmp.c |
DRC | 2e7b76b | 2009-04-03 12:04:24 +0000 | [diff] [blame] | 41 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 42 | jpegut_LDADD = libturbojpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 43 | |
| 44 | cjpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c cjpeg.c rdbmp.c rdgif.c \ |
| 45 | rdppm.c rdswitch.c rdtarga.c |
| 46 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 47 | cjpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 48 | |
| 49 | cjpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 50 | -DTARGA_SUPPORTED |
| 51 | |
| 52 | djpeg_SOURCES = cdjpeg.h cderror.h cdjpeg.c djpeg.c rdcolmap.c rdswitch.c \ |
| 53 | wrbmp.c wrgif.c wrppm.c wrtarga.c |
| 54 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 55 | djpeg_LDADD = libjpeg.la |
DRC | 73de982 | 2009-06-25 20:41:17 +0000 | [diff] [blame] | 56 | |
| 57 | djpeg_CFLAGS = -DBMP_SUPPORTED -DGIF_SUPPORTED -DPPM_SUPPORTED \ |
| 58 | -DTARGA_SUPPORTED |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 59 | |
| 60 | jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c |
| 61 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 62 | jpegtran_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 63 | |
| 64 | rdjpgcom_SOURCES = wrjpgcom.c |
| 65 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 66 | rdjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 67 | |
| 68 | wrjpgcom_SOURCES = wrjpgcom.c |
| 69 | |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 70 | wrjpgcom_LDADD = libjpeg.la |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 71 | |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 72 | test: testclean cjpeg djpeg jpegtran |
DRC | 971d851 | 2010-02-13 22:55:05 +0000 | [diff] [blame^] | 73 | ./jpegut |
| 74 | ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg |
| 75 | ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg |
| 76 | ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm |
| 77 | ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg |
| 78 | ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm |
| 79 | ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg |
DRC | 60fa060 | 2010-02-12 06:01:49 +0000 | [diff] [blame] | 80 | cmp $(top_srcdir)/testimg.ppm testout.ppm |
| 81 | cmp $(top_srcdir)/testimg.bmp testout.bmp |
| 82 | cmp $(top_srcdir)/testimg.jpg testout.jpg |
| 83 | cmp $(top_srcdir)/testimg.ppm testoutp.ppm |
| 84 | cmp $(top_srcdir)/testimgp.jpg testoutp.jpg |
| 85 | cmp $(top_srcdir)/testorig.jpg testoutt.jpg |
DRC | 34d59e7 | 2010-02-12 06:27:34 +0000 | [diff] [blame] | 86 | |
| 87 | testclean: |
| 88 | $(RM) testout* |
| 89 | $(RM) *_GRAYQ[0-9]*.bmp |
| 90 | $(RM) *_GRAYQ[0-9]*.ppm |
| 91 | $(RM) *_GRAYQ[0-9]*.jpg |
| 92 | $(RM) *_420Q[0-9]*.bmp |
| 93 | $(RM) *_420Q[0-9]*.ppm |
| 94 | $(RM) *_420Q[0-9]*.jpg |
| 95 | $(RM) *_422Q[0-9]*.bmp |
| 96 | $(RM) *_422Q[0-9]*.ppm |
| 97 | $(RM) *_422Q[0-9]*.jpg |
| 98 | $(RM) *_444Q[0-9]*.bmp |
| 99 | $(RM) *_444Q[0-9]*.ppm |
| 100 | $(RM) *_444Q[0-9]*.jpg |