3 # Author: David Webster
6 # Copyright: c) 2000, BHM
10 # Makefile : Builds os2tiff.lib library for OS/2 3.0/4.0
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__VISAGECPP30__ /DOS2_32 /Tdc /Q /N100
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 OS2TIFFDIR=$(WXDIR)\src\tiff
30 OS2TIFFINC=$(WINTIFFDIR)
31 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
33 !if "$(WXMAKINGDLL)" != "1"
34 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
36 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.dll
39 INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
56 !if "$(WXMAKINGDLL)" == "1"
62 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
63 LINK_DEBUG_FLAGS=/DEBUG
68 !if "$(WXMAKINGDLL)" == "1"
75 LINK_DEBUG_FLAGS=/RELEASE
79 !if [md $(OS2TIFFDIR)\$D]
83 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
84 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
86 {..\tiff}.c{..\tiff\$D}.obj:
89 $(CPPFLAGS) /Fo$@ /Tp $<
93 ..\tiff\$D\tif_aux.obj \
94 ..\tiff\$D\tif_close.obj \
95 ..\tiff\$D\tif_codec.obj \
96 ..\tiff\$D\tif_compress.obj \
97 ..\tiff\$D\tif_dir.obj \
98 ..\tiff\$D\tif_dirinfo.obj \
99 ..\tiff\$D\tif_dirread.obj \
100 ..\tiff\$D\tif_dirwrite.obj \
101 ..\tiff\$D\tif_dumpmode.obj \
102 ..\tiff\$D\tif_error.obj \
103 ..\tiff\$D\tif_fax3.obj \
104 ..\tiff\$D\tif_fax3sm.obj \
105 ..\tiff\$D\tif_flush.obj \
106 ..\tiff\$D\tif_getimage.obj \
107 ..\tiff\$D\tif_jpeg.obj \
108 ..\tiff\$D\tif_luv.obj \
109 ..\tiff\$D\tif_lzw.obj \
110 ..\tiff\$D\tif_next.obj \
111 ..\tiff\$D\tif_open.obj \
112 ..\tiff\$D\tif_os2.obj \
113 ..\tiff\$D\tif_packbits.obj \
114 ..\tiff\$D\tif_pixarlog.obj \
115 ..\tiff\$D\tif_predict.obj \
116 ..\tiff\$D\tif_print.obj \
117 ..\tiff\$D\tif_read.obj \
118 ..\tiff\$D\tif_strip.obj \
119 ..\tiff\$D\tif_swab.obj \
120 ..\tiff\$D\tif_thunder.obj \
121 ..\tiff\$D\tif_tile.obj \
122 ..\tiff\$D\tif_version.obj \
123 ..\tiff\$D\tif_warning.obj \
124 ..\tiff\$D\tif_write.obj \
125 ..\tiff\$D\tif_zip.obj
162 all: $(OBJECTS) $(OS2TIFFLIB)
164 !if "$(WXMAKINGDLL)" != "1"
166 $(WXDIR)\lib\os2tiff.lib: $(LIBOBJECTS)
167 touch $(WXDIR)\lib\os2tiff.lib
168 del $(WXDIR)\lib\os2tiff.lib
169 ilib $(OS2LIBFLAGS) $@ @<<
176 # Update the dynamic link library
177 $(WXDIR)\lib\os2tiff.dll: $(OBJECTS)
179 /B" $(LINKFLAGS)" /Fe$@
182 $(WXDIR)\lib\os2tiff.def
184 implib $(WXDIR)\lib\os2tiffd.lib $(WXDIR)\lib\os2tiff.def
190 erase /N $(OS2TIFFDIR)\$D
196 copy ..\tiff\$D\tif_aux.obj
197 copy ..\tiff\$D\tif_close.obj
198 copy ..\tiff\$D\tif_codec.obj
199 copy ..\tiff\$D\tif_compress.obj
200 copy ..\tiff\$D\tif_dir.obj
201 copy ..\tiff\$D\tif_dirinfo.obj
202 copy ..\tiff\$D\tif_dirread.obj
203 copy ..\tiff\$D\tif_dirwrite.obj
204 copy ..\tiff\$D\tif_dumpmode.obj
205 copy ..\tiff\$D\tif_error.obj
206 copy ..\tiff\$D\tif_fax3.obj
207 copy ..\tiff\$D\tif_fax3sm.obj
208 copy ..\tiff\$D\tif_flush.obj
209 copy ..\tiff\$D\tif_getimage.obj
210 copy ..\tiff\$D\tif_jpeg.obj
211 copy ..\tiff\$D\tif_luv.obj
212 copy ..\tiff\$D\tif_lzw.obj
213 copy ..\tiff\$D\tif_next.obj
214 copy ..\tiff\$D\tif_open.obj
215 copy ..\tiff\$D\tif_os2.obj
216 copy ..\tiff\$D\tif_packbits.obj
217 copy ..\tiff\$D\tif_pixarlog.obj
218 copy ..\tiff\$D\tif_predict.obj
219 copy ..\tiff\$D\tif_print.obj
220 copy ..\tiff\$D\tif_read.obj
221 copy ..\tiff\$D\tif_strip.obj
222 copy ..\tiff\$D\tif_swab.obj
223 copy ..\tiff\$D\tif_thunder.obj
224 copy ..\tiff\$D\tif_tile.obj
225 copy ..\tiff\$D\tif_version.obj
226 copy ..\tiff\$D\tif_warning.obj
227 copy ..\tiff\$D\tif_write.obj
228 copy ..\tiff\$D\tif_zip.obj