]> git.saurik.com Git - wxWidgets.git/blame - src/jpeg/makefile.vc
Added support for saving greyscale TIFF images.
[wxWidgets.git] / src / jpeg / makefile.vc
CommitLineData
d5e7ffcf
KO
1# Makefile for Independent JPEG Group's software\r
2\r
3# This makefile is for Microsoft Visual C++ on Windows NT (and 95?).\r
4# It builds the IJG library as a statically linkable library (.LIB),\r
5# and builds the sample applications as console-mode apps.\r
6# Thanks to Xingong Chang, Raymond Everly and others.\r
7\r
8# Read installation instructions before saying "nmake" !!\r
9# To build an optimized library without debug info, say "nmake nodebug=1".\r
10\r
11# Put here the object file name for the correct system-dependent memory\r
12# manager file. For NT we suggest jmemnobs.obj, which expects the OS to\r
13# provide adequate virtual memory.\r
14SYSDEPMEM= $D\jmemnobs.obj\r
15\r
16# miscellaneous OS-dependent stuff\r
17# file deletion command\r
18!if "$(RM)" == ""\r
19RM= erase\r
20!endif\r
21\r
22# End of configurable options.\r
23\r
24# source files: JPEG library proper\r
25LIBSOURCES= jcapimin.c \\r
26 jcapistd.c \\r
27 jccoefct.c \\r
28 jccolor.c \\r
29 jcdctmgr.c \\r
30 jchuff.c \\r
31 jcinit.c \\r
32 jcmainct.c \\r
33 jcmarker.c \\r
34 jcmaster.c \\r
35 jcomapi.c \\r
36 jcparam.c \\r
37 jcphuff.c \\r
38 jcprepct.c \\r
39 jcsample.c \\r
40 jctrans.c \\r
41 jdapimin.c \\r
42 jdapistd.c \\r
43 jdatadst.c \\r
44 jdatasrc.c \\r
45 jdcoefct.c \\r
46 jdcolor.c \\r
47 jddctmgr.c \\r
48 jdhuff.c \\r
49 jdinput.c \\r
50 jdmainct.c \\r
51 jdmarker.c \\r
52 jdmaster.c \\r
53 jdmerge.c \\r
54 jdphuff.c \\r
55 jdpostct.c \\r
56 jdsample.c \\r
57 jdtrans.c \\r
58 jerror.c \\r
59 jfdctflt.c \\r
60 jfdctfst.c \\r
61 jfdctint.c \\r
62 jidctflt.c \\r
63 jidctfst.c \\r
64 jidctint.c \\r
65 jidctred.c \\r
66 jquant1.c \\r
67 jquant2.c \\r
68 jutils.c \\r
69 jmemmgr.c\r
70\r
71# memmgr back ends: compile only one of these into a working library\r
72SYSDEPSOURCES= jmemansi.c jmemname.c jmemnobs.c jmemdos.c jmemmac.c\r
73\r
74# source files: cjpeg/djpeg/jpegtran applications, also rdjpgcom/wrjpgcom\r
75APPSOURCES= cjpeg.c djpeg.c jpegtran.c rdjpgcom.c wrjpgcom.c cdjpeg.c \\r
76 rdcolmap.c rdswitch.c transupp.c rdppm.c wrppm.c rdgif.c wrgif.c \\r
77 rdtarga.c wrtarga.c rdbmp.c wrbmp.c rdrle.c wrrle.c\r
78\r
79SOURCES= $(LIBSOURCES) $(SYSDEPSOURCES) $(APPSOURCES)\r
80\r
81# files included by source files\r
82INCLUDES= jchuff.h jdhuff.h jdct.h jerror.h jinclude.h jmemsys.h jmorecfg.h \\r
83 jpegint.h jpeglib.h jversion.h cdjpeg.h cderror.h transupp.h\r
84\r
85# documentation, test, and support files\r
86DOCS= README install.doc usage.doc cjpeg.1 djpeg.1 jpegtran.1 rdjpgcom.1 \\r
87 wrjpgcom.1 wizard.doc example.c libjpeg.doc structure.doc \\r
88 coderules.doc filelist.doc change.log\r
89\r
90MKFILES= configure makefile.cfg makefile.ansi makefile.unix makefile.bcc \\r
91 makefile.mc6 makefile.dj makefile.wat makefile.vc makelib.ds \\r
92 makeapps.ds makeproj.mac makcjpeg.st makdjpeg.st makljpeg.st \\r
93 maktjpeg.st makefile.manx makefile.sas makefile.mms makefile.vms \\r
94 makvms.opt\r
95\r
96CONFIGFILES= jconfig.cfg jconfig.bcc jconfig.mc6 jconfig.dj jconfig.wat \\r
97 jconfig.vc jconfig.mac jconfig.st jconfig.manx jconfig.sas \\r
98 jconfig.vms\r
99\r
100CONFIGUREFILES= config.guess config.sub install-sh ltconfig ltmain.sh\r
101OTHERFILES= jconfig.doc ckconfig.c ansi2knr.c ansi2knr.1 jmemdosa.asm\r
102TESTFILES= testorig.jpg testimg.ppm testimg.bmp testimg.jpg testprog.jpg \\r
103 testimgp.jpg\r
104DISTFILES= $(DOCS) $(MKFILES) $(CONFIGFILES) $(SOURCES) $(INCLUDES) \\r
105 $(CONFIGUREFILES) $(OTHERFILES) $(TESTFILES)\r
106\r
107# library object files common to compression and decompression\r
108COMOBJECTS= $D\jcomapi.obj $D\jutils.obj $D\jerror.obj $D\jmemmgr.obj $(SYSDEPMEM)\r
109\r
110# compression library object files\r
111CLIBOBJECTS= $D\jcapimin.obj \\r
112 $D\jcapistd.obj \\r
113 $D\jctrans.obj \\r
114 $D\jcparam.obj \\r
115 $D\jdatadst.obj \\r
116 $D\jcinit.obj \\r
117 $D\jcmaster.obj \\r
118 $D\jcmarker.obj \\r
119 $D\jcmainct.obj \\r
120 $D\jcprepct.obj \\r
121 $D\jccoefct.obj \\r
122 $D\jccolor.obj \\r
123 $D\jcsample.obj \\r
124 $D\jchuff.obj \\r
125 $D\jcphuff.obj \\r
126 $D\jcdctmgr.obj \\r
127 $D\jfdctfst.obj \\r
128 $D\jfdctflt.obj \\r
129 $D\jfdctint.obj\r
130\r
131# decompression library object files\r
132DLIBOBJECTS= $D\jdapimin.obj \\r
133 $D\jdapistd.obj \\r
134 $D\jdtrans.obj \\r
135 $D\jdatasrc.obj \\r
136 $D\jdmaster.obj \\r
137 $D\jdinput.obj \\r
138 $D\jdmarker.obj \\r
139 $D\jdhuff.obj \\r
140 $D\jdphuff.obj \\r
141 $D\jdmainct.obj \\r
142 $D\jdcoefct.obj \\r
143 $D\jdpostct.obj \\r
144 $D\jddctmgr.obj \\r
145 $D\jidctfst.obj \\r
146 $D\jidctflt.obj \\r
147 $D\jidctint.obj \\r
148 $D\jidctred.obj \\r
149 $D\jdsample.obj \\r
150 $D\jdcolor.obj \\r
151 $D\jquant1.obj \\r
152 $D\jquant2.obj \\r
153 $D\jdmerge.obj\r
154# These objectfiles are included in libjpeg.lib\r
155OBJECTS= $(CLIBOBJECTS) $(DLIBOBJECTS) $(COMOBJECTS)\r
156\r
157# object files for sample applications (excluding library files)\r
158COBJECTS= $D\cjpeg.obj \\r
159 $D\rdppm.obj \\r
160 $D\rdgif.obj \\r
161 $D\rdtarga.obj \\r
162 $D\rdrle.obj \\r
163 $D\rdbmp.obj \\r
164 $D\rdswitch.obj \\r
165 $D\cdjpeg.obj\r
166\r
167DOBJECTS= $D\djpeg.obj \\r
168 $D\wrppm.obj \\r
169 $D\wrgif.obj \\r
170 $D\wrtarga.obj \\r
171 $D\wrrle.obj \\r
172 $D\wrbmp.obj \\r
173 $D\rdcolmap.obj \\r
174 $D\cdjpeg.obj\r
175\r
176TROBJECTS= $D\jpegtran.obj \\r
177 $D\rdswitch.obj \\r
178 $D\cdjpeg.obj \\r
179 $D\transupp.obj\r
180\r
181!if "$(FINAL)" == "1"\r
182LIBTARGET=..\..\lib\jpeg.lib\r
183!else if "$(FINAL)" == "hybrid"\r
184LIBTARGET=..\..\lib\jpegh.lib\r
185!else\r
186LIBTARGET=..\..\lib\jpegd.lib\r
187!endif\r
188\r
189# Note: we have to put this first, to override the default definition\r
190# which doesn't work because there are too many files on the command line.\r
191# This means that we must explicitly use the 'all' target when making\r
192# jpeg.lib, because of the ordering of targets.\r
193\r
194defaulttarget:\r
195 echo Please use the 'all' target for this makefile.\r
196\r
197\r
198# Pull in standard variable definitions\r
199\r
200!include ..\makelib.vc\r
201\r