Skip to content
This repository was archived by the owner on Nov 20, 2020. It is now read-only.

Commit acc9a4f

Browse files
author
ijd.org
committedJun 27, 2009
Imported from jpegsrc.v7.tar.gz.
1 parent e423fe1 commit acc9a4f

File tree

142 files changed

+58741
-12630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

142 files changed

+58741
-12630
lines changed
 

‎Makefile.am

+133
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,133 @@
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
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
17+
18+
# System dependent sources
19+
SYSDEPSOURCES = jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
20+
21+
# Headers which are installed to support the library
22+
INSTINCLUDES = jerror.h jmorecfg.h jpeglib.h
23+
24+
# Headers which are not installed
25+
OTHERINCLUDES = 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)
29+
DISTMANS= cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 wrjpgcom.1
30+
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
34+
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
46+
47+
# Configuration files
48+
CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
49+
jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
50+
jconfig.vms
51+
52+
# Support scripts for configure
53+
CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp missing
54+
55+
# Miscellaneous support files
56+
OTHERFILES= jconfig.txt ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm \
57+
libjpeg.map
58+
59+
# Test support files
60+
TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
61+
testimgp.jpg
62+
63+
# libtool libraries to build
64+
lib_LTLIBRARIES = libjpeg.la
65+
66+
# Library sources for libjpeg.la
67+
libjpeg_la_SOURCES = $(LIBSOURCES)
68+
69+
# LDFLAGS for libjpeg.la
70+
libjpeg_la_LDFLAGS = -no-undefined \
71+
-version-info $(JPEG_LIB_VERSION)
72+
73+
if HAVE_LD_VERSION_SCRIPT
74+
libjpeg_la_LDFLAGS += -Wl,--version-script=$(srcdir)/libjpeg.map
75+
endif
76+
77+
# Executables to build
78+
bin_PROGRAMS = cjpeg djpeg jpegtran rdjpgcom wrjpgcom
79+
80+
# Executable sources & libs
81+
cjpeg_SOURCES = cjpeg.c rdppm.c rdgif.c rdtarga.c rdrle.c rdbmp.c \
82+
rdswitch.c cdjpeg.c
83+
cjpeg_LDADD = libjpeg.la
84+
djpeg_SOURCES = djpeg.c wrppm.c wrgif.c wrtarga.c wrrle.c wrbmp.c \
85+
rdcolmap.c cdjpeg.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
91+
92+
# Manual pages to install
93+
man_MANS = $(DISTMANS)
94+
95+
# Headers to install
96+
include_HEADERS = $(INSTINCLUDES)
97+
98+
# Other distributed headers
99+
noinst_HEADERS = $(OTHERINCLUDES)
100+
101+
# Other distributed files
102+
EXTRA_DIST = $(DOCS) $(DISTMANS) $(MKFILES) $(CONFIGFILES) $(SYSDEPSOURCES) \
103+
$(OTHERFILES) $(TESTFILES)
104+
105+
# Files to be cleaned
106+
CLEANFILES = testout.ppm testout.bmp testout.jpg testoutp.ppm testoutp.jpg \
107+
testoutt.jpg
108+
109+
# Install jconfig.h
110+
install-data-local:
111+
$(mkinstalldirs) $(DESTDIR)$(includedir)
112+
$(INSTALL_HEADER) jconfig.h $(DESTDIR)$(includedir)/jconfig.h
113+
114+
# Uninstall jconfig.h
115+
uninstall-local:
116+
rm -f $(DESTDIR)$(includedir)/jconfig.h
117+
118+
# Run tests
119+
test: check-local
120+
check-local:
121+
$(RM) testout*
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

0 commit comments

Comments
 (0)