]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/MAKEFILE.VA
sockets work with wxDFB now
[wxWidgets.git] / src / tiff / MAKEFILE.VA
CommitLineData
94fbea12
DW
1#
2# File: makefile.vc
3# Author: David Webster
4# Created: 2000
5# Updated:
615a9936 6# Copyright: c) 2000, BHM
ab4d1ea9 7# Licence: wxWindows Licence
94fbea12
DW
8#
9# "%W% %G%"
10#
11# Makefile : Builds os2tiff.lib library for OS/2 3.0/4.0
12
13# Suffixes
14OBJSUFF=obj
15SRCSUFF=cpp
16
615a9936 17OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__VISAGECPP30__ /DOS2_32 /Tdc /Q /N100
94fbea12
DW
18OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
19OS2LIBFLAGS=/NOL /NOE
20OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
21
3bedfb1d
DW
22!if "$(WXMAKINGDLL)" != "0"
23EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
24EXTRALNKFLAGS=/DLL
25!endif
26
94fbea12
DW
27# Change WXDIR or WXWIN to wherever wxWindows is found
28WXDIR = $(WXWIN)
29
30OS2TIFFDIR=$(WXDIR)\src\tiff
31OS2TIFFINC=$(WINTIFFDIR)
32OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
33
3bedfb1d
DW
34!if "$(WXMAKINGDLL)" != "1"
35OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
36!else
37OS2TIFFLIB=$(WXDIR)\lib\os2tiff.dll
38!endif
39
94fbea12
DW
40INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
41
42!ifndef FINAL
43FINAL=0
44!endif
45
46!if "$(NOPCH)" == "1"
47PCH=
48PRECOMP=
49MAKEPRECOMP=
50!else
51PCH=$(WXLIBNAME).pch
52PRECOMP=/Si$(PCH)
53MAKEPRECOMP=/Fi$(PCH)
54!endif
55
56!if "$(FINAL)" == "0"
3bedfb1d
DW
57!if "$(WXMAKINGDLL)" == "1"
58D=DebugOS2DLL
59!else
94fbea12 60D=DebugOS2
3bedfb1d 61!endif
94fbea12
DW
62OPT =
63DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
64LINK_DEBUG_FLAGS=/DEBUG
65CRTFLAG=/Gm /Gd
66!else
67# /O1 - smallest code
68# /O2 - fastest code
3bedfb1d
DW
69!if "$(WXMAKINGDLL)" == "1"
70D=RelseOS2DLL
71!else
94fbea12 72D=RelseOS2
3bedfb1d 73!endif
94fbea12
DW
74OPT = /O+ /Oc /G5
75DEBUG_FLAGS=
76LINK_DEBUG_FLAGS=/RELEASE
77CRTFLAG=/Gm /Gd
78!endif
79
80!if [md $(OS2TIFFDIR)\$D]
81!endif
82
83
3bedfb1d
DW
84CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
85LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
94fbea12
DW
86
87{..\tiff}.c{..\tiff\$D}.obj:
88 @echo $<
89 icc @<<
90$(CPPFLAGS) /Fo$@ /Tp $<
91<<
92
93OBJECTS = \
94 ..\tiff\$D\tif_aux.obj \
95 ..\tiff\$D\tif_close.obj \
96 ..\tiff\$D\tif_codec.obj \
97 ..\tiff\$D\tif_compress.obj \
98 ..\tiff\$D\tif_dir.obj \
99 ..\tiff\$D\tif_dirinfo.obj \
100 ..\tiff\$D\tif_dirread.obj \
101 ..\tiff\$D\tif_dirwrite.obj \
102 ..\tiff\$D\tif_dumpmode.obj \
103 ..\tiff\$D\tif_error.obj \
104 ..\tiff\$D\tif_fax3.obj \
105 ..\tiff\$D\tif_fax3sm.obj \
106 ..\tiff\$D\tif_flush.obj \
107 ..\tiff\$D\tif_getimage.obj \
108 ..\tiff\$D\tif_jpeg.obj \
109 ..\tiff\$D\tif_luv.obj \
110 ..\tiff\$D\tif_lzw.obj \
111 ..\tiff\$D\tif_next.obj \
112 ..\tiff\$D\tif_open.obj \
615a9936 113 ..\tiff\$D\tif_os2.obj \
94fbea12
DW
114 ..\tiff\$D\tif_packbits.obj \
115 ..\tiff\$D\tif_pixarlog.obj \
116 ..\tiff\$D\tif_predict.obj \
117 ..\tiff\$D\tif_print.obj \
118 ..\tiff\$D\tif_read.obj \
119 ..\tiff\$D\tif_strip.obj \
120 ..\tiff\$D\tif_swab.obj \
121 ..\tiff\$D\tif_thunder.obj \
122 ..\tiff\$D\tif_tile.obj \
123 ..\tiff\$D\tif_version.obj \
124 ..\tiff\$D\tif_warning.obj \
94fbea12
DW
125 ..\tiff\$D\tif_write.obj \
126 ..\tiff\$D\tif_zip.obj
127
128LIBOBJECTS = \
129 tif_aux.obj \
130 tif_close.obj \
131 tif_codec.obj \
132 tif_compress.obj \
133 tif_dir.obj \
134 tif_dirinfo.obj \
135 tif_dirread.obj \
136 tif_dirwrite.obj \
137 tif_dumpmode.obj \
138 tif_error.obj \
139 tif_fax3.obj \
140 tif_fax3sm.obj \
141 tif_flush.obj \
142 tif_getimage.obj \
143 tif_jpeg.obj \
144 tif_luv.obj \
145 tif_lzw.obj \
146 tif_next.obj \
147 tif_open.obj \
615a9936 148 tif_os2.obj \
94fbea12
DW
149 tif_packbits.obj \
150 tif_pixarlog.obj \
151 tif_predict.obj \
152 tif_print.obj \
153 tif_read.obj \
154 tif_strip.obj \
155 tif_swab.obj \
156 tif_thunder.obj \
157 tif_tile.obj \
158 tif_version.obj \
159 tif_warning.obj \
94fbea12
DW
160 tif_write.obj \
161 tif_zip.obj
162
163all: $(OBJECTS) $(OS2TIFFLIB)
164
3bedfb1d
DW
165!if "$(WXMAKINGDLL)" != "1"
166
94fbea12
DW
167$(WXDIR)\lib\os2tiff.lib: $(LIBOBJECTS)
168 touch $(WXDIR)\lib\os2tiff.lib
169 del $(WXDIR)\lib\os2tiff.lib
170 ilib $(OS2LIBFLAGS) $@ @<<
171 $**;
172<<
173 del *.obj
174
3bedfb1d
DW
175!else
176
177# Update the dynamic link library
178$(WXDIR)\lib\os2tiff.dll: $(OBJECTS)
179 icc @<<
180 /B" $(LINKFLAGS)" /Fe$@
181 $(LIBS)
182 $(OBJECTS)
872ae055 183 $(WXDIR)\src\os2\os2tiff.def
3bedfb1d 184<<
872ae055 185 implib $(WXDIR)\lib\os2tiffd.lib $(WXDIR)\src\os2\os2tiff.def
3bedfb1d
DW
186
187!endif
188
94fbea12
DW
189clean:
190 del $(OS2TIFFLIB)
191 erase /N $(OS2TIFFDIR)\$D
192 rd $(OS2TIFFDIR)\$D
193
194cleanall: clean
195
196$(LIBOBJECTS):
615a9936
DW
197 copy ..\tiff\$D\tif_aux.obj
198 copy ..\tiff\$D\tif_close.obj
199 copy ..\tiff\$D\tif_codec.obj
200 copy ..\tiff\$D\tif_compress.obj
201 copy ..\tiff\$D\tif_dir.obj
202 copy ..\tiff\$D\tif_dirinfo.obj
203 copy ..\tiff\$D\tif_dirread.obj
204 copy ..\tiff\$D\tif_dirwrite.obj
205 copy ..\tiff\$D\tif_dumpmode.obj
206 copy ..\tiff\$D\tif_error.obj
207 copy ..\tiff\$D\tif_fax3.obj
208 copy ..\tiff\$D\tif_fax3sm.obj
209 copy ..\tiff\$D\tif_flush.obj
210 copy ..\tiff\$D\tif_getimage.obj
211 copy ..\tiff\$D\tif_jpeg.obj
212 copy ..\tiff\$D\tif_luv.obj
213 copy ..\tiff\$D\tif_lzw.obj
214 copy ..\tiff\$D\tif_next.obj
215 copy ..\tiff\$D\tif_open.obj
216 copy ..\tiff\$D\tif_os2.obj
217 copy ..\tiff\$D\tif_packbits.obj
218 copy ..\tiff\$D\tif_pixarlog.obj
219 copy ..\tiff\$D\tif_predict.obj
220 copy ..\tiff\$D\tif_print.obj
221 copy ..\tiff\$D\tif_read.obj
222 copy ..\tiff\$D\tif_strip.obj
223 copy ..\tiff\$D\tif_swab.obj
224 copy ..\tiff\$D\tif_thunder.obj
225 copy ..\tiff\$D\tif_tile.obj
226 copy ..\tiff\$D\tif_version.obj
227 copy ..\tiff\$D\tif_warning.obj
228 copy ..\tiff\$D\tif_write.obj
94fbea12
DW
229 copy ..\tiff\$D\tif_zip.obj
230