kusano 7d535a
# Makefile for Independent JPEG Group's software
kusano 7d535a
kusano 7d535a
# This makefile is suitable for Watcom C/C++ 10.0 on MS-DOS (using
kusano 7d535a
# dos4g extender), OS/2, and Windows NT console mode.
kusano 7d535a
# Thanks to Janos Haide, jhaide@btrvtech.com.
kusano 7d535a
kusano 7d535a
# Read installation instructions before saying "wmake" !!
kusano 7d535a
kusano 7d535a
# Uncomment line for desired system
kusano 7d535a
SYSTEM=DOS
kusano 7d535a
#SYSTEM=OS2
kusano 7d535a
#SYSTEM=NT
kusano 7d535a
kusano 7d535a
# The name of your C compiler:
kusano 7d535a
CC= wcl386
kusano 7d535a
kusano 7d535a
# You may need to adjust these cc options:
kusano 7d535a
CFLAGS= -4r -ort -wx -zq -bt=$(SYSTEM)
kusano 7d535a
# Caution: avoid -ol or -ox; these generate bad code with 10.0 or 10.0a.
kusano 7d535a
# Generally, we recommend defining any configuration symbols in jconfig.h,
kusano 7d535a
# NOT via -D switches here.
kusano 7d535a
kusano 7d535a
# Link-time cc options:
kusano 7d535a
!ifeq SYSTEM DOS
kusano 7d535a
LDFLAGS= -zq -l=dos4g
kusano 7d535a
!else ifeq SYSTEM OS2
kusano 7d535a
LDFLAGS= -zq -l=os2v2
kusano 7d535a
!else ifeq SYSTEM NT
kusano 7d535a
LDFLAGS= -zq -l=nt
kusano 7d535a
!endif
kusano 7d535a
kusano 7d535a
# Put here the object file name for the correct system-dependent memory
kusano 7d535a
# manager file.  jmemnobs should work fine for dos4g or OS/2 environment.
kusano 7d535a
SYSDEPMEM= jmemnobs.obj
kusano 7d535a
kusano 7d535a
# End of configurable options.
kusano 7d535a
kusano 7d535a
kusano 7d535a
# source files: JPEG library proper
kusano 7d535a
LIBSOURCES= jaricom.c jcapimin.c jcapistd.c jcarith.c jccoefct.c jccolor.c &
kusano 7d535a
        jcdctmgr.c jchuff.c jcinit.c jcmainct.c jcmarker.c jcmaster.c &
kusano 7d535a
        jcomapi.c jcparam.c jcprepct.c jcsample.c jctrans.c jdapimin.c &
kusano 7d535a
        jdapistd.c jdarith.c jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c &
kusano 7d535a
        jddctmgr.c jdhuff.c jdinput.c jdmainct.c jdmarker.c jdmaster.c &
kusano 7d535a
        jdmerge.c jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c &
kusano 7d535a
        jfdctfst.c jfdctint.c jidctflt.c jidctfst.c jidctint.c jquant1.c &
kusano 7d535a
        jquant2.c jutils.c jmemmgr.c
kusano 7d535a
# memmgr back ends: compile only one of these into a working library
kusano 7d535a
SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
kusano 7d535a
# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
kusano 7d535a
APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c &
kusano 7d535a
        rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c &
kusano 7d535a
        rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
kusano 7d535a
SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
kusano 7d535a
# files included by source files
kusano 7d535a
INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h &
kusano 7d535a
        jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
kusano 7d535a
# documentation, test, and support files
kusano 7d535a
DOCS= README install.txt usage.txt cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 &
kusano 7d535a
        wrjpgcom.1 wizard.txt example.c libjpeg.txt structure.txt &
kusano 7d535a
        coderules.txt filelist.txt change.log
kusano 7d535a
MKFILES= configure Makefile.in makefile.ansi makefile.unix makefile.bcc &
kusano 7d535a
        makefile.mc6 makefile.dj makefile.wat makefile.vc makejdsw.vc6 &
kusano 7d535a
        makeadsw.vc6 makejdep.vc6 makejdsp.vc6 makejmak.vc6 makecdep.vc6 &
kusano 7d535a
        makecdsp.vc6 makecmak.vc6 makeddep.vc6 makeddsp.vc6 makedmak.vc6 &
kusano 7d535a
        maketdep.vc6 maketdsp.vc6 maketmak.vc6 makerdep.vc6 makerdsp.vc6 &
kusano 7d535a
        makermak.vc6 makewdep.vc6 makewdsp.vc6 makewmak.vc6 makejsln.v10 &
kusano 7d535a
        makeasln.v10 makejvcx.v10 makejfil.v10 makecvcx.v10 makecfil.v10 &
kusano 7d535a
        makedvcx.v10 makedfil.v10 maketvcx.v10 maketfil.v10 makervcx.v10 &
kusano 7d535a
        makerfil.v10 makewvcx.v10 makewfil.v10 makeproj.mac makcjpeg.st &
kusano 7d535a
        makdjpeg.st makljpeg.st maktjpeg.st makefile.manx makefile.sas &
kusano 7d535a
        makefile.mms makefile.vms makvms.opt
kusano 7d535a
CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat &
kusano 7d535a
        jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas &
kusano 7d535a
        jconfig.vms
kusano 7d535a
CONFIGUREFILES= config.guess config.sub install-sh ltmain.sh depcomp &
kusano 7d535a
        missing ar-lib
kusano 7d535a
OTHERFILES= jconfig.txt ckconfig.c jmemdosa.asm libjpeg.map
kusano 7d535a
TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg &
kusano 7d535a
        testimgp.jpg
kusano 7d535a
DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) &
kusano 7d535a
        $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
kusano 7d535a
# library object files common to compression and decompression
kusano 7d535a
COMOBJECTS= jaricom.obj jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
kusano 7d535a
# compression library object files
kusano 7d535a
CLIBOBJECTS= jcapimin.obj jcapistd.obj jcarith.obj jctrans.obj jcparam.obj &
kusano 7d535a
        jdatadst.obj jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj &
kusano 7d535a
        jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj jchuff.obj &
kusano 7d535a
        jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
kusano 7d535a
# decompression library object files
kusano 7d535a
DLIBOBJECTS= jdapimin.obj jdapistd.obj jdarith.obj jdtrans.obj jdatasrc.obj &
kusano 7d535a
        jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdmainct.obj &
kusano 7d535a
        jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj &
kusano 7d535a
        jidctint.obj jdsample.obj jdcolor.obj jquant1.obj jquant2.obj &
kusano 7d535a
        jdmerge.obj
kusano 7d535a
# These objectfiles are included in libjpeg.lib
kusano 7d535a
LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
kusano 7d535a
# object files for sample applications (excluding library files)
kusano 7d535a
COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj &
kusano 7d535a
        rdswitch.obj cdjpeg.obj
kusano 7d535a
DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj &
kusano 7d535a
        rdcolmap.obj cdjpeg.obj
kusano 7d535a
TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
kusano 7d535a
kusano 7d535a
kusano 7d535a
all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
kusano 7d535a
kusano 7d535a
libjpeg.lib: $(LIBOBJECTS)
kusano 7d535a
	- del libjpeg.lib
kusano 7d535a
	* wlib -n libjpeg.lib $(LIBOBJECTS)
kusano 7d535a
kusano 7d535a
cjpeg.exe: $(COBJECTS) libjpeg.lib
kusano 7d535a
	$(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib
kusano 7d535a
kusano 7d535a
djpeg.exe: $(DOBJECTS) libjpeg.lib
kusano 7d535a
	$(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib
kusano 7d535a
kusano 7d535a
jpegtran.exe: $(TROBJECTS) libjpeg.lib
kusano 7d535a
	$(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib
kusano 7d535a
kusano 7d535a
rdjpgcom.exe: rdjpgcom.c
kusano 7d535a
	$(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c
kusano 7d535a
kusano 7d535a
wrjpgcom.exe: wrjpgcom.c
kusano 7d535a
	$(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c
kusano 7d535a
kusano 7d535a
.c.obj:
kusano 7d535a
	$(CC) $(CFLAGS) -c $<
kusano 7d535a
kusano 7d535a
jconfig.h: jconfig.txt
kusano 7d535a
	echo You must prepare a system-dependent jconfig.h file.
kusano 7d535a
	echo Please read the installation directions in install.txt.
kusano 7d535a
	exit 1
kusano 7d535a
kusano 7d535a
clean: .SYMBOLIC
kusano 7d535a
	- del *.obj
kusano 7d535a
	- del libjpeg.lib
kusano 7d535a
	- del cjpeg.exe
kusano 7d535a
	- del djpeg.exe
kusano 7d535a
	- del jpegtran.exe
kusano 7d535a
	- del rdjpgcom.exe
kusano 7d535a
	- del wrjpgcom.exe
kusano 7d535a
	- del testout*.*
kusano 7d535a
kusano 7d535a
test: cjpeg.exe djpeg.exe jpegtran.exe  .SYMBOLIC
kusano 7d535a
	- del testout*.*
kusano 7d535a
	djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
kusano 7d535a
	djpeg -dct int -bmp -colors 256 -outfile testout.bmp  testorig.jpg
kusano 7d535a
	cjpeg -dct int -outfile testout.jpg  testimg.ppm
kusano 7d535a
	djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
kusano 7d535a
	cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
kusano 7d535a
	jpegtran -outfile testoutt.jpg testprog.jpg
kusano 7d535a
!ifeq SYSTEM DOS
kusano 7d535a
	fc /b testimg.ppm testout.ppm
kusano 7d535a
	fc /b testimg.bmp testout.bmp
kusano 7d535a
	fc /b testimg.jpg testout.jpg
kusano 7d535a
	fc /b testimg.ppm testoutp.ppm
kusano 7d535a
	fc /b testimgp.jpg testoutp.jpg
kusano 7d535a
	fc /b testorig.jpg testoutt.jpg
kusano 7d535a
!else
kusano 7d535a
	echo n > n.tmp
kusano 7d535a
	comp testimg.ppm testout.ppm < n.tmp
kusano 7d535a
	comp testimg.bmp testout.bmp < n.tmp
kusano 7d535a
	comp testimg.jpg testout.jpg < n.tmp
kusano 7d535a
	comp testimg.ppm testoutp.ppm < n.tmp
kusano 7d535a
	comp testimgp.jpg testoutp.jpg < n.tmp
kusano 7d535a
	comp testorig.jpg testoutt.jpg < n.tmp
kusano 7d535a
	del n.tmp
kusano 7d535a
!endif
kusano 7d535a
kusano 7d535a
kusano 7d535a
jaricom.obj: jaricom.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcapimin.obj: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcapistd.obj: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcarith.obj: jcarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jccoefct.obj: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jccolor.obj: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcdctmgr.obj: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jchuff.obj: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcinit.obj: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcmainct.obj: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcmarker.obj: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcmaster.obj: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcomapi.obj: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcparam.obj: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcprepct.obj: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jcsample.obj: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jctrans.obj: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdapimin.obj: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdapistd.obj: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdarith.obj: jdarith.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdatadst.obj: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
kusano 7d535a
jdatasrc.obj: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
kusano 7d535a
jdcoefct.obj: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdcolor.obj: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jddctmgr.obj: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jdhuff.obj: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdinput.obj: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdmainct.obj: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdmarker.obj: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdmaster.obj: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdmerge.obj: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdpostct.obj: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdsample.obj: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jdtrans.obj: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jerror.obj: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
kusano 7d535a
jfdctflt.obj: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jfdctfst.obj: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jfdctint.obj: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jidctflt.obj: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jidctfst.obj: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jidctint.obj: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
kusano 7d535a
jquant1.obj: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jquant2.obj: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jutils.obj: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
kusano 7d535a
jmemmgr.obj: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
kusano 7d535a
jmemansi.obj: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
kusano 7d535a
jmemname.obj: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
kusano 7d535a
jmemnobs.obj: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
kusano 7d535a
jmemdos.obj: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
kusano 7d535a
jmemmac.obj: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
kusano 7d535a
cjpeg.obj: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
kusano 7d535a
djpeg.obj: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
kusano 7d535a
jpegtran.obj: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
kusano 7d535a
rdjpgcom.obj: rdjpgcom.c jinclude.h jconfig.h
kusano 7d535a
wrjpgcom.obj: wrjpgcom.c jinclude.h jconfig.h
kusano 7d535a
cdjpeg.obj: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
rdcolmap.obj: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
rdswitch.obj: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
transupp.obj: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
kusano 7d535a
rdppm.obj: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
wrppm.obj: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
rdgif.obj: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
wrgif.obj: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
rdtarga.obj: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
wrtarga.obj: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
rdbmp.obj: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
wrbmp.obj: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
rdrle.obj: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
kusano 7d535a
wrrle.obj: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h