]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/MAKEFILE.VA
Instead of m_menuBar use GetMenuBar() which will be modified (with next patch)
[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 #
8 # "%W% %G%"
9 #
10 # Makefile : Builds os2tiff.lib library for OS/2 3.0/4.0
11
12 # Suffixes
13 OBJSUFF=obj
14 SRCSUFF=cpp
15
16 OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__VISAGECPP30__ /DOS2_32 /Tdc /Q /N100
17 OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18 OS2LIBFLAGS=/NOL /NOE
19 OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
21 !if "$(WXMAKINGDLL)" != "0"
22 EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
23 EXTRALNKFLAGS=/DLL
24 !endif
25
26 # Change WXDIR or WXWIN to wherever wxWindows is found
27 WXDIR = $(WXWIN)
28
29 OS2TIFFDIR=$(WXDIR)\src\tiff
30 OS2TIFFINC=$(WINTIFFDIR)
31 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
32
33 !if "$(WXMAKINGDLL)" != "1"
34 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
35 !else
36 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.dll
37 !endif
38
39 INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
40
41 !ifndef FINAL
42 FINAL=0
43 !endif
44
45 !if "$(NOPCH)" == "1"
46 PCH=
47 PRECOMP=
48 MAKEPRECOMP=
49 !else
50 PCH=$(WXLIBNAME).pch
51 PRECOMP=/Si$(PCH)
52 MAKEPRECOMP=/Fi$(PCH)
53 !endif
54
55 !if "$(FINAL)" == "0"
56 !if "$(WXMAKINGDLL)" == "1"
57 D=DebugOS2DLL
58 !else
59 D=DebugOS2
60 !endif
61 OPT =
62 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
63 LINK_DEBUG_FLAGS=/DEBUG
64 CRTFLAG=/Gm /Gd
65 !else
66 # /O1 - smallest code
67 # /O2 - fastest code
68 !if "$(WXMAKINGDLL)" == "1"
69 D=RelseOS2DLL
70 !else
71 D=RelseOS2
72 !endif
73 OPT = /O+ /Oc /G5
74 DEBUG_FLAGS=
75 LINK_DEBUG_FLAGS=/RELEASE
76 CRTFLAG=/Gm /Gd
77 !endif
78
79 !if [md $(OS2TIFFDIR)\$D]
80 !endif
81
82
83 CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
84 LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
85
86 {..\tiff}.c{..\tiff\$D}.obj:
87 @echo $<
88 icc @<<
89 $(CPPFLAGS) /Fo$@ /Tp $<
90 <<
91
92 OBJECTS = \
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
126
127 LIBOBJECTS = \
128 tif_aux.obj \
129 tif_close.obj \
130 tif_codec.obj \
131 tif_compress.obj \
132 tif_dir.obj \
133 tif_dirinfo.obj \
134 tif_dirread.obj \
135 tif_dirwrite.obj \
136 tif_dumpmode.obj \
137 tif_error.obj \
138 tif_fax3.obj \
139 tif_fax3sm.obj \
140 tif_flush.obj \
141 tif_getimage.obj \
142 tif_jpeg.obj \
143 tif_luv.obj \
144 tif_lzw.obj \
145 tif_next.obj \
146 tif_open.obj \
147 tif_os2.obj \
148 tif_packbits.obj \
149 tif_pixarlog.obj \
150 tif_predict.obj \
151 tif_print.obj \
152 tif_read.obj \
153 tif_strip.obj \
154 tif_swab.obj \
155 tif_thunder.obj \
156 tif_tile.obj \
157 tif_version.obj \
158 tif_warning.obj \
159 tif_write.obj \
160 tif_zip.obj
161
162 all: $(OBJECTS) $(OS2TIFFLIB)
163
164 !if "$(WXMAKINGDLL)" != "1"
165
166 $(WXDIR)\lib\os2tiff.lib: $(LIBOBJECTS)
167 touch $(WXDIR)\lib\os2tiff.lib
168 del $(WXDIR)\lib\os2tiff.lib
169 ilib $(OS2LIBFLAGS) $@ @<<
170 $**;
171 <<
172 del *.obj
173
174 !else
175
176 # Update the dynamic link library
177 $(WXDIR)\lib\os2tiff.dll: $(OBJECTS)
178 icc @<<
179 /B" $(LINKFLAGS)" /Fe$@
180 $(LIBS)
181 $(OBJECTS)
182 $(WXDIR)\src\os2\os2tiff.def
183 <<
184 implib $(WXDIR)\lib\os2tiffd.lib $(WXDIR)\src\os2\os2tiff.def
185
186 !endif
187
188 clean:
189 del $(OS2TIFFLIB)
190 erase /N $(OS2TIFFDIR)\$D
191 rd $(OS2TIFFDIR)\$D
192
193 cleanall: clean
194
195 $(LIBOBJECTS):
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
229