]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/MAKEFILE.VA
fix compilation both for Robert's cross-compiler and for all normal compilers by...
[wxWidgets.git] / src / tiff / MAKEFILE.VA
1 #
2 # File: makefile.vc
3 # Author: David Webster
4 # Created: 2000
5 # Updated:
6 # Copyright: c) 2000, BHM
7 # Licence: wxWindows Licence
8 #
9 # "%W% %G%"
10 #
11 # Makefile : Builds os2tiff.lib library for OS/2 3.0/4.0
12
13 # Suffixes
14 OBJSUFF=obj
15 SRCSUFF=cpp
16
17 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__VISAGECPP30__ /DOS2_32 /Tdc /Q /N100
18 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
19 OS2LIBFLAGS=/NOL /NOE
20 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
21
22 !if "$(WXMAKINGDLL)" != "0"
23 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
24 EXTRALNKFLAGS=/DLL
25 !endif
26
27 # Change WXDIR or WXWIN to wherever wxWindows is found
28 WXDIR = $(WXWIN)
29
30 OS2TIFFDIR=$(WXDIR)\src\tiff
31 OS2TIFFINC=$(WINTIFFDIR)
32 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
33
34 !if "$(WXMAKINGDLL)" != "1"
35 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
36 !else
37 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.dll
38 !endif
39
40 INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
41
42 !ifndef FINAL
43 FINAL=0
44 !endif
45
46 !if "$(NOPCH)" == "1"
47 PCH=
48 PRECOMP=
49 MAKEPRECOMP=
50 !else
51 PCH=$(WXLIBNAME).pch
52 PRECOMP=/Si$(PCH)
53 MAKEPRECOMP=/Fi$(PCH)
54 !endif
55
56 !if "$(FINAL)" == "0"
57 !if "$(WXMAKINGDLL)" == "1"
58 D=DebugOS2DLL
59 !else
60 D=DebugOS2
61 !endif
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 $(OS2TIFFDIR)\$D]
81 !endif
82
83
84 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
85 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
86
87 {..\tiff}.c{..\tiff\$D}.obj:
88 @echo $<
89 icc @<<
90 $(CPPFLAGS) /Fo$@ /Tp $<
91 <<
92
93 OBJECTS = \
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 \
113 ..\tiff\$D\tif_os2.obj \
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 \
125 ..\tiff\$D\tif_write.obj \
126 ..\tiff\$D\tif_zip.obj
127
128 LIBOBJECTS = \
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 \
148 tif_os2.obj \
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 \
160 tif_write.obj \
161 tif_zip.obj
162
163 all: $(OBJECTS) $(OS2TIFFLIB)
164
165 !if "$(WXMAKINGDLL)" != "1"
166
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
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)
183 $(WXDIR)\src\os2\os2tiff.def
184 <<
185 implib $(WXDIR)\lib\os2tiffd.lib $(WXDIR)\src\os2\os2tiff.def
186
187 !endif
188
189 clean:
190 del $(OS2TIFFLIB)
191 erase /N $(OS2TIFFDIR)\$D
192 rd $(OS2TIFFDIR)\$D
193
194 cleanall: clean
195
196 $(LIBOBJECTS):
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
229 copy ..\tiff\$D\tif_zip.obj
230