1# Generated automatically from Makefile.auto by configure.
2# Makefile for Independent JPEG Group's software
3
4# makefile.auto is edited by configure to produce a custom Makefile.
5
6# Read installation instructions before saying "make" !!
7
8# For compiling with source and object files in different directories.
9srcdir = .
10VPATH = .
11
12# Where to install the programs and man pages.
13prefix = /usr/cluster
14exec_prefix = $(prefix)
15bindir = $(exec_prefix)/bin
16libdir = $(exec_prefix)/lib
17includedir = $(prefix)/include
18mandir = $(prefix)/man/man1
19binprefix =
20manprefix =
21manext = 1
22
23# The name of your C compiler:
24CC?= gcc
25
26# You may need to adjust these cc options:
27CFLAGS+= -I$(srcdir)
28# Generally, we recommend defining any configuration symbols in jconfig.h,
29# NOT via -D switches here.
30# However, any special defines for ansi2knr.c may be included here:
31ANSI2KNRFLAGS=
32
33# Link-time cc options:
34LDFLAGS=
35
36# To link any special libraries, add the necessary -l commands here.
37LDLIBS=
38
39# Put here the object file name for the correct system-dependent memory
40# manager file.  For Unix this is usually jmemnobs.o, but you may want
41# to use jmemansi.o or jmemname.o if you have limited swap space.
42SYSDEPMEM= jmemnobs.o
43
44# miscellaneous OS-dependent stuff
45SHELL= /bin/sh
46# linker
47LN= $(CC)
48# file deletion command
49RM= rm -f
50# file rename command
51MV= mv
52# library (.a) file creation command
53AR= ar rc
54# second step in .a creation (use "touch" if not needed)
55AR2= ranlib
56# installation program
57INSTALL= /bin/install -c
58INSTALL_PROGRAM= $(INSTALL)
59INSTALL_DATA= $(INSTALL) -m 644
60
61# End of configurable options.
62
63
64# source files: JPEG library proper
65LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
66        jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
67        jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
68        jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
69        jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
70        jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
71        jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
72# source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
73APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
74        rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
75        wrjpgcom.c
76SOURCES= $(LIBSOURCES) $(APPSOURCES)
77# files included by source files
78INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
79        jpeglib.h jversion.h cdjpeg.h cderror.h
80# documentation, test, and support files
81DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
82        example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
83        change.log
84MKFILES= configure makefile.auto makefile.ansi makefile.unix makefile.manx \
85        makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
86        makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
87CONFIGFILES= jconfig.auto jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
88        jconfig.mc6 jconfig.dj jconfig.vms
89OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
90TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
91DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
92        $(OTHERFILES) $(TESTFILES)
93# library object files common to compression and decompression
94COMOBJECTS= jcomapi.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
95# compression library object files
96CLIBOBJECTS= jcapi.o jcparam.o jdatadst.o jcmaster.o jcmarker.o jcmainct.o \
97        jcprepct.o jccoefct.o jccolor.o jcsample.o jchuff.o jcdctmgr.o \
98        jfdctfst.o jfdctflt.o jfdctint.o
99# decompression library object files
100DLIBOBJECTS= jdapi.o jdatasrc.o jdmaster.o jdmarker.o jdmainct.o jdcoefct.o \
101        jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
102        jdhuff.o jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
103# These objectfiles are included in libjpeg.a
104LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
105# object files for cjpeg and djpeg applications (excluding library files)
106COBJECTS= cjpeg.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o
107DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o
108
109
110all:  libjpeg.a cjpeg djpeg rdjpgcom wrjpgcom
111
112# This rule causes ansi2knr to be invoked.
113# .c.o:
114# 	./ansi2knr $(srcdir)/$*.c T$*.c
115# 	$(CC) $(CFLAGS) -c T$*.c
116# 	$(RM) T$*.c $*.o
117# 	$(MV) T$*.o $*.o
118
119ansi2knr: ansi2knr.c
120	$(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr ansi2knr.c
121
122libjpeg.a:  $(LIBOBJECTS)
123	$(RM) libjpeg.a
124	$(AR) libjpeg.a  $(LIBOBJECTS)
125	$(AR2) libjpeg.a
126
127cjpeg: $(COBJECTS) libjpeg.a
128	$(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.a $(LDLIBS)
129
130djpeg: $(DOBJECTS) libjpeg.a
131	$(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.a $(LDLIBS)
132
133rdjpgcom: rdjpgcom.o
134	$(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.o $(LDLIBS)
135
136wrjpgcom: wrjpgcom.o
137	$(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.o $(LDLIBS)
138
139jconfig.h: jconfig.doc
140	echo You must prepare a system-dependent jconfig.h file.
141	echo Please read the installation directions in install.doc.
142	exit 1
143
144install: cjpeg djpeg rdjpgcom wrjpgcom
145	$(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg
146	$(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg
147	$(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom
148	$(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom
149	$(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)
150	$(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)
151	$(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)
152	$(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)
153
154install-lib: libjpeg.a jconfig.h
155	$(INSTALL_DATA) libjpeg.a $(libdir)/$(binprefix)libjpeg.a
156	$(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h
157	$(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h
158	$(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h
159	$(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h
160
161clean:
162	$(RM) *.o cjpeg djpeg libjpeg.a rdjpgcom wrjpgcom ansi2knr core testout.*
163
164distribute:
165	$(RM) jpegsrc.tar*
166	tar cvf jpegsrc.tar $(DISTFILES)
167	compress -v jpegsrc.tar
168
169test: cjpeg djpeg
170	$(RM) testout.ppm testout.gif testout.jpg
171	./djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
172	./djpeg -dct int -gif -outfile testout.gif  testorig.jpg
173	./cjpeg -dct int -outfile testout.jpg  testimg.ppm
174	cmp testimg.ppm testout.ppm
175	cmp testimg.gif testout.gif
176	cmp testimg.jpg testout.jpg
177
178check: test
179
180# GNU Make likes to know which target names are not really files to be made:
181.PHONY: all install install-lib clean distribute test check
182
183
184jcapi.o : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
185jccoefct.o : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
186jccolor.o : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
187jcdctmgr.o : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
188jchuff.o : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
189jcmainct.o : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
190jcmarker.o : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
191jcmaster.o : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
192jcomapi.o : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
193jcparam.o : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
194jcprepct.o : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
195jcsample.o : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
196jdapi.o : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
197jdatasrc.o : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
198jdatadst.o : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
199jdcoefct.o : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
200jdcolor.o : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
201jddctmgr.o : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
202jdhuff.o : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
203jdmainct.o : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
204jdmarker.o : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
205jdmaster.o : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
206jdpostct.o : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
207jdsample.o : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
208jerror.o : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
209jutils.o : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
210jfdctfst.o : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
211jfdctflt.o : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
212jfdctint.o : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
213jidctfst.o : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
214jidctflt.o : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
215jidctint.o : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
216jidctred.o : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
217jquant1.o : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
218jquant2.o : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
219jdmerge.o : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
220jmemmgr.o : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
221jmemansi.o : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
222jmemname.o : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
223jmemnobs.o : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
224jmemdos.o : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
225cjpeg.o : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
226djpeg.o : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
227rdcolmap.o : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
228rdppm.o : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
229wrppm.o : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
230rdgif.o : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
231wrgif.o : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
232rdtarga.o : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
233wrtarga.o : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
234rdbmp.o : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
235wrbmp.o : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
236rdrle.o : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
237wrrle.o : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
238rdjpgcom.o : rdjpgcom.c jinclude.h jconfig.h
239wrjpgcom.o : wrjpgcom.c jinclude.h jconfig.h
240