Blame | Last modification | View Log | RSS feed
# Makefile for Independent JPEG Group's software# makefile.cfg is edited by configure to produce a custom Makefile.# Read installation instructions before saying "make" !!# For compiling with source and object files in different directories.srcdir = @srcdir@VPATH = @srcdir@# Where to install the programs and man pages.prefix = @prefix@exec_prefix = @exec_prefix@bindir = $(exec_prefix)/binlibdir = $(exec_prefix)/libincludedir = $(prefix)/includebinprefix =manprefix =manext = 1mandir = $(prefix)/man/man$(manext)# The name of your C compiler:CC= @CC@# You may need to adjust these cc options:CFLAGS= @CFLAGS@ @CPPFLAGS@ @INCLUDEFLAGS@# Generally, we recommend defining any configuration symbols in jconfig.h,# NOT via -D switches here.# However, any special defines for ansi2knr.c may be included here:ANSI2KNRFLAGS= @ANSI2KNRFLAGS@# Link-time cc options:LDFLAGS= @LDFLAGS@# To link any special libraries, add the necessary -l commands here.LDLIBS= @LIBS@# If using GNU libtool, LIBTOOL references it; if not, LIBTOOL is empty.LIBTOOL = @LIBTOOL@# $(O) expands to "lo" if using libtool, plain "o" if not.# Similarly, $(A) expands to "la" or "a".O = @O@A = @A@# Library version ID; libtool uses this for the shared library version number.# Note: we suggest this match the macro of the same name in jpeglib.h.JPEG_LIB_VERSION = @JPEG_LIB_VERSION@# Put here the object file name for the correct system-dependent memory# manager file. For Unix this is usually jmemnobs.o, but you may want# to use jmemansi.o or jmemname.o if you have limited swap space.SYSDEPMEM= @MEMORYMGR@# miscellaneous OS-dependent stuffSHELL= /bin/sh# linkerLN= @LN@# file deletion commandRM= rm -f# directory creation commandMKDIR= mkdir# library (.a) file creation commandAR= ar rc# second step in .a creation (use "touch" if not needed)AR2= @RANLIB@# installation programINSTALL= @INSTALL@INSTALL_PROGRAM= @INSTALL_PROGRAM@INSTALL_LIB= @INSTALL_LIB@INSTALL_DATA= @INSTALL_DATA@# End of configurable options.# source files: JPEG library properLIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \jquant2.c jutils.c jmemmgr.c# memmgr back ends: compile only one of these into a working librarySYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcomAPPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.cSOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)# files included by source filesINCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h# documentation, test, and support filesDOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \coderules.doc filelist.doc change.logMKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \makvms.optCONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \jconfig.vmsCONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.shOTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asmTESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \testimgp.jpgDISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \$(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)# library object files common to compression and decompressionCOMOBJECTS= jcomapi.$(O) jutils.$(O) jerror.$(O) jmemmgr.$(O) $(SYSDEPMEM)# compression library object filesCLIBOBJECTS= jcapimin.$(O) jcapistd.$(O) jctrans.$(O) jcparam.$(O) \jdatadst.$(O) jcinit.$(O) jcmaster.$(O) jcmarker.$(O) jcmainct.$(O) \jcprepct.$(O) jccoefct.$(O) jccolor.$(O) jcsample.$(O) jchuff.$(O) \jcphuff.$(O) jcdctmgr.$(O) jfdctfst.$(O) jfdctflt.$(O) \jfdctint.$(O)# decompression library object filesDLIBOBJECTS= jdapimin.$(O) jdapistd.$(O) jdtrans.$(O) jdatasrc.$(O) \jdmaster.$(O) jdinput.$(O) jdmarker.$(O) jdhuff.$(O) jdphuff.$(O) \jdmainct.$(O) jdcoefct.$(O) jdpostct.$(O) jddctmgr.$(O) \jidctfst.$(O) jidctflt.$(O) jidctint.$(O) jidctred.$(O) \jdsample.$(O) jdcolor.$(O) jquant1.$(O) jquant2.$(O) jdmerge.$(O)# These objectfiles are included in libjpeg.aLIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)# object files for sample applications (excluding library files)COBJECTS= cjpeg.$(O) rdppm.$(O) rdgif.$(O) rdtarga.$(O) rdrle.$(O) \rdbmp.$(O) rdswitch.$(O) cdjpeg.$(O)DOBJECTS= djpeg.$(O) wrppm.$(O) wrgif.$(O) wrtarga.$(O) wrrle.$(O) \wrbmp.$(O) rdcolmap.$(O) cdjpeg.$(O)TROBJECTS= jpegtran.$(O) rdswitch.$(O) cdjpeg.$(O) transupp.$(O)all: @A2K_DEPS@ libjpeg.$(A) cjpeg djpeg jpegtran rdjpgcom wrjpgcom# Special compilation rules to support ansi2knr and libtool..SUFFIXES: .lo .la# How to compile with libtool.@COM_LT@.c.lo:@COM_LT@ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c $(srcdir)/$*.c# How to use ansi2knr, when not using libtool.@COM_A2K@.c.o:@COM_A2K@ ./ansi2knr $(srcdir)/$*.c knr/$*.c@COM_A2K@ $(CC) $(CFLAGS) -c knr/$*.c@COM_A2K@ $(RM) knr/$*.c# How to use ansi2knr AND libtool.@COM_A2K@.c.lo:@COM_A2K@ ./ansi2knr $(srcdir)/$*.c knr/$*.c@COM_A2K@ $(LIBTOOL) --mode=compile $(CC) $(CFLAGS) -c knr/$*.c@COM_A2K@ $(RM) knr/$*.cansi2knr: ansi2knr.c$(CC) $(CFLAGS) $(ANSI2KNRFLAGS) -o ansi2knr $(srcdir)/ansi2knr.c$(MKDIR) knr# the library:# without libtool:libjpeg.a: @A2K_DEPS@ $(LIBOBJECTS)$(RM) libjpeg.a$(AR) libjpeg.a $(LIBOBJECTS)$(AR2) libjpeg.a# with libtool:libjpeg.la: @A2K_DEPS@ $(LIBOBJECTS)$(LIBTOOL) --mode=link $(CC) -o libjpeg.la $(LIBOBJECTS) \-rpath $(libdir) -version-info $(JPEG_LIB_VERSION)# sample programs:cjpeg: $(COBJECTS) libjpeg.$(A)$(LN) $(LDFLAGS) -o cjpeg $(COBJECTS) libjpeg.$(A) $(LDLIBS)djpeg: $(DOBJECTS) libjpeg.$(A)$(LN) $(LDFLAGS) -o djpeg $(DOBJECTS) libjpeg.$(A) $(LDLIBS)jpegtran: $(TROBJECTS) libjpeg.$(A)$(LN) $(LDFLAGS) -o jpegtran $(TROBJECTS) libjpeg.$(A) $(LDLIBS)rdjpgcom: rdjpgcom.$(O)$(LN) $(LDFLAGS) -o rdjpgcom rdjpgcom.$(O) $(LDLIBS)wrjpgcom: wrjpgcom.$(O)$(LN) $(LDFLAGS) -o wrjpgcom wrjpgcom.$(O) $(LDLIBS)# Installation rules:install: cjpeg djpeg jpegtran rdjpgcom wrjpgcom @FORCE_INSTALL_LIB@$(INSTALL_PROGRAM) cjpeg $(bindir)/$(binprefix)cjpeg$(INSTALL_PROGRAM) djpeg $(bindir)/$(binprefix)djpeg$(INSTALL_PROGRAM) jpegtran $(bindir)/$(binprefix)jpegtran$(INSTALL_PROGRAM) rdjpgcom $(bindir)/$(binprefix)rdjpgcom$(INSTALL_PROGRAM) wrjpgcom $(bindir)/$(binprefix)wrjpgcom$(INSTALL_DATA) $(srcdir)/cjpeg.1 $(mandir)/$(manprefix)cjpeg.$(manext)$(INSTALL_DATA) $(srcdir)/djpeg.1 $(mandir)/$(manprefix)djpeg.$(manext)$(INSTALL_DATA) $(srcdir)/jpegtran.1 $(mandir)/$(manprefix)jpegtran.$(manext)$(INSTALL_DATA) $(srcdir)/rdjpgcom.1 $(mandir)/$(manprefix)rdjpgcom.$(manext)$(INSTALL_DATA) $(srcdir)/wrjpgcom.1 $(mandir)/$(manprefix)wrjpgcom.$(manext)install-lib: libjpeg.$(A) install-headers$(INSTALL_LIB) libjpeg.$(A) $(libdir)/$(binprefix)libjpeg.$(A)install-headers: jconfig.h$(INSTALL_DATA) jconfig.h $(includedir)/jconfig.h$(INSTALL_DATA) $(srcdir)/jpeglib.h $(includedir)/jpeglib.h$(INSTALL_DATA) $(srcdir)/jmorecfg.h $(includedir)/jmorecfg.h$(INSTALL_DATA) $(srcdir)/jerror.h $(includedir)/jerror.hclean:$(RM) *.o *.lo libjpeg.a libjpeg.la$(RM) cjpeg djpeg jpegtran rdjpgcom wrjpgcom$(RM) ansi2knr core testout* config.log config.status$(RM) -r knr .libs _libsdistclean: clean$(RM) Makefile jconfig.h libtool config.cachetest: cjpeg djpeg jpegtran$(RM) testout*./djpeg -dct int -ppm -outfile testout.ppm $(srcdir)/testorig.jpg./djpeg -dct int -bmp -colors 256 -outfile testout.bmp $(srcdir)/testorig.jpg./cjpeg -dct int -outfile testout.jpg $(srcdir)/testimg.ppm./djpeg -dct int -ppm -outfile testoutp.ppm $(srcdir)/testprog.jpg./cjpeg -dct int -progressive -opt -outfile testoutp.jpg $(srcdir)/testimg.ppm./jpegtran -outfile testoutt.jpg $(srcdir)/testprog.jpgcmp $(srcdir)/testimg.ppm testout.ppmcmp $(srcdir)/testimg.bmp testout.bmpcmp $(srcdir)/testimg.jpg testout.jpgcmp $(srcdir)/testimg.ppm testoutp.ppmcmp $(srcdir)/testimgp.jpg testoutp.jpgcmp $(srcdir)/testorig.jpg testoutt.jpgcheck: test# Mistake catcher:jconfig.h: jconfig.docecho You must prepare a system-dependent jconfig.h file.echo Please read the installation directions in install.doc.exit 1# GNU Make likes to know which target names are not really files to be made:.PHONY: all install install-lib install-headers clean distclean test checkjcapimin.$(O): jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcapistd.$(O): jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjccoefct.$(O): jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjccolor.$(O): jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcdctmgr.$(O): jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjchuff.$(O): jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.hjcinit.$(O): jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcmainct.$(O): jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcmarker.$(O): jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcmaster.$(O): jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcomapi.$(O): jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcparam.$(O): jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcphuff.$(O): jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.hjcprepct.$(O): jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcsample.$(O): jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjctrans.$(O): jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdapimin.$(O): jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdapistd.$(O): jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdatadst.$(O): jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.hjdatasrc.$(O): jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.hjdcoefct.$(O): jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdcolor.$(O): jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjddctmgr.$(O): jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjdhuff.$(O): jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.hjdinput.$(O): jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmainct.$(O): jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmarker.$(O): jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmaster.$(O): jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmerge.$(O): jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdphuff.$(O): jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.hjdpostct.$(O): jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdsample.$(O): jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdtrans.$(O): jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjerror.$(O): jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.hjfdctflt.$(O): jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjfdctfst.$(O): jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjfdctint.$(O): jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctflt.$(O): jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctfst.$(O): jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctint.$(O): jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctred.$(O): jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjquant1.$(O): jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjquant2.$(O): jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjutils.$(O): jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjmemmgr.$(O): jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemansi.$(O): jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemname.$(O): jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemnobs.$(O): jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemdos.$(O): jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemmac.$(O): jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hcjpeg.$(O): cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.hdjpeg.$(O): djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.hjpegtran.$(O): jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.hrdjpgcom.$(O): rdjpgcom.c jinclude.h jconfig.hwrjpgcom.$(O): wrjpgcom.c jinclude.h jconfig.hcdjpeg.$(O): cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdcolmap.$(O): rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdswitch.$(O): rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.htransupp.$(O): transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.hrdppm.$(O): rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrppm.$(O): wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdgif.$(O): rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrgif.$(O): wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdtarga.$(O): rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrtarga.$(O): wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdbmp.$(O): rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrbmp.$(O): wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdrle.$(O): rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrrle.$(O): wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h