3 # Author: David Webster
6 # Copyright: c) 1993, AIAI, University of Edinburgh
10 # Makefile : Builds os2jpeg.lib library for OS/2 3.0/4.0
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__WXPM__ /DJPEGLOCAL /Ss /Q /N100 /Tdc
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
21 !if "$(WXMAKINGDLL)" != "0"
22 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
26 # Change WXDIR or WXWIN to wherever wxWindows is found
29 OS2JPEGDIR=$(WXDIR)\src\jpeg
30 OS2JPEGINC=$(WINJPEGDIR)
31 !if "$(WXMAKINGDLL)" != "1"
32 OS2JPEGLIB=$(WXDIR)\lib\os2jpeg.lib
34 OS2JPEGLIB=$(WXDIR)\lib\os2jpeg.dll
37 TEMP1TGT=$(WXDIR)\lib\os2jpeg1.lib
38 TEMP2TGT=$(WXDIR)\lib\os2jpeg2.lib
40 INC=-I$(WXDIR)\src\jpeg -I$(WXDIR)\Include
56 !if "$(WXMAKINGDLL)" == "1"
63 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
64 LINK_DEBUG_FLAGS=/DEBUG
69 !if "$(WXMAKINGDLL)" == "1"
76 LINK_DEBUG_FLAGS=/RELEASE
80 !if [md $(OS2JPEGDIR)\$D]
83 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
84 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
86 {..\jpeg}.c{..\jpeg\$D}.obj:
89 $(CPPFLAGS) /Fo$@ /Tp $<
92 SYSDEPMEM= ..\jpeg\$D\jmemnobs.obj
94 # library object files common to compression and decompression
96 ..\jpeg\$D\jcomapi.obj \
97 ..\jpeg\$D\jutils.obj \
98 ..\jpeg\$D\jerror.obj \
99 ..\jpeg\$D\jmemmgr.obj \
109 # compression library object files
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
152 # decompression library object files
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
201 # These objectfiles are included in libjpeg.lib
202 OBJECTS= $(COMOBJECTS) $(CLIBOBJECTS) $(DLIBOBJECTS)
204 # object files for sample applications (excluding library files)
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
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
226 ..\jpeg\$D\jpegtran.obj \
227 ..\jpeg\$D\rdswitch.obj \
228 ..\jpeg\$D\cdjpeg.obj \
229 ..\jpeg\$D\transupp.obj
231 all: $(OBJECTS) $(OS2JPEGLIB)
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
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
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
285 !if "$(WXMAKINGDLL)" != "1"
287 $(WXDIR)\lib\os2jpeg1.lib: \
290 touch $(WXDIR)\lib\os2jpeg1.lib
291 del $(WXDIR)\lib\os2jpeg1.lib
292 ilib $(OS2LIBFLAGS) $@ @<<
296 $(WXDIR)\lib\os2jpeg2.lib: $(DLIBLIBOBJS)
297 touch $(WXDIR)\lib\os2jpeg2.lib
298 del $(WXDIR)\lib\os2jpeg2.lib
299 ilib $(OS2LIBFLAGS) $@ @<<
303 $(WXDIR)\lib\os2jpeg.lib: \
306 touch $(WXDIR)\lib\os2jpeg.lib
307 del $(WXDIR)\lib\os2jpeg.lib
308 ilib $(OS2LIBFLAGS) $@ @<<
317 # Update the dynamic link library
318 $(WXDIR)\lib\os2jpeg.dll: $(OBJECTS)
320 /B" $(LINKFLAGS)" /Fe$@
323 $(WXDIR)\src\os2\os2jpeg.def
325 implib $(WXDIR)\lib\os2jpegd.lib $(WXDIR)\src\os2\os2jpeg.def
331 erase /N $(OS2JPEGDIR)\$D