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