Blame gtkmm-osx/jpeg-6b/makefile.wat

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