source: trunk/libjpeg/makefile.wat @ 232

Last change on this file since 232 was 223, checked in by Eugene Romanenko, 14 years ago

tune compiler options

File size: 8.2 KB
1# Makefile for Independent JPEG Group's software
3# This makefile is suitable for Watcom C/C++ 10.0 on MS-DOS (using
4# dos4g extender), OS/2, and Windows NT console mode.
5# Thanks to Janos Haide,
7# Read installation instructions before saying "wmake" !!
9# Uncomment line for desired system
14# The name of your C compiler:
15CC= wcl386
17# You may need to adjust these cc options:
18CFLAGS=-zq -zp=8 -bm -ot -ox -oh -bt=$(SYSTEM)
20# Caution: avoid -ol or -ox; these generate bad code with 10.0 or 10.0a.
21# Generally, we recommend defining any configuration symbols in jconfig.h,
22# NOT via -D switches here.
24# Link-time cc options:
25!ifeq SYSTEM DOS
26LDFLAGS= -zq -l=dos4g
27!else ifeq SYSTEM OS2
28LDFLAGS= -zq -l=os2v2
29!else ifeq SYSTEM NT
30LDFLAGS= -zq -l=nt
33# Put here the object file name for the correct system-dependent memory
34# manager file.  jmemnobs should work fine for dos4g or OS/2 environment.
35SYSDEPMEM= jmemnobs.obj
37# End of configurable options.
40# source files: JPEG library proper
41LIBSOURCES= jcapimin.c jcapistd.c jccoefct.c jccolor.c jcdctmgr.c jchuff.c &
42        jcinit.c jcmainct.c jcmarker.c jcmaster.c jcomapi.c jcparam.c &
43        jcphuff.c jcprepct.c jcsample.c jctrans.c jdapimin.c jdapistd.c &
44        jdatadst.c jdatasrc.c jdcoefct.c jdcolor.c jddctmgr.c jdhuff.c &
45        jdinput.c jdmainct.c jdmarker.c jdmaster.c jdmerge.c jdphuff.c &
46        jdpostct.c jdsample.c jdtrans.c jerror.c jfdctflt.c jfdctfst.c &
47        jfdctint.c jidctflt.c jidctfst.c jidctint.c jidctred.c jquant1.c &
48        jquant2.c jutils.c jmemmgr.c
49# memmgr back ends: compile only one of these into a working library
50SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c
51# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom
52APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c &
53        rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c &
54        rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c
56# files included by source files
57INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h &
58        jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h
59# documentation, test, and support files
60DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 &
61        wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc &
62        coderules.doc filelist.doc change.log
63MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc &
64        makefile.mc6 makefile.wat makelib.ds &
65        makeapps.ds makeproj.mac &
66 makefile.manx makefile.mms makefile.vms &
67        makvms.opt
68CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.wat &
69 jconfig.mac jconfig.manx &
70        jconfig.vms
71CONFIGUREFILES= config.guess config.sub install-sh ltconfig
72OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm
73TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg &
74        testimgp.jpg
77# library object files common to compression and decompression
78COMOBJECTS= jcomapi.obj jutils.obj jerror.obj jmemmgr.obj $(SYSDEPMEM)
79# compression library object files
80CLIBOBJECTS= jcapimin.obj jcapistd.obj jctrans.obj jcparam.obj jdatadst.obj &
81        jcinit.obj jcmaster.obj jcmarker.obj jcmainct.obj jcprepct.obj &
82        jccoefct.obj jccolor.obj jcsample.obj jchuff.obj jcphuff.obj &
83        jcdctmgr.obj jfdctfst.obj jfdctflt.obj jfdctint.obj
84# decompression library object files
85DLIBOBJECTS= jdapimin.obj jdapistd.obj jdtrans.obj jdatasrc.obj &
86        jdmaster.obj jdinput.obj jdmarker.obj jdhuff.obj jdphuff.obj &
87        jdmainct.obj jdcoefct.obj jdpostct.obj jddctmgr.obj jidctfst.obj &
88        jidctflt.obj jidctint.obj jidctred.obj jdsample.obj jdcolor.obj &
89        jquant1.obj jquant2.obj jdmerge.obj
90# These objectfiles are included in libjpeg.lib
92# object files for sample applications (excluding library files)
93COBJECTS= cjpeg.obj rdppm.obj rdgif.obj rdtarga.obj rdrle.obj rdbmp.obj &
94        rdswitch.obj cdjpeg.obj
95DOBJECTS= djpeg.obj wrppm.obj wrgif.obj wrtarga.obj wrrle.obj wrbmp.obj &
96        rdcolmap.obj cdjpeg.obj
97TROBJECTS= jpegtran.obj rdswitch.obj cdjpeg.obj transupp.obj
100all: libjpeg.lib cjpeg.exe djpeg.exe jpegtran.exe rdjpgcom.exe wrjpgcom.exe example.exe
102libjpeg.lib: $(LIBOBJECTS)
103    - del libjpeg.lib
104    * wlib -b -q libjpeg.lib + $(CLIBOBJECTS)
105    * wlib -b -q libjpeg.lib + $(DLIBOBJECTS)
106    * wlib -b -q libjpeg.lib + $(COMOBJECTS)
108cjpeg.exe: $(COBJECTS) libjpeg.lib
109    $(CC) $(LDFLAGS) $(COBJECTS) libjpeg.lib
111djpeg.exe: $(DOBJECTS) libjpeg.lib
112    $(CC) $(LDFLAGS) $(DOBJECTS) libjpeg.lib
114jpegtran.exe: $(TROBJECTS) libjpeg.lib
115    $(CC) $(LDFLAGS) $(TROBJECTS) libjpeg.lib
117rdjpgcom.exe: rdjpgcom.c
118    $(CC) $(CFLAGS) $(LDFLAGS) rdjpgcom.c
120wrjpgcom.exe: wrjpgcom.c
121    $(CC) $(CFLAGS) $(LDFLAGS) wrjpgcom.c
124    $(CC) $(CFLAGS) -c $<
126jconfig.h: jconfig.doc
127    echo You must prepare a system-dependent jconfig.h file.
128    echo Please read the installation directions in install.doc.
129    exit 1
131clean: .SYMBOLIC
132    - del *.obj
133    - del libjpeg.lib
134    - del cjpeg.exe
135    - del djpeg.exe
136    - del jpegtran.exe
137    - del rdjpgcom.exe
138    - del wrjpgcom.exe
139    - del testout*.*
141test: cjpeg.exe djpeg.exe jpegtran.exe  .SYMBOLIC
142    - del testout*.*
143    djpeg -dct int -ppm -outfile testout.ppm  testorig.jpg
144    djpeg -dct int -bmp -colors 256 -outfile testout.bmp  testorig.jpg
145    cjpeg -dct int -outfile testout.jpg  testimg.ppm
146    djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
147    cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
148    jpegtran -outfile testoutt.jpg testprog.jpg
149!ifeq SYSTEM DOS
150    fc /b testimg.ppm testout.ppm
151    fc /b testimg.bmp testout.bmp
152    fc /b testimg.jpg testout.jpg
153    fc /b testimg.ppm testoutp.ppm
154    fc /b testimgp.jpg testoutp.jpg
155    fc /b testorig.jpg testoutt.jpg
157    echo n > n.tmp
158    comp testimg.ppm testout.ppm < n.tmp
159    comp testimg.bmp testout.bmp < n.tmp
160    comp testimg.jpg testout.jpg < n.tmp
161    comp testimg.ppm testoutp.ppm < n.tmp
162    comp testimgp.jpg testoutp.jpg < n.tmp
163    comp testorig.jpg testoutt.jpg < n.tmp
164    del n.tmp
168jcapimin.obj: jcapimin.c
169jcapistd.obj: jcapistd.c
170jccoefct.obj: jccoefct.c
171jccolor.obj: jccolor.c
172jcdctmgr.obj: jcdctmgr.c
173jchuff.obj: jchuff.c
174jcinit.obj: jcinit.c
175jcmainct.obj: jcmainct.c
176jcmarker.obj: jcmarker.c
177jcmaster.obj: jcmaster.c
178jcomapi.obj: jcomapi.c
179jcparam.obj: jcparam.c
180jcphuff.obj: jcphuff.c
181jcprepct.obj: jcprepct.c
182jcsample.obj: jcsample.c
183jctrans.obj: jctrans.c
184jdapimin.obj: jdapimin.c
185jdapistd.obj: jdapistd.c
186jdatadst.obj: jdatadst.c
187jdatasrc.obj: jdatasrc.c
188jdcoefct.obj: jdcoefct.c
189jdcolor.obj: jdcolor.c
190jddctmgr.obj: jddctmgr.c
191jdhuff.obj: jdhuff.c
192jdinput.obj: jdinput.c
193jdmainct.obj: jdmainct.c
194jdmarker.obj: jdmarker.c
195jdmaster.obj: jdmaster.c
196jdmerge.obj: jdmerge.c
197jdphuff.obj: jdphuff.c
198jdpostct.obj: jdpostct.c
199jdsample.obj: jdsample.c
200jdtrans.obj: jdtrans.c
201jerror.obj: jerror.c
202jfdctflt.obj: jfdctflt.c
203jfdctfst.obj: jfdctfst.c
204jfdctint.obj: jfdctint.c
205jidctflt.obj: jidctflt.c
206jidctfst.obj: jidctfst.c
207jidctint.obj: jidctint.c
208jidctred.obj: jidctred.c
209jquant1.obj: jquant1.c
210jquant2.obj: jquant2.c
211jutils.obj: jutils.c
212jmemmgr.obj: jmemmgr.c
213jmemansi.obj: jmemansi.c
214jmemname.obj: jmemname.c
215jmemnobs.obj: jmemnobs.c
216jmemdos.obj: jmemdos.c
217jmemmac.obj: jmemmac.c
218cjpeg.obj: cjpeg.c
219djpeg.obj: djpeg.c
220jpegtran.obj: jpegtran.c
221rdjpgcom.obj: rdjpgcom.c
222wrjpgcom.obj: wrjpgcom.c
223cdjpeg.obj: cdjpeg.c
224rdcolmap.obj: rdcolmap.c
225rdswitch.obj: rdswitch.c
226transupp.obj: transupp.c
227rdppm.obj: rdppm.c
228wrppm.obj: wrppm.c
229rdgif.obj: rdgif.c
230wrgif.obj: wrgif.c
231rdtarga.obj: rdtarga.c
232wrtarga.obj: wrtarga.c
233rdbmp.obj: rdbmp.c
234wrbmp.obj: wrbmp.c
235rdrle.obj: rdrle.c
236wrrle.obj: wrrle.c
Note: See TracBrowser for help on using the repository browser.