1# Makefile for Independent JPEG Group's software
2
3# This makefile is for use with MMS on Digital VMS systems.
4# Thanks to Rick Dyson (dyson@iowasp.physics.uiowa.edu)
5# and Tim Bell (tbell@netcom.com) for their help.
6
7# Read installation instructions before saying "MMS" !!
8
9# You may need to adjust these cc options:
10CFLAGS= $(CFLAGS) /NoDebug /Optimize
11# Generally, we recommend defining any configuration symbols in jconfig.h,
12# NOT via /Define switches here.
13.ifdef ALPHA
14OPT=
15.else
16OPT= ,Sys$Disk:[]MAKVMS.OPT/Option
17.endif
18
19# Put here the object file name for the correct system-dependent memory
20# manager file.  For Unix this is usually jmemnobs.o, but you may want
21# to use jmemansi.o or jmemname.o if you have limited swap space.
22SYSDEPMEM= jmemnobs.obj
23
24# End of configurable options.
25
26
27# source files: JPEG library proper
28LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c \
29        jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c \
30        jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c \
31        jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c \
32        jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c \
33        jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c \
34        jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c \
35        jquant2.c jutils.c jmemmgr.c
36# memmgr back ends: compile only one of these into a working library
37SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
38# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
39APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \
40        rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \
41        rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
42SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)
43# files included by source files
44INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \
45        jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
46# documentation, test, and support files
47DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \
48        wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \
49        coderules.doc filelist.doc change.log
50MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \
51        makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \
52        makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \
53        maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \
54        makvms.opt
55CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \
56        jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \
57        jconfig.vms
58CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh
59OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
60TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \
61        testimgp.jpg
62DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \
63        $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)
64# library object files common to compression and decompression
65COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
66# compression library object files
67CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj \
68        jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj \
69        jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj \
70        jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
71# decompression library object files
72DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj \
73        jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj \
74        jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj \
75        jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj \
76        jquant1.obj jquant2.obj jdmerge.obj
77# These objectfiles are included in libjpeg.olb
78LIBOBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)
79# object files for sample applications (excluding library files)
80COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj \
81        rdswitch.obj cdjpeg.obj
82DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj \
83        rdcolmap.obj cdjpeg.obj
84TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
85# objectfile lists with commas --- what a crock
86COBJLIST= cjpeg.obj,rdppm.obj,rdgif.obj,rdtarga.obj,rdrle.obj,rdbmp.obj,\
87          rdswitch.obj,cdjpeg.obj
88DOBJLIST= djpeg.obj,wrppm.obj,wrgif.obj,wrtarga.obj,wrrle.obj,wrbmp.obj,\
89          rdcolmap.obj,cdjpeg.obj
90TROBJLIST= jpegtran.obj,rdswitch.obj,cdjpeg.obj,transupp.obj
91LIBOBJLIST= jcapimin.obj,jcapistd.obj,jctrans.obj,jcparam.obj,jdatadst.obj,\
92          jcinit.obj,jcmaster.obj,jcmarker.obj,jcmainct.obj,jcprepct.obj,\
93          jccoefct.obj,jccolor.obj,jcsample.obj,jchuff.obj,jcphuff.obj,\
94          jcdctmgr.obj,jfdctfst.obj,jfdctflt.obj,jfdctint.obj,jdapimin.obj,\
95          jdapistd.obj,jdtrans.obj,jdatasrc.obj,jdmaster.obj,jdinput.obj,\
96          jdmarker.obj,jdhuff.obj,jdphuff.obj,jdmainct.obj,jdcoefct.obj,\
97          jdpostct.obj,jddctmgr.obj,jidctfst.obj,jidctflt.obj,jidctint.obj,\
98          jidctred.obj,jdsample.obj,jdcolor.obj,jquant1.obj,jquant2.obj,\
99          jdmerge.obj,jcomapi.obj,jutils.obj,jerror.obj,jmemmgr.obj,$(SYSDEPMEM)
100
101
102.first
103	@- Define /NoLog Sys Sys$Library
104
105ALL : libjpeg.olb cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe
106	@ Continue
107
108libjpeg.olb : $(LIBOBJECTS)
109	Library /Create libjpeg.olb $(LIBOBJLIST)
110
111cjpeg.exe : $(COBJECTS) libjpeg.olb
112	$(LINK) $(LFLAGS) /Executable = cjpeg.exe $(COBJLIST),libjpeg.olb/Library$(OPT)
113
114djpeg.exe : $(DOBJECTS) libjpeg.olb
115	$(LINK) $(LFLAGS) /Executable = djpeg.exe $(DOBJLIST),libjpeg.olb/Library$(OPT)
116
117jpegtran.exe : $(TROBJECTS) libjpeg.olb
118	$(LINK) $(LFLAGS) /Executable = jpegtran.exe $(TROBJLIST),libjpeg.olb/Library$(OPT)
119
120rdjpgcom.exe : rdjpgcom.obj
121	$(LINK) $(LFLAGS) /Executable = rdjpgcom.exe rdjpgcom.obj$(OPT)
122
123wrjpgcom.exe : wrjpgcom.obj
124	$(LINK) $(LFLAGS) /Executable = wrjpgcom.exe wrjpgcom.obj$(OPT)
125
126jconfig.h : jconfig.vms
127	@- Copy jconfig.vms jconfig.h
128
129clean :
130	@- Set Protection = Owner:RWED *.*;-1
131	@- Set Protection = Owner:RWED *.OBJ
132	- Purge /NoLog /NoConfirm *.*
133	- Delete /NoLog /NoConfirm *.OBJ;
134
135test : cjpeg.exe djpeg.exe jpegtran.exe
136	mcr sys$disk:[]djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
137	mcr sys$disk:[]djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
138	mcr sys$disk:[]cjpeg -dct int      -outfile testout.jpg testimg.ppm
139	mcr sys$disk:[]djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
140	mcr sys$disk:[]cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
141	mcr sys$disk:[]jpegtran -outfile testoutt.jpg testprog.jpg
142	- Backup /Compare/Log	  testimg.ppm testout.ppm
143	- Backup /Compare/Log	  testimg.bmp testout.bmp
144	- Backup /Compare/Log	  testimg.jpg testout.jpg
145	- Backup /Compare/Log	  testimg.ppm testoutp.ppm
146	- Backup /Compare/Log	  testimgp.jpg testoutp.jpg
147	- Backup /Compare/Log	  testorig.jpg testoutt.jpg
148
149
150jcapimin.obj : jcapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
151jcapistd.obj : jcapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
152jccoefct.obj : jccoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
153jccolor.obj : jccolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
154jcdctmgr.obj : jcdctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
155jchuff.obj : jchuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
156jcinit.obj : jcinit.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
157jcmainct.obj : jcmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
158jcmarker.obj : jcmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
159jcmaster.obj : jcmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
160jcomapi.obj : jcomapi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
161jcparam.obj : jcparam.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
162jcphuff.obj : jcphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jchuff.h
163jcprepct.obj : jcprepct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
164jcsample.obj : jcsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
165jctrans.obj : jctrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
166jdapimin.obj : jdapimin.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
167jdapistd.obj : jdapistd.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
168jdatadst.obj : jdatadst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
169jdatasrc.obj : jdatasrc.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h
170jdcoefct.obj : jdcoefct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
171jdcolor.obj : jdcolor.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
172jddctmgr.obj : jddctmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
173jdhuff.obj : jdhuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
174jdinput.obj : jdinput.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
175jdmainct.obj : jdmainct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
176jdmarker.obj : jdmarker.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
177jdmaster.obj : jdmaster.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
178jdmerge.obj : jdmerge.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
179jdphuff.obj : jdphuff.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdhuff.h
180jdpostct.obj : jdpostct.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
181jdsample.obj : jdsample.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
182jdtrans.obj : jdtrans.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
183jerror.obj : jerror.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jversion.h jerror.h
184jfdctflt.obj : jfdctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
185jfdctfst.obj : jfdctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
186jfdctint.obj : jfdctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
187jidctflt.obj : jidctflt.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
188jidctfst.obj : jidctfst.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
189jidctint.obj : jidctint.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
190jidctred.obj : jidctred.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jdct.h
191jquant1.obj : jquant1.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
192jquant2.obj : jquant2.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
193jutils.obj : jutils.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h
194jmemmgr.obj : jmemmgr.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
195jmemansi.obj : jmemansi.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
196jmemname.obj : jmemname.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
197jmemnobs.obj : jmemnobs.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
198jmemdos.obj : jmemdos.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
199jmemmac.obj : jmemmac.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h jmemsys.h
200cjpeg.obj : cjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
201djpeg.obj : djpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h jversion.h
202jpegtran.obj : jpegtran.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h transupp.h jversion.h
203rdjpgcom.obj : rdjpgcom.c jinclude.h jconfig.h
204wrjpgcom.obj : wrjpgcom.c jinclude.h jconfig.h
205cdjpeg.obj : cdjpeg.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
206rdcolmap.obj : rdcolmap.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
207rdswitch.obj : rdswitch.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
208transupp.obj : transupp.c jinclude.h jconfig.h jpeglib.h jmorecfg.h jpegint.h jerror.h transupp.h
209rdppm.obj : rdppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
210wrppm.obj : wrppm.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
211rdgif.obj : rdgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
212wrgif.obj : wrgif.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
213rdtarga.obj : rdtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
214wrtarga.obj : wrtarga.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
215rdbmp.obj : rdbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
216wrbmp.obj : wrbmp.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
217rdrle.obj : rdrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
218wrrle.obj : wrrle.c cdjpeg.h jinclude.h jconfig.h jpeglib.h jmorecfg.h jerror.h cderror.h
219