]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/MAKEFILE.VA
fallback to string changes for number and float editors
[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 # Change WXDIR or WXWIN to wherever wxWindows is found
22 WXDIR = $(WXWIN)
23
24 OS2TIFFDIR=$(WXDIR)\src\tiff
25 OS2TIFFINC=$(WINTIFFDIR)
26 OS2TIFFLIB=$(WXDIR)\lib\os2tiff.lib
27
28 INC=-I$(WXDIR)\src\TIFF -I$(OS2TIFFINC)
29
30 !ifndef FINAL
31 FINAL=0
32 !endif
33
34 !if "$(NOPCH)" == "1"
35 PCH=
36 PRECOMP=
37 MAKEPRECOMP=
38 !else
39 PCH=$(WXLIBNAME).pch
40 PRECOMP=/Si$(PCH)
41 MAKEPRECOMP=/Fi$(PCH)
42 !endif
43
44 !if "$(FINAL)" == "0"
45 D=DebugOS2
46 OPT =
47 DEBUG_FLAGS= /Ti /D__WXDEBUG__ #/Fb
48 LINK_DEBUG_FLAGS=/DEBUG
49 CRTFLAG=/Gm /Gd
50 !else
51 # /O1 - smallest code
52 # /O2 - fastest code
53 D=RelseOS2
54 OPT = /O+ /Oc /G5
55 DEBUG_FLAGS=
56 LINK_DEBUG_FLAGS=/RELEASE
57 CRTFLAG=/Gm /Gd
58 !endif
59
60 !if [md $(OS2TIFFDIR)\$D]
61 !endif
62
63
64 CPPFLAGS=$(OS2FLAGS) $(DEBUG_FLAGS) $(PRECOMP) $(INC) $(OPT) $(CRTFLAG)
65
66 {..\tiff}.c{..\tiff\$D}.obj:
67 @echo $<
68 icc @<<
69 $(CPPFLAGS) /Fo$@ /Tp $<
70 <<
71
72 OBJECTS = \
73 ..\tiff\$D\tif_aux.obj \
74 ..\tiff\$D\tif_close.obj \
75 ..\tiff\$D\tif_codec.obj \
76 ..\tiff\$D\tif_compress.obj \
77 ..\tiff\$D\tif_dir.obj \
78 ..\tiff\$D\tif_dirinfo.obj \
79 ..\tiff\$D\tif_dirread.obj \
80 ..\tiff\$D\tif_dirwrite.obj \
81 ..\tiff\$D\tif_dumpmode.obj \
82 ..\tiff\$D\tif_error.obj \
83 ..\tiff\$D\tif_fax3.obj \
84 ..\tiff\$D\tif_fax3sm.obj \
85 ..\tiff\$D\tif_flush.obj \
86 ..\tiff\$D\tif_getimage.obj \
87 ..\tiff\$D\tif_jpeg.obj \
88 ..\tiff\$D\tif_luv.obj \
89 ..\tiff\$D\tif_lzw.obj \
90 ..\tiff\$D\tif_next.obj \
91 ..\tiff\$D\tif_open.obj \
92 ..\tiff\$D\tif_os2.obj \
93 ..\tiff\$D\tif_packbits.obj \
94 ..\tiff\$D\tif_pixarlog.obj \
95 ..\tiff\$D\tif_predict.obj \
96 ..\tiff\$D\tif_print.obj \
97 ..\tiff\$D\tif_read.obj \
98 ..\tiff\$D\tif_strip.obj \
99 ..\tiff\$D\tif_swab.obj \
100 ..\tiff\$D\tif_thunder.obj \
101 ..\tiff\$D\tif_tile.obj \
102 ..\tiff\$D\tif_version.obj \
103 ..\tiff\$D\tif_warning.obj \
104 ..\tiff\$D\tif_write.obj \
105 ..\tiff\$D\tif_zip.obj
106
107 LIBOBJECTS = \
108 tif_aux.obj \
109 tif_close.obj \
110 tif_codec.obj \
111 tif_compress.obj \
112 tif_dir.obj \
113 tif_dirinfo.obj \
114 tif_dirread.obj \
115 tif_dirwrite.obj \
116 tif_dumpmode.obj \
117 tif_error.obj \
118 tif_fax3.obj \
119 tif_fax3sm.obj \
120 tif_flush.obj \
121 tif_getimage.obj \
122 tif_jpeg.obj \
123 tif_luv.obj \
124 tif_lzw.obj \
125 tif_next.obj \
126 tif_open.obj \
127 tif_os2.obj \
128 tif_packbits.obj \
129 tif_pixarlog.obj \
130 tif_predict.obj \
131 tif_print.obj \
132 tif_read.obj \
133 tif_strip.obj \
134 tif_swab.obj \
135 tif_thunder.obj \
136 tif_tile.obj \
137 tif_version.obj \
138 tif_warning.obj \
139 tif_write.obj \
140 tif_zip.obj
141
142 all: $(OBJECTS) $(OS2TIFFLIB)
143
144 $(WXDIR)\lib\os2tiff.lib: $(LIBOBJECTS)
145 touch $(WXDIR)\lib\os2tiff.lib
146 del $(WXDIR)\lib\os2tiff.lib
147 ilib $(OS2LIBFLAGS) $@ @<<
148 $**;
149 <<
150 del *.obj
151
152 clean:
153 del $(OS2TIFFLIB)
154 erase /N $(OS2TIFFDIR)\$D
155 rd $(OS2TIFFDIR)\$D
156
157 cleanall: clean
158
159 $(LIBOBJECTS):
160 copy ..\tiff\$D\tif_aux.obj
161 copy ..\tiff\$D\tif_close.obj
162 copy ..\tiff\$D\tif_codec.obj
163 copy ..\tiff\$D\tif_compress.obj
164 copy ..\tiff\$D\tif_dir.obj
165 copy ..\tiff\$D\tif_dirinfo.obj
166 copy ..\tiff\$D\tif_dirread.obj
167 copy ..\tiff\$D\tif_dirwrite.obj
168 copy ..\tiff\$D\tif_dumpmode.obj
169 copy ..\tiff\$D\tif_error.obj
170 copy ..\tiff\$D\tif_fax3.obj
171 copy ..\tiff\$D\tif_fax3sm.obj
172 copy ..\tiff\$D\tif_flush.obj
173 copy ..\tiff\$D\tif_getimage.obj
174 copy ..\tiff\$D\tif_jpeg.obj
175 copy ..\tiff\$D\tif_luv.obj
176 copy ..\tiff\$D\tif_lzw.obj
177 copy ..\tiff\$D\tif_next.obj
178 copy ..\tiff\$D\tif_open.obj
179 copy ..\tiff\$D\tif_os2.obj
180 copy ..\tiff\$D\tif_packbits.obj
181 copy ..\tiff\$D\tif_pixarlog.obj
182 copy ..\tiff\$D\tif_predict.obj
183 copy ..\tiff\$D\tif_print.obj
184 copy ..\tiff\$D\tif_read.obj
185 copy ..\tiff\$D\tif_strip.obj
186 copy ..\tiff\$D\tif_swab.obj
187 copy ..\tiff\$D\tif_thunder.obj
188 copy ..\tiff\$D\tif_tile.obj
189 copy ..\tiff\$D\tif_version.obj
190 copy ..\tiff\$D\tif_warning.obj
191 copy ..\tiff\$D\tif_write.obj
192 copy ..\tiff\$D\tif_zip.obj
193