Blame | Last modification | View Log | RSS feed
# Makefile for Independent JPEG Group's software# This makefile is suitable for Borland C on MS-DOS or OS/2.# It works with Borland C++ for DOS, revision 3.0 or later,# and has been tested with Borland C++ for OS/2.# Watch out for optimization bugs in the OS/2 compilers --- see notes below!# Thanks to Tom Wright and Ge' Weijers (original DOS) and# Ken Porter (OS/2) for this file.# Read installation instructions before saying "make" !!# Are we under DOS or OS/2?!if !$d(DOS) && !$d(OS2)!if $d(__OS2__)OS2=1!elseDOS=1!endif!endif# The name of your C compiler:CC= bcc# You may need to adjust these cc options:!if $d(DOS)CFLAGS= -O2 -mm -w-par -w-stu -w-ccc -w-rch!elseCFLAGS= -O1 -w-par -w-stu -w-ccc -w-rch!endif# -O2 enables full code optimization (for pre-3.0 Borland C++, use -O -G -Z).# -O2 is buggy in Borland OS/2 C++ revision 2.0, so use -O1 there for now.# If you have Borland OS/2 C++ revision 1.0, use -O or no optimization at all.# -mm selects medium memory model (near data, far code pointers; DOS only!)# -w-par suppresses warnings about unused function parameters# -w-stu suppresses warnings about incomplete structures# -w-ccc suppresses warnings about compile-time-constant conditions# -w-rch suppresses warnings about unreachable code# Generally, we recommend defining any configuration symbols in jconfig.h,# NOT via -D switches here.# Link-time cc options:!if $d(DOS)LDFLAGS= -mm# memory model option here must match CFLAGS!!elseLDFLAGS=# -lai full-screen app# -lc case-significant link!endif# Put here the object file name for the correct system-dependent memory# manager file.# For DOS, we recommend jmemdos.c and jmemdosa.asm.# For OS/2, we recommend jmemnobs.c (flat memory!)# SYSDEPMEMLIB must list the same files with "+" signs for the librarian.!if $d(DOS)SYSDEPMEM= jmemdos.obj jmemdosa.objSYSDEPMEMLIB= +jmemdos.obj +jmemdosa.obj!elseSYSDEPMEM= jmemnobs.objSYSDEPMEMLIB= +jmemnobs.obj!endif# 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.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)# compression library object filesCLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj# decompression library object filesDLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \jquant1.obj jquant2.obj jdmerge.obj# These objectfiles are included in libjpeg.libLIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)# object files for sample applications (excluding library files)COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \rdswitch.obj cdjpeg.objDOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \rdcolmap.obj cdjpeg.objTROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.objall: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exelibjpeg.lib: $(LIBOBJECTS)- del libjpeg.libtlib libjpeg.lib /E /C @&&|+jcapimin.obj +jcapistd.obj +jctrans.obj +jcparam.obj +jdatadst.obj &+jcinit.obj +jcmaster.obj +jcmarker.obj +jcmainct.obj +jcprepct.obj &+jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj +jcphuff.obj &+jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj +jfdctint.obj +jdapimin.obj &+jdapistd.obj +jdtrans.obj +jdatasrc.obj +jdmaster.obj +jdinput.obj &+jdmarker.obj +jdhuff.obj +jdphuff.obj +jdmainct.obj +jdcoefct.obj &+jdpostct.obj +jddctmgr.obj +jidctfst.obj +jidctflt.obj +jidctint.obj &+jidctred.obj +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj &+jdmerge.obj +jcomapi.obj +jutils.obj +jerror.obj +jmemmgr.obj &$(SYSDEPMEMLIB)|cjpeg.exe: $(COBJECTS) libjpeg.lib$(CC) $(LDFLAGS) -ecjpeg.exe $(COBJECTS) libjpeg.libdjpeg.exe: $(DOBJECTS) libjpeg.lib$(CC) $(LDFLAGS) -edjpeg.exe $(DOBJECTS) libjpeg.libjpegtran.exe: $(TROBJECTS) libjpeg.lib$(CC) $(LDFLAGS) -ejpegtran.exe $(TROBJECTS) libjpeg.librdjpgcom.exe: rdjpgcom.c!if $d(DOS)$(CC) -ms -O rdjpgcom.c!else$(CC) $(CFLAGS) rdjpgcom.c!endif# On DOS, wrjpgcom needs large model so it can malloc a 64K chunkwrjpgcom.exe: wrjpgcom.c!if $d(DOS)$(CC) -ml -O wrjpgcom.c!else$(CC) $(CFLAGS) wrjpgcom.c!endif# This "{}" syntax allows Borland Make to "batch" source files.# In this way, each run of the compiler can build many modules..c.obj:$(CC) $(CFLAGS) -c{ $<}jconfig.h: jconfig.docecho You must prepare a system-dependent jconfig.h file.echo Please read the installation directions in install.doc.exit 1clean:- del *.obj- del libjpeg.lib- del cjpeg.exe- del djpeg.exe- del jpegtran.exe- del rdjpgcom.exe- del wrjpgcom.exe- del testout*.*test: cjpeg.exe djpeg.exe jpegtran.exe- del testout*.*djpeg -dct int -ppm -outfile testout.ppm testorig.jpgdjpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpgcjpeg -dct int -outfile testout.jpg testimg.ppmdjpeg -dct int -ppm -outfile testoutp.ppm testprog.jpgcjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppmjpegtran -outfile testoutt.jpg testprog.jpg!if $d(DOS)fc /b testimg.ppm testout.ppmfc /b testimg.bmp testout.bmpfc /b testimg.jpg testout.jpgfc /b testimg.ppm testoutp.ppmfc /b testimgp.jpg testoutp.jpgfc /b testorig.jpg testoutt.jpg!elseecho n > n.tmpcomp testimg.ppm testout.ppm < n.tmpcomp testimg.bmp testout.bmp < n.tmpcomp testimg.jpg testout.jpg < n.tmpcomp testimg.ppm testoutp.ppm < n.tmpcomp testimgp.jpg testoutp.jpg < n.tmpcomp testorig.jpg testoutt.jpg < n.tmpdel n.tmp!endifjcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.hjcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcphuff.obj: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.hjcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.hjdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.hjdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.hjdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdphuff.obj: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.hjdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.hjfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjidctred.obj: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.hjquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.hjmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hjmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.hcjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.hdjpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.hjpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.hrdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.hwrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.hcdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.htransupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.hrdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hrdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hwrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.hjmemdosa.obj: jmemdosa.asmtasm /mx jmemdosa.asm