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
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
21 # Change WXDIR or WXWIN to wherever wxWindows is found
24 OS2JPEGDIR=$(WXDIR)\src\jpeg
25 OS2JPEGINC=$(WINJPEGDIR)
26 OS2JPEGLIB=$(WXDIR)\lib\os2jpeg.lib
28 TEMP1TGT=$(WXDIR)\lib\os2jpeg1.lib
29 TEMP2TGT=$(WXDIR)\lib\os2jpeg2.lib
31 INC=-I$(WXDIR)\src\jpeg -I$(WXDIR)\Include
49 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
50 LINK_DEBUG_FLAGS=/DEBUG
58 LINK_DEBUG_FLAGS=/RELEASE
62 !if [md $(OS2JPEGDIR)\$D]
65 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
67 {..\jpeg}.c{..\jpeg\$D}.obj:
70 $(CPPFLAGS) /Fo$@ /Tp $<
73 SYSDEPMEM= ..\jpeg\$D\jmemnobs.obj
75 # library object files common to compression and decompression
77 ..\jpeg\$D\jcomapi.obj \
78 ..\jpeg\$D\jutils.obj \
79 ..\jpeg\$D\jerror.obj \
80 ..\jpeg\$D\jmemmgr.obj \
90 # compression library object files
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
133 # decompression library object files
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
182 # These objectfiles are included in libjpeg.lib
183 OBJECTS= $(COMOBJECTS) $(CLIBOBJECTS) $(DLIBOBJECTS)
185 # object files for sample applications (excluding library files)
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
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
207 ..\jpeg\$D\jpegtran.obj \
208 ..\jpeg\$D\rdswitch.obj \
209 ..\jpeg\$D\cdjpeg.obj \
210 ..\jpeg\$D\transupp.obj
212 all: $(OBJECTS) $(OS2JPEGLIB)
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
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
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
266 $(WXDIR)\lib\os2jpeg1.lib: \
269 touch $(WXDIR)\lib\os2jpeg1.lib
270 del $(WXDIR)\lib\os2jpeg1.lib
271 ilib $(OS2LIBFLAGS) $@ @<<
275 $(WXDIR)\lib\os2jpeg2.lib: $(DLIBLIBOBJS)
276 touch $(WXDIR)\lib\os2jpeg2.lib
277 del $(WXDIR)\lib\os2jpeg2.lib
278 ilib $(OS2LIBFLAGS) $@ @<<
282 $(WXDIR)\lib\os2jpeg.lib: \
285 touch $(WXDIR)\lib\os2jpeg.lib
286 del $(WXDIR)\lib\os2jpeg.lib
287 ilib $(OS2LIBFLAGS) $@ @<<
296 erase /N $(OS2JPEGDIR)\$D