1 ## Process this file with automake to produce Makefile.in
3 # Automake Makefile for the JPEG library
5 # This file is written by Bob Friesenhahn, Guido Vollbeding
8 # Sources to build library
9 LIBSOURCES = 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
18 # System dependent sources
19 SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
21 # Headers which are installed to support the library
22 INSTINCLUDES = jerror.h jmorecfg.h jpeglib.h
24 # Headers which are not installed
25 OTHERINCLUDES = cderror.h cdjpeg.h jdct.h jinclude.h jmemsys.h jpegint.h \
28 # Manual pages (Automake uses 'MANS' for itself)
29 DISTMANS= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
31 # Other documentation files
32 DOCS= README install.txt usage.txt wizard.txt example.c libjpeg.txt \
33 structure.txt coderules.txt filelist.txt change.log
35 # Makefiles for various systems
36 MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc \
37 makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 \
38 makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 \
39 makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 \
40 maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 \
41 makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.vc9 \
42 makeasln.vc9 makejvcp.vc9 makecvcp.vc9 makedvcp.vc9 maketvcp.vc9 \
43 makervcp.vc9 makewvcp.vc9 makeproj.mac makcjpeg.st makdjpeg.st \
44 makljpeg.st maktjpeg.st makefile.manx makefile.sas makefile.mms \
45 makefile.vms makvms.opt
48 CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
49 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
52 # Support scripts for configure
53 CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
55 # Miscellaneous support files
56 OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \
60 TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
63 # libtool libraries to build
64 lib_LTLIBRARIES = libjpeg.la
66 # Library sources for libjpeg.la
67 libjpeg_la_SOURCES = $(LIBSOURCES)
69 # LDFLAGS for libjpeg.la
70 libjpeg_la_LDFLAGS = -no-undefined \
71 -version-info $(JPEG_LIB_VERSION)
73 if HAVE_LD_VERSION_SCRIPT
74 libjpeg_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libjpeg.map
77 # Executables to build
78 bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom
80 # Executable sources & libs
81 cjpeg_SOURCES = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c \
83 cjpeg_LDADD = libjpeg.la
84 djpeg_SOURCES = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c \
86 djpeg_LDADD = libjpeg.la
87 jpegtran_SOURCES = jpegtran.c rdswitch.c cdjpeg.c transupp.c
88 jpegtran_LDADD = libjpeg.la
89 rdjpgcom_SOURCES = rdjpgcom.c
90 wrjpgcom_SOURCES = wrjpgcom.c
92 # Manual pages to install
93 man_MANS = $(DISTMANS)
96 include_HEADERS = $(INSTINCLUDES)
98 # Other distributed headers
99 noinst_HEADERS = $(OTHERINCLUDES)
101 # Other distributed files
102 EXTRA_DIST = $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \
103 $(OTHERFILES) $(TESTFILES)
105 # Files to be cleaned
106 CLEANFILES = testout.ppm testout.bmp testout.jpg testoutp.ppm testoutp.jpg \
111 $(mkinstalldirs) $(DESTDIR)$(includedir)
112 $(INSTALL_HEADER) jconfig.h $(DESTDIR)$(includedir)/jconfig.h
114 # Uninstall jconfig.h
116 rm -f $(DESTDIR)$(includedir)/jconfig.h
122 ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg
123 ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg
124 ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm
125 ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg
126 ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm
127 ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg
128 cmp $(srcdir)/testimg.ppm testout.ppm
129 cmp $(srcdir)/testimg.bmp testout.bmp
130 cmp $(srcdir)/testimg.jpg testout.jpg
131 cmp $(srcdir)/testimg.ppm testoutp.ppm
132 cmp $(srcdir)/testimgp.jpg testoutp.jpg
133 cmp $(srcdir)/testorig.jpg testoutt.jpg