kusano 7d535a
## Process this file with automake to produce Makefile.in
kusano 7d535a
#
kusano 7d535a
#  Automake Makefile for the JPEG library
kusano 7d535a
#
kusano 7d535a
#  This file is written by Bob Friesenhahn, Guido Vollbeding
kusano 7d535a
#
kusano 7d535a
kusano 7d535a
# Sources to build library
kusano 7d535a
LIBSOURCES = jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c \
kusano 7d535a
        jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c \
kusano 7d535a
        jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c \
kusano 7d535a
        jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c \
kusano 7d535a
        jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c \
kusano 7d535a
        jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c \
kusano 7d535a
        jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c \
kusano 7d535a
        jquant2.c jutils.c jmemmgr.c @MEMORYMGR@.c
kusano 7d535a
kusano 7d535a
# System dependent sources
kusano 7d535a
SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
kusano 7d535a
kusano 7d535a
# Headers which are installed to support the library
kusano 7d535a
INSTINCLUDES  = jerror.h jmorecfg.h jpeglib.h
kusano 7d535a
kusano 7d535a
# Headers which are not installed
kusano 7d535a
OTHERINCLUDES = cderror.h cdjpeg.h jdct.h jinclude.h jmemsys.h jpegint.h \
kusano 7d535a
        jversion.h transupp.h
kusano 7d535a
kusano 7d535a
# Manual pages (Automake uses 'MANS' for itself)
kusano 7d535a
DISTMANS= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
kusano 7d535a
kusano 7d535a
# Other documentation files
kusano 7d535a
DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \
kusano 7d535a
        structure.txt coderules.txt filelist.txt change.log
kusano 7d535a
kusano 7d535a
# Makefiles for various systems
kusano 7d535a
MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc \
kusano 7d535a
        makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 \
kusano 7d535a
        makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 \
kusano 7d535a
        makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 \
kusano 7d535a
        maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 \
kusano 7d535a
        makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.v10 \
kusano 7d535a
        makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 makecfil.v10 \
kusano 7d535a
        makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 makervcx.v10 \
kusano 7d535a
        makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac makcjpeg.st \
kusano 7d535a
        makdjpeg.st makljpeg.st maktjpeg.st makefile.manx makefile.sas \
kusano 7d535a
        makefile.mms makefile.vms makvms.opt
kusano 7d535a
kusano 7d535a
# Configuration files
kusano 7d535a
CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
kusano 7d535a
        jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
kusano 7d535a
        jconfig.vms
kusano 7d535a
kusano 7d535a
# Support scripts for configure
kusano 7d535a
CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp \
kusano 7d535a
        missing ar-lib
kusano 7d535a
kusano 7d535a
# Miscellaneous support files
kusano 7d535a
OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map
kusano 7d535a
kusano 7d535a
# Test support files
kusano 7d535a
TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
kusano 7d535a
        testimgp.jpg
kusano 7d535a
kusano 7d535a
# libtool libraries to build
kusano 7d535a
lib_LTLIBRARIES = libjpeg.la
kusano 7d535a
kusano 7d535a
# Library sources for libjpeg.la
kusano 7d535a
libjpeg_la_SOURCES = $(LIBSOURCES)
kusano 7d535a
kusano 7d535a
# LDFLAGS for libjpeg.la
kusano 7d535a
libjpeg_la_LDFLAGS = -no-undefined \
kusano 7d535a
        -version-info $(JPEG_LIB_VERSION)
kusano 7d535a
kusano 7d535a
if HAVE_LD_VERSION_SCRIPT
kusano 7d535a
  libjpeg_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libjpeg.map
kusano 7d535a
endif
kusano 7d535a
kusano 7d535a
# Executables to build
kusano 7d535a
bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom
kusano 7d535a
kusano 7d535a
# Executable sources & libs
kusano 7d535a
cjpeg_SOURCES    = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c \
kusano 7d535a
        rdswitch.c cdjpeg.c
kusano 7d535a
cjpeg_LDADD      = libjpeg.la
kusano 7d535a
djpeg_SOURCES    = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c \
kusano 7d535a
        rdcolmap.c cdjpeg.c
kusano 7d535a
djpeg_LDADD      = libjpeg.la
kusano 7d535a
jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
kusano 7d535a
jpegtran_LDADD   = libjpeg.la
kusano 7d535a
rdjpgcom_SOURCES = rdjpgcom.c
kusano 7d535a
wrjpgcom_SOURCES = wrjpgcom.c
kusano 7d535a
kusano 7d535a
# Manual pages to install
kusano 7d535a
man_MANS = $(DISTMANS)
kusano 7d535a
kusano 7d535a
# Headers to install
kusano 7d535a
include_HEADERS = $(INSTINCLUDES)
kusano 7d535a
kusano 7d535a
# Other distributed headers
kusano 7d535a
noinst_HEADERS = $(OTHERINCLUDES)
kusano 7d535a
kusano 7d535a
# Other distributed files
kusano 7d535a
EXTRA_DIST =  $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \
kusano 7d535a
        $(OTHERFILES) $(TESTFILES)
kusano 7d535a
kusano 7d535a
# Files to be cleaned
kusano 7d535a
CLEANFILES = testout.ppm testout.bmp testout.jpg testoutp.ppm testoutp.jpg \
kusano 7d535a
        testoutt.jpg
kusano 7d535a
kusano 7d535a
# Install jconfig.h
kusano 7d535a
install-data-local:
kusano 7d535a
	$(mkinstalldirs) $(DESTDIR)$(includedir)
kusano 7d535a
	$(INSTALL_HEADER) jconfig.h $(DESTDIR)$(includedir)/jconfig.h
kusano 7d535a
kusano 7d535a
# Uninstall jconfig.h
kusano 7d535a
uninstall-local:
kusano 7d535a
	rm -f $(DESTDIR)$(includedir)/jconfig.h
kusano 7d535a
kusano 7d535a
# Run tests
kusano 7d535a
test: check-local
kusano 7d535a
check-local:
kusano 7d535a
	rm -f testout*
kusano 7d535a
	./djpeg -dct int -ppm -outfile testout.ppm  $(srcdir)/testorig.jpg
kusano 7d535a
	./djpeg -dct int -bmp -colors 256 -outfile testout.bmp  $(srcdir)/testorig.jpg
kusano 7d535a
	./cjpeg -dct int -outfile testout.jpg  $(srcdir)/testimg.ppm
kusano 7d535a
	./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
kusano 7d535a
	./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
kusano 7d535a
	./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
kusano 7d535a
	cmp $(srcdir)/testimg.ppm testout.ppm
kusano 7d535a
	cmp $(srcdir)/testimg.bmp testout.bmp
kusano 7d535a
	cmp $(srcdir)/testimg.jpg testout.jpg
kusano 7d535a
	cmp $(srcdir)/testimg.ppm testoutp.ppm
kusano 7d535a
	cmp $(srcdir)/testimgp.jpg testoutp.jpg
kusano 7d535a
	cmp $(srcdir)/testorig.jpg testoutt.jpg