1# Generated automatically from makefile.cfg by configure. 2# Makefile for Independent JPEG Group's software 3 4# makefile.cfg 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 = . 10 11# Where to install the programs and man pages. 12prefix = /usr/local 13exec_prefix = ${prefix} 14bindir = $(exec_prefix)/bin 15libdir = $(exec_prefix)/lib 16includedir = $(prefix)/include 17binprefix = 18manprefix = 19manext = 1 20mandir = $(prefix)/man/man$(manext) 21 22# The name of your C compiler: 23#CC= mipsel-uclibc-gcc 24#CC=gcc 25 26# You may need to adjust these cc options: 27CFLAGS= -O2 -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# If using GNU libtool, LIBTOOL references it; if not, LIBTOOL is empty. 40LIBTOOL = 41# $(O) expands to "lo" if using libtool, plain "o" if not. 42# Similarly, $(A) expands to "la" or "a". 43O = o 44A = a 45 46# Library version ID; libtool uses this for the shared library version number. 47# Note: we suggest this match the macro of the same name in jpeglib.h. 48JPEG_LIB_VERSION = 62 49 50# Put here the object file name for the correct system-dependent memory 51# manager file. For Unix this is usually jmemnobs.o, but you may want 52# to use jmemansi.o or jmemname.o if you have limited swap space. 53SYSDEPMEM= jmemnobs.$(O) 54 55# miscellaneous OS-dependent stuff 56SHELL= /bin/sh 57# linker 58LN= $(CC) 59# file deletion command 60RM= rm -f 61# directory creation command 62MKDIR= mkdir 63# library (.a) file creation command 64AR1= $(AR) rc 65# second step in .a creation (use "touch" if not needed) 66AR2= $(RANLIB) 67# installation program 68INSTALL= /usr/bin/install -c 69INSTALL_PROGRAM= ${INSTALL} 70INSTALL_LIB= ${INSTALL} -m 644 71INSTALL_DATA= ${INSTALL} -m 644 72 73# End of configurable options. 74 75 76# source files: JPEG library proper 77LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \ 78 jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \ 79 jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \ 80 jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \ 81 jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \ 82 jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \ 83 jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \ 84 jquant2.c jutils.c jmemmgr.c 85# memmgr back ends: compile only one of these into a working library 86SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c 87# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom 88APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \ 89 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \ 90 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c 91SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES) 92# files included by source files 93INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \ 94 jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h 95# documentation, test, and support files 96DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \ 97 wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \ 98 coderules.doc filelist.doc change.log 99MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \ 100 makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \ 101 makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \ 102 maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \ 103 makvms.opt 104CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \ 105 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \ 106 jconfig.vms 107CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh 108OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm 109TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \ 110 testimgp.jpg 111DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \ 112 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES) 113# library object files common to compression and decompression 114COMOBJECTS= jcomapi.$(O) jutils.$(O) jerror.$(O) jmemmgr.$(O) $(SYSDEPMEM) 115# compression library object files 116CLIBOBJECTS= jcapimin.$(O) jcapistd.$(O) jctrans.$(O) jcparam.$(O) \ 117 jdatadst.$(O) jcinit.$(O) jcmaster.$(O) jcmarker.$(O) jcmainct.$(O) \ 118 jcprepct.$(O) jccoefct.$(O) jccolor.$(O) jcsample.$(O) jchuff.$(O) \ 119 jcphuff.$(O) jcdctmgr.$(O) jfdctfst.$(O) jfdctflt.$(O) \ 120 jfdctint.$(O) 121# decompression library object files 122DLIBOBJECTS= jdapimin.$(O) jdapistd.$(O) jdtrans.$(O) jdatasrc.$(O) \ 123 jdmaster.$(O) jdinput.$(O) jdmarker.$(O) jdhuff.$(O) jdphuff.$(O) \ 124 jdmainct.$(O) jdcoefct.$(O) jdpostct.$(O) jddctmgr.$(O) \ 125 jidctfst.$(O) jidctflt.$(O) jidctint.$(O) jidctred.$(O) \ 126 jdsample.$(O) jdcolor.$(O) jquant1.$(O) jquant2.$(O) jdmerge.$(O) 127# These objectfiles are included in libjpeg.a 128LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS) 129# object files for sample applications (excluding library files) 130COBJECTS= cjpeg.$(O) rdppm.$(O) rdgif.$(O) rdtarga.$(O) rdrle.$(O) \ 131 rdbmp.$(O) rdswitch.$(O) cdjpeg.$(O) 132DOBJECTS= djpeg.$(O) wrppm.$(O) wrgif.$(O) wrtarga.$(O) wrrle.$(O) \ 133 wrbmp.$(O) rdcolmap.$(O) cdjpeg.$(O) 134TROBJECTS= jpegtran.$(O) rdswitch.$(O) cdjpeg.$(O) transupp.$(O) 135 136 137all: libjpeg.$(A) cjpeg djpeg jpegtran rdjpgcom wrjpgcom 138 139# Special compilation rules to support ansi2knr and libtool. 140.SUFFIXES: .lo .la 141 142# How to compile with libtool. 143# .c.lo: 144# $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $(srcdir)/$*.c 145 146# How to use ansi2knr, when not using libtool. 147# .c.o: 148# ./ansi2knr $(srcdir)/$*.c knr/$*.c 149# $(CC) $(CFLAGS) -c knr/$*.c 150# $(RM) knr/$*.c 151 152# How to use ansi2knr AND libtool. 153# .c.lo: 154# ./ansi2knr $(srcdir)/$*.c knr/$*.c 155# $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c knr/$*.c 156# $(RM) knr/$*.c 157 158ansi2knr: ansi2knr.c 159 $(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr $(srcdir)/ansi2knr.c 160 $(MKDIR) knr 161 162# the library: 163 164# without libtool: 165libjpeg.a: $(LIBOBJECTS) 166 $(RM) libjpeg.a 167 $(AR1) libjpeg.a $(LIBOBJECTS) 168 $(AR2) libjpeg.a 169 170# with libtool: 171libjpeg.la: $(LIBOBJECTS) 172 $(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \ 173 -rpath $(libdir) -version-info $(JPEG_LIB_VERSION) 174 175# sample programs: 176 177cjpeg: $(COBJECTS) libjpeg.$(A) 178 $(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.$(A) $(LDLIBS) 179 180djpeg: $(DOBJECTS) libjpeg.$(A) 181 $(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.$(A) $(LDLIBS) 182 183jpegtran: $(TROBJECTS) libjpeg.$(A) 184 $(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.$(A) $(LDLIBS) 185 186rdjpgcom: rdjpgcom.$(O) 187 $(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.$(O) $(LDLIBS) 188 189wrjpgcom: wrjpgcom.$(O) 190 $(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.$(O) $(LDLIBS) 191 192# Installation rules: 193 194install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom 195 #$(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg 196 #$(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg 197 #$(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran 198 #$(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom 199 #$(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom 200 #$(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext) 201 #$(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext) 202 #$(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext) 203 #$(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext) 204 #$(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext) 205 206install-lib: libjpeg.$(A) install-headers 207 #$(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A) 208 209install-headers: jconfig.h 210 #$(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h 211 #$(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h 212 #$(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h 213 #$(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.h 214 215clean: 216 $(RM) *.o *.lo libjpeg.a libjpeg.la 217 $(RM) cjpeg djpeg jpegtran rdjpgcom wrjpgcom 218 $(RM) ansi2knr core testout* config.log config.status 219 $(RM) -r knr .libs _libs 220 221distclean: clean 222 $(RM) Makefile jconfig.h libtool config.cache 223 224test: cjpeg djpeg jpegtran 225 $(RM) testout* 226 ./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg 227 ./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg 228 ./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm 229 ./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg 230 ./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm 231 ./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpg 232 cmp $(srcdir)/testimg.ppm testout.ppm 233 cmp $(srcdir)/testimg.bmp testout.bmp 234 cmp $(srcdir)/testimg.jpg testout.jpg 235 cmp $(srcdir)/testimg.ppm testoutp.ppm 236 cmp $(srcdir)/testimgp.jpg testoutp.jpg 237 cmp $(srcdir)/testorig.jpg testoutt.jpg 238 239check: test 240 241# Mistake catcher: 242 243jconfig.h: jconfig.doc 244 echo You must prepare a system-dependent jconfig.h file. 245 echo Please read the installation directions in install.doc. 246 exit 1 247 248# GNU Make likes to know which target names are not really files to be made: 249.PHONY: all install install-lib install-headers clean distclean test check 250 251 252jcapimin.$(O): jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 253jcapistd.$(O): jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 254jccoefct.$(O): jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 255jccolor.$(O): jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 256jcdctmgr.$(O): jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 257jchuff.$(O): jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h 258jcinit.$(O): jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 259jcmainct.$(O): jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 260jcmarker.$(O): jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 261jcmaster.$(O): jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 262jcomapi.$(O): jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 263jcparam.$(O): jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 264jcphuff.$(O): jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h 265jcprepct.$(O): jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 266jcsample.$(O): jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 267jctrans.$(O): jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 268jdapimin.$(O): jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 269jdapistd.$(O): jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 270jdatadst.$(O): jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 271jdatasrc.$(O): jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h 272jdcoefct.$(O): jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 273jdcolor.$(O): jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 274jddctmgr.$(O): jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 275jdhuff.$(O): jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h 276jdinput.$(O): jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 277jdmainct.$(O): jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 278jdmarker.$(O): jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 279jdmaster.$(O): jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 280jdmerge.$(O): jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 281jdphuff.$(O): jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h 282jdpostct.$(O): jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 283jdsample.$(O): jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 284jdtrans.$(O): jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 285jerror.$(O): jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h 286jfdctflt.$(O): jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 287jfdctfst.$(O): jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 288jfdctint.$(O): jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 289jidctflt.$(O): jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 290jidctfst.$(O): jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 291jidctint.$(O): jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 292jidctred.$(O): jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h 293jquant1.$(O): jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 294jquant2.$(O): jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 295jutils.$(O): jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h 296jmemmgr.$(O): jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 297jmemansi.$(O): jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 298jmemname.$(O): jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 299jmemnobs.$(O): jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 300jmemdos.$(O): jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 301jmemmac.$(O): jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h 302cjpeg.$(O): cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 303djpeg.$(O): djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h 304jpegtran.$(O): jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h 305rdjpgcom.$(O): rdjpgcom.c jinclude.h jconfig.h 306wrjpgcom.$(O): wrjpgcom.c jinclude.h jconfig.h 307cdjpeg.$(O): cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 308rdcolmap.$(O): rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 309rdswitch.$(O): rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 310transupp.$(O): transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h 311rdppm.$(O): rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 312wrppm.$(O): wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 313rdgif.$(O): rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 314wrgif.$(O): wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 315rdtarga.$(O): rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 316wrtarga.$(O): wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 317rdbmp.$(O): rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 318wrbmp.$(O): wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 319rdrle.$(O): rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 320wrrle.$(O): wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h 321