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