1## Process this file with automake to produce Makefile.in 2# 3# Automake Makefile for the JPEG library 4# 5# This file is written by Bob Friesenhahn, Guido Vollbeding 6# 7 8# Sources to build library 9LIBSOURCES = jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \ 10 jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \ 11 jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \ 12 jdapistd.c jdarith.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 jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \ 15 jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \ 16 jquant2.c jutils.c jmemmgr.c @MEMORYMGR@.c 17 18# System dependent sources 19SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c 20 21# Headers which are installed to support the library 22INSTINCLUDES = jerror.h jmorecfg.h jpeglib.h 23 24# Headers which are not installed 25OTHERINCLUDES = cderror.h cdjpeg.h jdct.h jinclude.h jmemsys.h jpegint.h \ 26 jversion.h transupp.h 27 28# Manual pages (Automake uses 'MANS' for itself) 29DISTMANS= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1 30 31# Other documentation files 32DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \ 33 structure.txt coderules.txt filelist.txt change.log 34 35# Makefiles for various systems 36MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.b32 \ 37 makefile.bcc makefile.mc6 makefile.dj makefile.wat makefile.vc \ 38 makefile.vs makejdsw.vc6 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 \ 39 makejmak.vc6 makecdep.vc6 makecdsp.vc6 makecmak.vc6 makeddep.vc6 \ 40 makeddsp.vc6 makedmak.vc6 maketdep.vc6 maketdsp.vc6 maketmak.vc6 \ 41 makerdep.vc6 makerdsp.vc6 makermak.vc6 makewdep.vc6 makewdsp.vc6 \ 42 makewmak.vc6 makejsln.v16 makeasln.v16 makejvcx.v16 makejfil.v16 \ 43 makecvcx.v16 makecfil.v16 makedvcx.v16 makedfil.v16 maketvcx.v16 \ 44 maketfil.v16 makervcx.v16 makerfil.v16 makewvcx.v16 makewfil.v16 \ 45 makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st maktjpeg.st \ 46 makefile.manx makefile.sas makefile.mms makefile.vms makvms.opt 47 48# Configuration files 49CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \ 50 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \ 51 jconfig.vms 52 53# Support scripts for configure 54CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \ 55 missing ar-lib 56 57# Miscellaneous support files 58OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map libjpeg.pc.in 59 60# Test support files 61TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.bmp testimg.jpg \ 62 testprog.jpg testimgp.jpg 63 64# libtool libraries to build 65lib_LTLIBRARIES = libjpeg.la 66 67# Library sources for libjpeg.la 68libjpeg_la_SOURCES = $(LIBSOURCES) 69 70# LDFLAGS for libjpeg.la 71libjpeg_la_LDFLAGS = -no-undefined \ 72 -version-info $(JPEG_LIB_VERSION) 73 74if HAVE_LD_VERSION_SCRIPT 75 libjpeg_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libjpeg.map 76endif 77 78# Executables to build 79bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom 80 81# Executable sources & libs 82cjpeg_SOURCES = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c \ 83 rdswitch.c cdjpeg.c 84cjpeg_LDADD = libjpeg.la 85djpeg_SOURCES = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c \ 86 rdcolmap.c cdjpeg.c 87djpeg_LDADD = libjpeg.la 88jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c 89jpegtran_LDADD = libjpeg.la 90rdjpgcom_SOURCES = rdjpgcom.c 91wrjpgcom_SOURCES = wrjpgcom.c 92 93# Manual pages to install 94man_MANS = $(DISTMANS) 95 96# Headers to install 97include_HEADERS = $(INSTINCLUDES) 98 99# Other distributed headers 100noinst_HEADERS = $(OTHERINCLUDES) 101 102# Other distributed files 103EXTRA_DIST = $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \ 104 $(OTHERFILES) $(TESTFILES) 105 106# pkg-config file 107pkgconfigdir = $(libdir)/pkgconfig 108nodist_pkgconfig_DATA = libjpeg.pc 109 110# Files to be cleaned 111CLEANFILES = testout.ppm testout.gif testout.bmp testout.jpg testoutp.ppm \ 112 testoutp.jpg testoutt.jpg 113 114# Install jconfig.h 115install-data-local: 116 $(mkinstalldirs) $(DESTDIR)$(includedir) 117 $(INSTALL_HEADER) jconfig.h $(DESTDIR)$(includedir)/jconfig.h 118 119# Uninstall jconfig.h 120uninstall-local: 121 rm -f $(DESTDIR)$(includedir)/jconfig.h 122 123# Run tests 124test: check-local 125check-local: 126 rm -f testout* 127 ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg 128 ./djpeg -dct int -gif -outfile testout.gif $(srcdir)/testorig.jpg 129 ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg 130 ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm 131 ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg 132 ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm 133 ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg 134 cmp $(srcdir)/testimg.ppm testout.ppm 135 cmp $(srcdir)/testimg.gif testout.gif 136 cmp $(srcdir)/testimg.bmp testout.bmp 137 cmp $(srcdir)/testimg.jpg testout.jpg 138 cmp $(srcdir)/testimg.ppm testoutp.ppm 139 cmp $(srcdir)/testimgp.jpg testoutp.jpg 140 cmp $(srcdir)/testorig.jpg testoutt.jpg 141