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

darco 56a656
# Makefile for Independent JPEG Group's software
darco 56a656
darco 56a656
# This makefile is for Amiga systems using SAS C 6.0 and up.
darco 56a656
# Thanks to Ed Hanway, Mark Rinfret, and Jim Zepeda.
darco 56a656
darco 56a656
# Read installation instructions before saying "make" !!
darco 56a656
darco 56a656
# The name of your C compiler:
darco 56a656
CC= sc
darco 56a656
darco 56a656
# You may need to adjust these cc options:
darco 56a656
# Uncomment the following lines for generic 680x0 version
darco 56a656
ARCHFLAGS= cpu=any
darco 56a656
SUFFIX=
darco 56a656
darco 56a656
# Uncomment the following lines for 68030-only version
darco 56a656
#ARCHFLAGS= cpu=68030
darco 56a656
#SUFFIX=.030
darco 56a656
darco 56a656
CFLAGS= nostackcheck data=near parms=register optimize $(ARCHFLAGS) \
darco 56a656
	ignore=104 ignore=304 ignore=306
darco 56a656
# ignore=104 disables warnings for mismatched const qualifiers
darco 56a656
# ignore=304 disables warnings for variables being optimized out
darco 56a656
# ignore=306 disables warnings for the inlining of functions
darco 56a656
# Generally, we recommend defining any configuration symbols in jconfig.h,
darco 56a656
# NOT via define switches here.
darco 56a656
darco 56a656
# Link-time cc options:
darco 56a656
LDFLAGS= SC SD ND BATCH
darco 56a656
darco 56a656
# To link any special libraries, add the necessary commands here.
darco 56a656
LDLIBS= LIB:scm.lib LIB:sc.lib
darco 56a656
darco 56a656
# Put here the object file name for the correct system-dependent memory
darco 56a656
# manager file.  For Amiga we recommend jmemname.o.
darco 56a656
SYSDEPMEM= jmemname.o
darco 56a656
darco 56a656
# miscellaneous OS-dependent stuff
darco 56a656
# linker
darco 56a656
LN= slink
darco 56a656
# file deletion command
darco 56a656
RM= delete quiet
darco 56a656
# library (.lib) file creation command
darco 56a656
AR= oml
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.o jutils.o jerror.o jmemmgr.o $(SYSDEPMEM)
darco 56a656
# compression library object files
darco 56a656
CLIBOBJECTS= jcapimin.o jcapistd.o jctrans.o jcparam.o jdatadst.o jcinit.o \
darco 56a656
        jcmaster.o jcmarker.o jcmainct.o jcprepct.o jccoefct.o jccolor.o \
darco 56a656
        jcsample.o jchuff.o jcphuff.o jcdctmgr.o jfdctfst.o jfdctflt.o \
darco 56a656
        jfdctint.o
darco 56a656
# decompression library object files
darco 56a656
DLIBOBJECTS= jdapimin.o jdapistd.o jdtrans.o jdatasrc.o jdmaster.o \
darco 56a656
        jdinput.o jdmarker.o jdhuff.o jdphuff.o jdmainct.o jdcoefct.o \
darco 56a656
        jdpostct.o jddctmgr.o jidctfst.o jidctflt.o jidctint.o jidctred.o \
darco 56a656
        jdsample.o jdcolor.o jquant1.o jquant2.o jdmerge.o
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.o rdppm.o rdgif.o rdtarga.o rdrle.o rdbmp.o rdswitch.o \
darco 56a656
        cdjpeg.o
darco 56a656
DOBJECTS= djpeg.o wrppm.o wrgif.o wrtarga.o wrrle.o wrbmp.o rdcolmap.o \
darco 56a656
        cdjpeg.o
darco 56a656
TROBJECTS= jpegtran.o rdswitch.o cdjpeg.o transupp.o
darco 56a656
darco 56a656
darco 56a656
all: libjpeg.lib cjpeg$(SUFFIX) djpeg$(SUFFIX) jpegtran$(SUFFIX) rdjpgcom$(SUFFIX) wrjpgcom$(SUFFIX)
darco 56a656
darco 56a656
# note: do several AR steps to avoid command line length limitations
darco 56a656
darco 56a656
libjpeg.lib: $(LIBOBJECTS)
darco 56a656
	-$(RM) libjpeg.lib
darco 56a656
	$(AR) libjpeg.lib r $(CLIBOBJECTS)
darco 56a656
	$(AR) libjpeg.lib r $(DLIBOBJECTS)
darco 56a656
	$(AR) libjpeg.lib r $(COMOBJECTS)
darco 56a656
darco 56a656
cjpeg$(SUFFIX): $(COBJECTS) libjpeg.lib
darco 56a656
	$(LN) 
darco 56a656
$(LDFLAGS)
darco 56a656
TO cjpeg$(SUFFIX)
darco 56a656
FROM LIB:c.o $(COBJECTS)
darco 56a656
LIB libjpeg.lib $(LDLIBS)
darco 56a656
<
darco 56a656
darco 56a656
djpeg$(SUFFIX): $(DOBJECTS) libjpeg.lib
darco 56a656
	$(LN) 
darco 56a656
$(LDFLAGS)
darco 56a656
TO djpeg$(SUFFIX)
darco 56a656
FROM LIB:c.o $(DOBJECTS)
darco 56a656
LIB libjpeg.lib $(LDLIBS)
darco 56a656
<
darco 56a656
darco 56a656
jpegtran$(SUFFIX): $(TROBJECTS) libjpeg.lib
darco 56a656
	$(LN) 
darco 56a656
$(LDFLAGS)
darco 56a656
TO jpegtran$(SUFFIX)
darco 56a656
FROM LIB:c.o $(TROBJECTS)
darco 56a656
LIB libjpeg.lib $(LDLIBS)
darco 56a656
<
darco 56a656
darco 56a656
rdjpgcom$(SUFFIX): rdjpgcom.o
darco 56a656
	$(LN) 
darco 56a656
$(LDFLAGS)
darco 56a656
TO rdjpgcom$(SUFFIX)
darco 56a656
FROM LIB:c.o rdjpgcom.o
darco 56a656
LIB $(LDLIBS)
darco 56a656
<
darco 56a656
darco 56a656
wrjpgcom$(SUFFIX): wrjpgcom.o
darco 56a656
	$(LN) 
darco 56a656
$(LDFLAGS)
darco 56a656
TO wrjpgcom$(SUFFIX)
darco 56a656
FROM LIB:c.o wrjpgcom.o
darco 56a656
LIB $(LDLIBS)
darco 56a656
<
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:
darco 56a656
	-$(RM) *.o cjpeg djpeg jpegtran cjpeg.030 djpeg.030 jpegtran.030
darco 56a656
	-$(RM) rdjpgcom wrjpgcom rdjpgcom.030 wrjpgcom.030
darco 56a656
	-$(RM) libjpeg.lib core testout*.*
darco 56a656
darco 56a656
test: cjpeg djpeg jpegtran
darco 56a656
	-$(RM) 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
	cmp testimg.ppm testout.ppm
darco 56a656
	cmp testimg.bmp testout.bmp
darco 56a656
	cmp testimg.jpg testout.jpg
darco 56a656
	cmp testimg.ppm testoutp.ppm
darco 56a656
	cmp testimgp.jpg testoutp.jpg
darco 56a656
	cmp testorig.jpg testoutt.jpg
darco 56a656
darco 56a656
darco 56a656
jcapimin.o: jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcapistd.o: jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jccoefct.o: jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jccolor.o: jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcdctmgr.o: jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jchuff.o: jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
darco 56a656
jcinit.o: jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcmainct.o: jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcmarker.o: jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcmaster.o: jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcomapi.o: jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcparam.o: jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcphuff.o: jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
darco 56a656
jcprepct.o: jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jcsample.o: jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jctrans.o: jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdapimin.o: jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdapistd.o: jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdatadst.o: jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
darco 56a656
jdatasrc.o: jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
darco 56a656
jdcoefct.o: jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdcolor.o: jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jddctmgr.o: jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jdhuff.o: jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
darco 56a656
jdinput.o: jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdmainct.o: jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdmarker.o: jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdmaster.o: jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdmerge.o: jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdphuff.o: jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
darco 56a656
jdpostct.o: jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdsample.o: jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jdtrans.o: jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jerror.o: jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
darco 56a656
jfdctflt.o: jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jfdctfst.o: jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jfdctint.o: jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jidctflt.o: jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jidctfst.o: jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jidctint.o: jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jidctred.o: jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
darco 56a656
jquant1.o: jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jquant2.o: jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jutils.o: jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
darco 56a656
jmemmgr.o: jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
darco 56a656
jmemansi.o: jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
darco 56a656
jmemname.o: jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
darco 56a656
jmemnobs.o: jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
darco 56a656
jmemdos.o: jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
darco 56a656
jmemmac.o: jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
darco 56a656
cjpeg.o: cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
darco 56a656
djpeg.o: djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
darco 56a656
jpegtran.o: jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
darco 56a656
rdjpgcom.o: rdjpgcom.c jinclude.h jconfig.h
darco 56a656
wrjpgcom.o: wrjpgcom.c jinclude.h jconfig.h
darco 56a656
cdjpeg.o: cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
rdcolmap.o: rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
rdswitch.o: rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
transupp.o: transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
darco 56a656
rdppm.o: rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
wrppm.o: wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
rdgif.o: rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
wrgif.o: wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
rdtarga.o: rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
wrtarga.o: wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
rdbmp.o: rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
wrbmp.o: wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
rdrle.o: rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
darco 56a656
wrrle.o: wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h