]> git.saurik.com Git - wxWidgets.git/blob - src/jpeg/MAKEFILE.VA
Various VC++ 1.5 and other corrections
[wxWidgets.git] / src / jpeg / MAKEFILE.VA
1 #
2 # File: makefile.vc
3 # Author: David Webster
4 # Created: 1999
5 # Updated:
6 # Copyright: c) 1993, AIAI, University of Edinburgh
7 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds os2jpeg.lib library for OS/2 3.0/4.0
11
12 # Suffixes
13 OBJSUFF=obj
14 SRCSUFF=cpp
15
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__WXPM__ /DJPEGLOCAL /Ss /Q /N100
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18 OS2LIBFLAGS=/NOL /NOE
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
21 # Change WXDIR or WXWIN to wherever wxWindows is found
22 WXDIR = $(WXWIN)
23
24 OS2JPEGDIR=$(WXDIR)\src\jpeg
25 OS2JPEGINC=$(WINJPEGDIR)
26 OS2JPEGLIB=$(WXDIR)\lib\os2jpeg.lib
27
28 TEMP1TGT=$(WXDIR)\lib\os2jpeg1.lib
29 TEMP2TGT=$(WXDIR)\lib\os2jpeg2.lib
30
31 INC=-I$(WXDIR)\src\jpeg -I$(WXDIR)\Include
32 !ifndef FINAL
33 FINAL=0
34 !endif
35
36 !if "$(NOPCH)" == "1"
37 PCH=
38 PRECOMP=
39 MAKEPRECOMP=
40 !else
41 PCH=$(WXLIBNAME).pch
42 PRECOMP=/Si$(PCH)
43 MAKEPRECOMP=/Fi$(PCH)
44 !endif
45
46 !if "$(FINAL)" == "0"
47 D=DebugOS2
48 OPT =
49 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
50 LINK_DEBUG_FLAGS=/DEBUG
51 CRTFLAG=/Gm /Gd
52 !else
53 # /O1 - smallest code
54 # /O2 - fastest code
55 D=RelseOS2
56 OPT = /O+ /Oc /G5
57 DEBUG_FLAGS=
58 LINK_DEBUG_FLAGS=/RELEASE
59 CRTFLAG=/Gm /Gd
60 !endif
61
62 !if [md $(OS2JPEGDIR)\$D]
63 !endif
64
65 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
66
67 {..\jpeg}.c{..\jpeg\$D}.obj:
68 @echo $<
69 icc @<<
70 $(CPPFLAGS) /Fo$@ /Tp $<
71 <<
72
73 SYSDEPMEM= ..\jpeg\$D\jmemnobs.obj
74
75 # library object files common to compression and decompression
76 COMOBJECTS= \
77 ..\jpeg\$D\jcomapi.obj \
78 ..\jpeg\$D\jutils.obj \
79 ..\jpeg\$D\jerror.obj \
80 ..\jpeg\$D\jmemmgr.obj \
81 $(SYSDEPMEM)
82
83 COMLIBOBJS= \
84 jcomapi.obj \
85 jutils.obj \
86 jerror.obj \
87 jmemmgr.obj \
88 jmemnobs
89
90 # compression library object files
91 CLIBOBJECTS= \
92 ..\jpeg\$D\jcapimin.obj \
93 ..\jpeg\$D\jcapistd.obj \
94 ..\jpeg\$D\jctrans.obj \
95 ..\jpeg\$D\jcparam.obj \
96 ..\jpeg\$D\jdatadst.obj \
97 ..\jpeg\$D\jcinit.obj \
98 ..\jpeg\$D\jcmaster.obj \
99 ..\jpeg\$D\jcmarker.obj \
100 ..\jpeg\$D\jcmainct.obj \
101 ..\jpeg\$D\jcprepct.obj \
102 ..\jpeg\$D\jccoefct.obj \
103 ..\jpeg\$D\jccolor.obj \
104 ..\jpeg\$D\jcsample.obj \
105 ..\jpeg\$D\jchuff.obj \
106 ..\jpeg\$D\jcphuff.obj \
107 ..\jpeg\$D\jcdctmgr.obj \
108 ..\jpeg\$D\jfdctfst.obj \
109 ..\jpeg\$D\jfdctflt.obj \
110 ..\jpeg\$D\jfdctint.obj
111
112 CLIBLIBOBJS= \
113 jcapimin.obj \
114 jcapistd.obj \
115 jctrans.obj \
116 jcparam.obj \
117 jdatadst.obj \
118 jcinit.obj \
119 jcmaster.obj \
120 jcmarker.obj \
121 jcmainct.obj \
122 jcprepct.obj \
123 jccoefct.obj \
124 jccolor.obj \
125 jcsample.obj \
126 jchuff.obj \
127 jcphuff.obj \
128 jcdctmgr.obj \
129 jfdctfst.obj \
130 jfdctflt.obj \
131 jfdctint.obj
132
133 # decompression library object files
134 DLIBOBJECTS= \
135 ..\jpeg\$D\jdapimin.obj \
136 ..\jpeg\$D\jdapistd.obj \
137 ..\jpeg\$D\jdtrans.obj \
138 ..\jpeg\$D\jdatasrc.obj \
139 ..\jpeg\$D\jdmaster.obj \
140 ..\jpeg\$D\jdinput.obj \
141 ..\jpeg\$D\jdmarker.obj \
142 ..\jpeg\$D\jdhuff.obj \
143 ..\jpeg\$D\jdphuff.obj \
144 ..\jpeg\$D\jdmainct.obj \
145 ..\jpeg\$D\jdcoefct.obj \
146 ..\jpeg\$D\jdpostct.obj \
147 ..\jpeg\$D\jddctmgr.obj \
148 ..\jpeg\$D\jidctfst.obj \
149 ..\jpeg\$D\jidctflt.obj \
150 ..\jpeg\$D\jidctint.obj \
151 ..\jpeg\$D\jidctred.obj \
152 ..\jpeg\$D\jdsample.obj \
153 ..\jpeg\$D\jdcolor.obj \
154 ..\jpeg\$D\jquant1.obj \
155 ..\jpeg\$D\jquant2.obj \
156 ..\jpeg\$D\jdmerge.obj
157
158 DLIBLIBOBJS= \
159 jdapimin.obj \
160 jdapistd.obj \
161 jdtrans.obj \
162 jdatasrc.obj \
163 jdmaster.obj \
164 jdinput.obj \
165 jdmarker.obj \
166 jdhuff.obj \
167 jdphuff.obj \
168 jdmainct.obj \
169 jdcoefct.obj \
170 jdpostct.obj \
171 jddctmgr.obj \
172 jidctfst.obj \
173 jidctflt.obj \
174 jidctint.obj \
175 jidctred.obj \
176 jdsample.obj \
177 jdcolor.obj \
178 jquant1.obj \
179 jquant2.obj \
180 jdmerge.obj
181
182 # These objectfiles are included in libjpeg.lib
183 OBJECTS= $(COMOBJECTS) $(CLIBOBJECTS) $(DLIBOBJECTS)
184
185 # object files for sample applications (excluding library files)
186 COBJECTS= \
187 ..\jpeg\$D\cjpeg.obj \
188 ..\jpeg\$D\rdppm.obj \
189 ..\jpeg\$D\rdgif.obj \
190 ..\jpeg\$D\rdtarga.obj \
191 ..\jpeg\$D\rdrle.obj \
192 ..\jpeg\$D\rdbmp.obj \
193 ..\jpeg\$D\rdswitch.obj \
194 ..\jpeg\$D\cdjpeg.obj
195
196 DOBJECTS= \
197 ..\jpeg\$D\djpeg.obj \
198 ..\jpeg\$D\wrppm.obj \
199 ..\jpeg\$D\wrgif.obj \
200 ..\jpeg\$D\wrtarga.obj \
201 ..\jpeg\$D\wrrle.obj \
202 ..\jpeg\$D\wrbmp.obj \
203 ..\jpeg\$D\rdcolmap.obj \
204 ..\jpeg\$D\cdjpeg.obj
205
206 TROBJECTS= \
207 ..\jpeg\$D\jpegtran.obj \
208 ..\jpeg\$D\rdswitch.obj \
209 ..\jpeg\$D\cdjpeg.obj \
210 ..\jpeg\$D\transupp.obj
211
212 all: $(OBJECTS) $(OS2JPEGLIB)
213
214 $(COMLIBOBJS):
215 copy ..\jpeg\$D\jcomapi.obj
216 copy ..\jpeg\$D\jutils.obj
217 copy ..\jpeg\$D\jerror.obj
218 copy ..\jpeg\$D\jmemmgr.obj
219 copy ..\jpeg\$D\jmemnobs.obj
220
221 $(CLIBLIBOBJS):
222 copy ..\jpeg\$D\jcapimin.obj
223 copy ..\jpeg\$D\jcapistd.obj
224 copy ..\jpeg\$D\jctrans.obj
225 copy ..\jpeg\$D\jcparam.obj
226 copy ..\jpeg\$D\jdatadst.obj
227 copy ..\jpeg\$D\jcinit.obj
228 copy ..\jpeg\$D\jcmaster.obj
229 copy ..\jpeg\$D\jcmarker.obj
230 copy ..\jpeg\$D\jcmainct.obj
231 copy ..\jpeg\$D\jcprepct.obj
232 copy ..\jpeg\$D\jccoefct.obj
233 copy ..\jpeg\$D\jccolor.obj
234 copy ..\jpeg\$D\jcsample.obj
235 copy ..\jpeg\$D\jchuff.obj
236 copy ..\jpeg\$D\jcphuff.obj
237 copy ..\jpeg\$D\jcdctmgr.obj
238 copy ..\jpeg\$D\jfdctfst.obj
239 copy ..\jpeg\$D\jfdctflt.obj
240 copy ..\jpeg\$D\jfdctint.obj
241
242 $(DLIBLIBOBJS):
243 copy ..\jpeg\$D\jdapimin.obj
244 copy ..\jpeg\$D\jdapistd.obj
245 copy ..\jpeg\$D\jdtrans.obj
246 copy ..\jpeg\$D\jdatasrc.obj
247 copy ..\jpeg\$D\jdmaster.obj
248 copy ..\jpeg\$D\jdinput.obj
249 copy ..\jpeg\$D\jdmarker.obj
250 copy ..\jpeg\$D\jdhuff.obj
251 copy ..\jpeg\$D\jdphuff.obj
252 copy ..\jpeg\$D\jdmainct.obj
253 copy ..\jpeg\$D\jdcoefct.obj
254 copy ..\jpeg\$D\jdpostct.obj
255 copy ..\jpeg\$D\jddctmgr.obj
256 copy ..\jpeg\$D\jidctfst.obj
257 copy ..\jpeg\$D\jidctflt.obj
258 copy ..\jpeg\$D\jidctint.obj
259 copy ..\jpeg\$D\jidctred.obj
260 copy ..\jpeg\$D\jdsample.obj
261 copy ..\jpeg\$D\jdcolor.obj
262 copy ..\jpeg\$D\jquant1.obj
263 copy ..\jpeg\$D\jquant2.obj
264 copy ..\jpeg\$D\jdmerge.obj
265
266 $(WXDIR)\lib\os2jpeg1.lib: \
267 $(COMLIBOBJS) \
268 $(CLIBLIBOBJS)
269 touch $(WXDIR)\lib\os2jpeg1.lib
270 del $(WXDIR)\lib\os2jpeg1.lib
271 ilib $(OS2LIBFLAGS) $@ @<<
272 $**;
273 <<
274
275 $(WXDIR)\lib\os2jpeg2.lib: $(DLIBLIBOBJS)
276 touch $(WXDIR)\lib\os2jpeg2.lib
277 del $(WXDIR)\lib\os2jpeg2.lib
278 ilib $(OS2LIBFLAGS) $@ @<<
279 $**;
280 <<
281
282 $(WXDIR)\lib\os2jpeg.lib: \
283 $(TEMP1TGT) \
284 $(TEMP2TGT)
285 touch $(WXDIR)\lib\os2jpeg.lib
286 del $(WXDIR)\lib\os2jpeg.lib
287 ilib $(OS2LIBFLAGS) $@ @<<
288 $**;
289 <<
290 del *.obj
291 del $(TEMP1TGT)
292 del $(TEMP2TGT)
293
294 clean:
295 del $(OS2JPEGLIB)
296 erase /N $(OS2JPEGDIR)\$D
297 rd $(OS2JPEGDIR)\$D
298
299 cleanall: clean
300