1991-10-06 20:00:00 -04:00
|
|
|
# Makefile for Independent JPEG Group's software
|
|
|
|
|
1992-12-09 19:00:00 -05:00
|
|
|
# This makefile is for Microsoft C for MS-DOS, version 6.00A and up.
|
|
|
|
# Use NMAKE, not Microsoft's brain-damaged MAKE.
|
1991-10-06 20:00:00 -04:00
|
|
|
# Thanks to Alan Wright and Chris Turner of Olivetti Research Ltd.
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# Read installation instructions before saying "nmake" !!
|
1991-10-06 20:00:00 -04:00
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# You may need to adjust these compiler options:
|
|
|
|
CFLAGS = -AM -Oecigt -Gs -W3
|
|
|
|
# -AM medium memory model (or use -AS for small model, if you remove features)
|
|
|
|
# -Oecigt -Gs maximum safe optimisation (-Ol has bugs in MSC 6.00A)
|
|
|
|
# -W3 warning level 3
|
|
|
|
# You might also want to add -G2 if you have an 80286, etc.
|
|
|
|
# Generally, we recommend defining any configuration symbols in jconfig.h,
|
|
|
|
# NOT via -D switches here.
|
|
|
|
|
|
|
|
# Put here the object file name for the correct system-dependent memory
|
|
|
|
# manager file. For DOS, we recommend jmemdos.c and jmemdosa.asm.
|
|
|
|
# If you change this, you'll need to modify the linker response file
|
|
|
|
# name list, below, by hand!
|
|
|
|
SYSDEPMEM= jmemdos.obj jmemdosa.obj
|
|
|
|
|
|
|
|
# End of configurable options.
|
|
|
|
|
|
|
|
|
|
|
|
# source files: JPEG library proper
|
|
|
|
LIBSOURCES= jcapi.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c jcmainct.c \
|
|
|
|
jcmarker.c jcmaster.c jcomapi.c jcparam.c jcprepct.c jcsample.c \
|
|
|
|
jdapi.c jdatasrc.c jdatadst.c jdcoefct.c jdcolor.c jddctmgr.c \
|
|
|
|
jdhuff.c jdmainct.c jdmarker.c jdmaster.c jdpostct.c jdsample.c \
|
|
|
|
jerror.c jutils.c jfdctfst.c jfdctflt.c jfdctint.c jidctfst.c \
|
|
|
|
jidctflt.c jidctint.c jidctred.c jquant1.c jquant2.c jdmerge.c \
|
|
|
|
jmemmgr.c jmemansi.c jmemname.c jmemnobs.c jmemdos.c
|
|
|
|
# source files: cjpeg/djpeg applications, also rdjpgcom/wrjpgcom
|
|
|
|
APPSOURCES= cjpeg.c djpeg.c rdcolmap.c rdppm.c wrppm.c rdgif.c wrgif.c \
|
|
|
|
rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c rdjpgcom.c \
|
|
|
|
wrjpgcom.c
|
|
|
|
SOURCES= $(LIBSOURCES) $(APPSOURCES)
|
1991-12-12 19:00:00 -05:00
|
|
|
# files included by source files
|
1994-09-23 20:00:00 -04:00
|
|
|
INCLUDES= jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h jpegint.h \
|
|
|
|
jpeglib.h jversion.h cdjpeg.h cderror.h
|
1991-12-12 19:00:00 -05:00
|
|
|
# documentation, test, and support files
|
1994-09-23 20:00:00 -04:00
|
|
|
DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 rdjpgcom.1 wrjpgcom.1 \
|
|
|
|
example.c libjpeg.doc structure.doc coderules.doc filelist.doc \
|
|
|
|
change.log
|
1994-12-06 19:00:00 -05:00
|
|
|
MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.manx \
|
1994-09-23 20:00:00 -04:00
|
|
|
makefile.sas makcjpeg.st makdjpeg.st makljpeg.st makefile.bcc \
|
|
|
|
makefile.mc6 makefile.dj makefile.mms makefile.vms makvms.opt
|
1994-12-06 19:00:00 -05:00
|
|
|
CONFIGFILES= jconfig.cfg jconfig.manx jconfig.sas jconfig.st jconfig.bcc \
|
1994-09-23 20:00:00 -04:00
|
|
|
jconfig.mc6 jconfig.dj jconfig.vms
|
|
|
|
OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
|
1992-03-16 19:00:00 -05:00
|
|
|
TESTFILES= testorig.jpg testimg.ppm testimg.gif testimg.jpg
|
1994-09-23 20:00:00 -04:00
|
|
|
DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
|
1992-03-16 19:00:00 -05:00
|
|
|
$(OTHERFILES) $(TESTFILES)
|
1994-09-23 20:00:00 -04:00
|
|
|
# library object files common to compression and decompression
|
|
|
|
COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
|
|
|
|
# compression library object files
|
|
|
|
CLIBOBJECTS= jcapi.obj jcparam.obj jdatadst.obj jcmaster.obj jcmarker.obj \
|
|
|
|
jcmainct.obj jcprepct.obj jccoefct.obj jccolor.obj jcsample.obj \
|
|
|
|
jchuff.obj jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
|
|
|
|
# decompression library object files
|
|
|
|
DLIBOBJECTS= jdapi.obj jdatasrc.obj jdmaster.obj jdmarker.obj jdmainct.obj \
|
|
|
|
jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj jidctflt.obj \
|
|
|
|
jidctint.obj jidctred.obj jdhuff.obj jdsample.obj jdcolor.obj \
|
|
|
|
jquant1.obj jquant2.obj jdmerge.obj
|
1991-12-12 19:00:00 -05:00
|
|
|
# These objectfiles are included in libjpeg.lib
|
|
|
|
LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
|
1994-09-23 20:00:00 -04:00
|
|
|
# object files for cjpeg and djpeg applications (excluding library files)
|
|
|
|
COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj
|
|
|
|
DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
|
|
|
|
rdcolmap.obj
|
1991-10-06 20:00:00 -04:00
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# need linker response file because file list > 128 chars
|
|
|
|
RFILE = libjpeg.ans
|
1991-10-06 20:00:00 -04:00
|
|
|
|
1991-12-12 19:00:00 -05:00
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
all: libjpeg.lib cjpeg.exe djpeg.exe rdjpgcom.exe wrjpgcom.exe
|
1992-12-09 19:00:00 -05:00
|
|
|
|
|
|
|
libjpeg.lib: $(LIBOBJECTS) $(RFILE)
|
1994-09-23 20:00:00 -04:00
|
|
|
del libjpeg.lib
|
|
|
|
lib @$(RFILE) ;
|
1992-12-09 19:00:00 -05:00
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
# linker response file for building libjpeg.lib
|
1992-12-09 19:00:00 -05:00
|
|
|
$(RFILE) : Makefile
|
1994-09-23 20:00:00 -04:00
|
|
|
del $(RFILE)
|
|
|
|
echo libjpeg.lib >$(RFILE)
|
1992-12-09 19:00:00 -05:00
|
|
|
# silly want-to-create-it prompt:
|
1994-09-23 20:00:00 -04:00
|
|
|
echo y >>$(RFILE)
|
|
|
|
echo +jcapi.obj +jcparam.obj +jdatadst.obj +jcmaster.obj & >>$(RFILE)
|
|
|
|
echo +jcmarker.obj +jcmainct.obj +jcprepct.obj & >>$(RFILE)
|
|
|
|
echo +jccoefct.obj +jccolor.obj +jcsample.obj +jchuff.obj & >>$(RFILE)
|
|
|
|
echo +jcdctmgr.obj +jfdctfst.obj +jfdctflt.obj & >>$(RFILE)
|
|
|
|
echo +jfdctint.obj +jdapi.obj +jdatasrc.obj +jdmaster.obj & >>$(RFILE)
|
|
|
|
echo +jdmarker.obj +jdmainct.obj +jdcoefct.obj & >>$(RFILE)
|
|
|
|
echo +jdpostct.obj +jddctmgr.obj +jidctfst.obj & >>$(RFILE)
|
|
|
|
echo +jidctflt.obj +jidctint.obj +jidctred.obj +jdhuff.obj & >>$(RFILE)
|
|
|
|
echo +jdsample.obj +jdcolor.obj +jquant1.obj +jquant2.obj & >>$(RFILE)
|
|
|
|
echo +jdmerge.obj +jcomapi.obj +jutils.obj +jerror.obj & >>$(RFILE)
|
|
|
|
echo +jmemmgr.obj +jmemdos.obj +jmemdosa.obj >>$(RFILE)
|
|
|
|
|
|
|
|
cjpeg.exe: $(COBJECTS) libjpeg.lib
|
|
|
|
link /STACK:4096 /EXEPACK $(COBJECTS), cjpeg.exe, , libjpeg.lib, ;
|
|
|
|
|
|
|
|
djpeg.exe: $(DOBJECTS) libjpeg.lib
|
|
|
|
link /STACK:4096 /EXEPACK $(DOBJECTS), djpeg.exe, , libjpeg.lib, ;
|
|
|
|
|
|
|
|
rdjpgcom.exe: rdjpgcom.c
|
|
|
|
$(CC) -AS -O -W3 rdjpgcom.c
|
|
|
|
|
|
|
|
# wrjpgcom needs large model so it can malloc a 64K chunk
|
|
|
|
wrjpgcom.exe: wrjpgcom.c
|
|
|
|
$(CC) -AL -O -W3 wrjpgcom.c
|
|
|
|
|
|
|
|
jconfig.h: jconfig.doc
|
|
|
|
echo You must prepare a system-dependent jconfig.h file.
|
|
|
|
echo Please read the installation directions in install.doc.
|
1992-12-09 19:00:00 -05:00
|
|
|
exit 1
|
|
|
|
|
|
|
|
clean:
|
|
|
|
del *.obj
|
|
|
|
del libjpeg.lib
|
|
|
|
del cjpeg.exe
|
|
|
|
del djpeg.exe
|
1994-09-23 20:00:00 -04:00
|
|
|
del rdjpgcom.exe
|
|
|
|
del wrjpgcom.exe
|
1992-12-09 19:00:00 -05:00
|
|
|
del testout.*
|
|
|
|
|
1994-09-23 20:00:00 -04:00
|
|
|
test: cjpeg.exe djpeg.exe
|
|
|
|
del testout.*
|
|
|
|
djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
|
|
|
|
djpeg -dct int -gif -outfile testout.gif testorig.jpg
|
|
|
|
cjpeg -dct int -outfile testout.jpg testimg.ppm
|
|
|
|
fc /b testimg.ppm testout.ppm
|
|
|
|
fc /b testimg.gif testout.gif
|
|
|
|
fc /b testimg.jpg testout.jpg
|
|
|
|
|
|
|
|
|
|
|
|
jcapi.obj : jcapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jccoefct.obj : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jccolor.obj : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcdctmgr.obj : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jchuff.obj : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcmainct.obj : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcmarker.obj : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcomapi.obj : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcparam.obj : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcprepct.obj : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jcsample.obj : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdapi.obj : jdapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdatasrc.obj : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
|
|
|
jdatadst.obj : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
|
|
|
|
jdcoefct.obj : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jddctmgr.obj : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmainct.obj : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmarker.obj : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdpostct.obj : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdsample.obj : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jerror.obj : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
|
|
|
|
jutils.obj : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jfdctfst.obj : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jfdctflt.obj : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jfdctint.obj : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctfst.obj : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctflt.obj : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctint.obj : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jidctred.obj : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
|
|
|
|
jquant1.obj : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jquant2.obj : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jdmerge.obj : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
|
|
|
|
jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemansi.obj : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemname.obj : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemnobs.obj : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
jmemdos.obj : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
|
|
|
|
cjpeg.obj : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
|
|
|
djpeg.obj : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
|
|
|
|
rdcolmap.obj : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdppm.obj : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrppm.obj : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdgif.obj : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrgif.obj : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdtarga.obj : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrtarga.obj : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdbmp.obj : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrbmp.obj : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdrle.obj : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
wrrle.obj : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
|
|
|
|
rdjpgcom.obj : rdjpgcom.c jinclude.h jconfig.h
|
|
|
|
wrjpgcom.obj : wrjpgcom.c jinclude.h jconfig.h
|
1992-03-16 19:00:00 -05:00
|
|
|
jmemdosa.obj : jmemdosa.asm
|
1994-09-23 20:00:00 -04:00
|
|
|
masm /mx $*;
|