]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/MAKEFILE.VA
Don't have to explicitly set the background any more, the default will
[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
94fbea12
DW
7#
8# "%W% %G%"
9#
10# Makefile : Builds os2tiff.lib library for OS/2 3.0/4.0
11
12# Suffixes
13OBJSUFF=obj
14SRCSUFF=cpp
15
615a9936 16OS2FLAGS=/c /W2 /DOS232 /D__VISAGECPP__ /D__VISAGECPP30__ /DOS2_32 /Tdc /Q /N100
94fbea12
DW
17OS2LINKFLAGS=/BASE:0x00010000 /PMTYPE:PM /NOE /NOD /ALIGN:16
18OS2LIBFLAGS=/NOL /NOE
19OS2LIBS=CPPOM30.lib CPPOOC3.LIB OS2386.LIB
20
3bedfb1d
DW
21!if "$(WXMAKINGDLL)" != "0"
22EXTRADLLFLAGS=/DWXMAKINGDLL=1 /Ge- /D__OS2DLL__
23EXTRALNKFLAGS=/DLL
24!endif
25
94fbea12
DW
26# Change WXDIR or WXWIN to wherever wxWindows is found
27WXDIR = $(WXWIN)
28
29OS2TIFFDIR=$(WXDIR)\src\tiff
30OS2TIFFINC=$(WINTIFFDIR)
31OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
32
3bedfb1d
DW
33!if "$(WXMAKINGDLL)" != "1"
34OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
35!else
36OS2TIFFLIB=$(WXDIR)\lib\os2tiff.dll
37!endif
38
94fbea12
DW
39INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
40
41!ifndef FINAL
42FINAL=0
43!endif
44
45!if "$(NOPCH)" == "1"
46PCH=
47PRECOMP=
48MAKEPRECOMP=
49!else
50PCH=$(WXLIBNAME).pch
51PRECOMP=/Si$(PCH)
52MAKEPRECOMP=/Fi$(PCH)
53!endif
54
55!if "$(FINAL)" == "0"
3bedfb1d
DW
56!if "$(WXMAKINGDLL)" == "1"
57D=DebugOS2DLL
58!else
94fbea12 59D=DebugOS2
3bedfb1d 60!endif
94fbea12
DW
61OPT =
62DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
63LINK_DEBUG_FLAGS=/DEBUG
64CRTFLAG=/Gm /Gd
65!else
66# /O1 - smallest code
67# /O2 - fastest code
3bedfb1d
DW
68!if "$(WXMAKINGDLL)" == "1"
69D=RelseOS2DLL
70!else
94fbea12 71D=RelseOS2
3bedfb1d 72!endif
94fbea12
DW
73OPT = /O+ /Oc /G5
74DEBUG_FLAGS=
75LINK_DEBUG_FLAGS=/RELEASE
76CRTFLAG=/Gm /Gd
77!endif
78
79!if [md $(OS2TIFFDIR)\$D]
80!endif
81
82
3bedfb1d
DW
83CPPFLAGS=$(OS2FLAGS) $(EXTRADLLFLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
84LINKFKAGS=$(OS2LINKFLAGS) $(EXTRALNKFLAGS)
94fbea12
DW
85
86{..\tiff}.c{..\tiff\$D}.obj:
87 @echo $<
88 icc @<<
89$(CPPFLAGS) /Fo$@ /Tp $<
90<<
91
92OBJECTS = \
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 \
615a9936 112 ..\tiff\$D\tif_os2.obj \
94fbea12
DW
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 \
94fbea12
DW
124 ..\tiff\$D\tif_write.obj \
125 ..\tiff\$D\tif_zip.obj
126
127LIBOBJECTS = \
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 \
615a9936 147 tif_os2.obj \
94fbea12
DW
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 \
94fbea12
DW
159 tif_write.obj \
160 tif_zip.obj
161
162all: $(OBJECTS) $(OS2TIFFLIB)
163
3bedfb1d
DW
164!if "$(WXMAKINGDLL)" != "1"
165
94fbea12
DW
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
3bedfb1d
DW
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)
872ae055 182 $(WXDIR)\src\os2\os2tiff.def
3bedfb1d 183<<
872ae055 184 implib $(WXDIR)\lib\os2tiffd.lib $(WXDIR)\src\os2\os2tiff.def
3bedfb1d
DW
185
186!endif
187
94fbea12
DW
188clean:
189 del $(OS2TIFFLIB)
190 erase /N $(OS2TIFFDIR)\$D
191 rd $(OS2TIFFDIR)\$D
192
193cleanall: clean
194
195$(LIBOBJECTS):
615a9936
DW
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
94fbea12
DW
228 copy ..\tiff\$D\tif_zip.obj
229