]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/g95.t
wxLocale now uses wxEncodingConverter (must be explicitly enabled)
[wxWidgets.git] / distrib / msw / tmake / g95.t
1 #!#############################################################################
2 #! File: g95.t
3 #! Purpose: tmake template file from which makefile.g95 is generated by running
4 #! tmake -t g95 wxwin.pro -o makefile.g95
5 #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
6 #! Created: 14.07.99
7 #! Version: $Id$
8 #!#############################################################################
9 #${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
17 #! so take the generic version
18 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
19 next #! unless $file =~ /^dirdlgg\./;
20 }
21
22 $file =~ s/cp?p?$/\$(OBJSUFF)/;
23 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
24 }
25
26 foreach $file (sort keys %wxCommon) {
27 next if $wxCommon{$file} =~ /\b(16)\b/;
28
29 #! needs extra files (sql*.h) so not compiled by default.
30 #! next if $file =~ /^odbc\./;
31
32 if ( $file =~ /^odbc\./ )
33 {
34 $file =~ s/cp?p?$/\$(OBJSUFF)/;
35 $project{"ADVANCEDOBJS"} .= '$(COMMDIR)/' . $file . " "
36 }
37 else
38 {
39 $file =~ s/cp?p?$/\$(OBJSUFF)/;
40 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
41 }
42 }
43
44 foreach $file (sort keys %wxMSW) {
45 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
46 next if $file =~ /^dirdlg\./;
47
48 next if $wxMSW{$file} =~ /\b(16)\b/;
49
50 #! Mingw32 doesn't have the OLE headers and has some troubles with
51 #! socket code, so put in ADVANCEDOBJS
52 if ( $wxMSW{$file} =~ /\b(O)\b/ )
53 {
54 $file =~ s/cp?p?$/\$(OBJSUFF)/;
55 $project{"ADVANCEDOBJS"} .= '$(MSWDIR)/ole/' . $file . " "
56 }
57 else
58 {
59 $file =~ s/cp?p?$/\$(OBJSUFF)/;
60 $project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " "
61 }
62
63 }
64
65 foreach $file (sort keys %wxHTML) {
66 $file =~ s/cp?p?$/\$(OBJSUFF)/;
67 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
68 }
69
70 #$}
71 # This file was automatically generated by tmake at #$ Now()
72 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
73
74 #
75 # File: makefile.g95
76 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
77 # Created: 1993
78 # Updated: 1999
79 # Copyright:(c) 1993, AIAI, University of Edinburgh,
80 # Copyright:(c) 1999, Vadim Zeitlin
81 # Copyright:(c) 1999, Robert Roebling
82 #
83 # Makefile for libwx.a
84
85 # Replace this with your own path if necessary
86 WXDIR = ../..
87
88 # All common compiler flags and options are now in
89 # this central makefile.
90 include $(WXDIR)/src/makeg95.env
91
92 # Subordinate library possibilities
93
94 EXTRAOBJS=
95
96 GENDIR = $(WXDIR)/src/generic
97 COMMDIR = $(WXDIR)/src/common
98 HTMLDIR = $(WXDIR)/src/html
99 XPMDIR = $(WXDIR)/src/xpm
100 PNGDIR = $(WXDIR)/src/png
101 JPEGDIR = $(WXDIR)/src/jpeg
102 ZLIBDIR = $(WXDIR)/src/zlib
103 OLEDIR = $(WXDIR)/src/msw/ole
104 MSWDIR = $(WXDIR)/src/msw
105
106 PNGLIB = $(WXDIR)/lib/libpng.a
107 ZLIBLIB = $(WXDIR)/lib/libzlib.a
108 JPEGLIB = $(WXDIR)/lib/libjpeg.a
109
110 DOCDIR = $(WXDIR)\docs
111
112 # Only use the WIN32 wxDirDialog if we have a recent
113 # version of Mingw32
114 ifeq ($(MINGW32),1)
115 ifeq ($(MINGW32VERSION),2.95)
116 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
117 else
118 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
119 endif
120 else
121 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
122 endif
123
124 GENERICOBJS = \
125 #$ ExpandList("WXGENERICOBJS");
126
127 COMMONOBJS = \
128 $(COMMDIR)/y_tab.$(OBJSUFF) \
129 #$ ExpandList("WXCOMMONOBJS");
130
131 HTMLOBJS = \
132 #$ ExpandList("WXHTMLOBJS");
133
134 MSWOBJS = \
135 #$ ExpandList("WXMSWOBJS");
136
137 ADVANCEDOBJS = \
138 #$ ExpandList("ADVANCEDOBJS");
139
140 ZLIBOBJS = \
141 $(ZLIBDIR)/adler32.$(OBJSUFF) \
142 $(ZLIBDIR)/compress.$(OBJSUFF) \
143 $(ZLIBDIR)/crc32.$(OBJSUFF) \
144 $(ZLIBDIR)/gzio.$(OBJSUFF) \
145 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
146 $(ZLIBDIR)/deflate.$(OBJSUFF) \
147 $(ZLIBDIR)/trees.$(OBJSUFF) \
148 $(ZLIBDIR)/zutil.$(OBJSUFF) \
149 $(ZLIBDIR)/inflate.$(OBJSUFF) \
150 $(ZLIBDIR)/infblock.$(OBJSUFF) \
151 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
152 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
153 $(ZLIBDIR)/infutil.$(OBJSUFF) \
154 $(ZLIBDIR)/inffast.$(OBJSUFF)
155
156 PNGOBJS = \
157 $(PNGDIR)/png.$(OBJSUFF) \
158 $(PNGDIR)/pngread.$(OBJSUFF) \
159 $(PNGDIR)/pngrtran.$(OBJSUFF) \
160 $(PNGDIR)/pngrutil.$(OBJSUFF) \
161 $(PNGDIR)/pngpread.$(OBJSUFF) \
162 $(PNGDIR)/pngtrans.$(OBJSUFF) \
163 $(PNGDIR)/pngwrite.$(OBJSUFF) \
164 $(PNGDIR)/pngwtran.$(OBJSUFF) \
165 $(PNGDIR)/pngwutil.$(OBJSUFF) \
166 $(PNGDIR)/pngerror.$(OBJSUFF) \
167 $(PNGDIR)/pngmem.$(OBJSUFF) \
168 $(PNGDIR)/pngwio.$(OBJSUFF) \
169 $(PNGDIR)/pngrio.$(OBJSUFF) \
170 $(PNGDIR)/pngget.$(OBJSUFF) \
171 $(PNGDIR)/pngset.$(OBJSUFF)
172
173
174 JPEGOBJS = \
175 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
176 $(JPEGDIR)/jutils.$(OBJSUFF) \
177 $(JPEGDIR)/jerror.$(OBJSUFF) \
178 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
179 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
180 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
181 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
182 $(JPEGDIR)/jctrans.$(OBJSUFF) \
183 $(JPEGDIR)/jcparam.$(OBJSUFF) \
184 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
185 $(JPEGDIR)/jcinit.$(OBJSUFF) \
186 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
187 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
188 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
189 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
190 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
191 $(JPEGDIR)/jccolor.$(OBJSUFF) \
192 $(JPEGDIR)/jcsample.$(OBJSUFF) \
193 $(JPEGDIR)/jchuff.$(OBJSUFF) \
194 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
195 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
196 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
197 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
198 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
199 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
200 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
201 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
202 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
203 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
204 $(JPEGDIR)/jdinput.$(OBJSUFF) \
205 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
206 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
207 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
208 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
209 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
210 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
211 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
212 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
213 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
214 $(JPEGDIR)/jidctint.$(OBJSUFF) \
215 $(JPEGDIR)/jidctred.$(OBJSUFF) \
216 $(JPEGDIR)/jdsample.$(OBJSUFF) \
217 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
218 $(JPEGDIR)/jquant1.$(OBJSUFF) \
219 $(JPEGDIR)/jquant2.$(OBJSUFF) \
220 $(JPEGDIR)/jdmerge.$(OBJSUFF)
221
222 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
223 $(XPMDIR)/crdatfri.o\
224 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
225 $(XPMDIR)/crifrdat.o\
226 $(XPMDIR)/data.o\
227 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
228 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
229 $(XPMDIR)/rdftoi.o\
230 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
231 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
232 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
233
234 ifeq ($(MINGW32),1)
235 ifeq ($(MINGW32VERSION),2.95)
236 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS) # $(XPMOBJECTS)
237 else
238 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
239 endif
240 else
241 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
242 endif
243
244 all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(JPEGLIB) $(PNGLIB)
245
246 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
247 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
248 $(RANLIB) $@
249
250 $(ZLIBLIB): $(ZLIBOBJS)
251 ar $(AROPTIONS) $@ $(ZLIBOBJS)
252 $(RANLIB) $@
253
254 $(PNGLIB): $(PNGOBJS)
255 ar $(AROPTIONS) $@ $(PNGOBJS)
256 $(RANLIB) $@
257
258 $(JPEGLIB): $(JPEGOBJS)
259 ar $(AROPTIONS) $@ $(JPEGOBJS)
260 $(RANLIB) $@
261
262 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
263
264 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
265 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
266
267 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
268 $(COPY) ..\\common\\dosyacc.c ..\\common\\y_tab.c
269
270 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
271 $(COPY) ..\\common\\doslex.c ..\\common\\lex_yy.c
272
273 # Replace lex with flex if you run into compilation
274 # problems with lex_yy.c. See also note about LEX_SCANNER
275 # above.
276 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
277 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
278 #
279 # Try one of these if the above line doesn't work.
280 # Alternative syntax (1)
281 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
282 # Alternative syntax (2)
283 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
284 #
285 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
286 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
287 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
288 # rm -f lex.yy.c
289 #
290 # Replace yacc with bison if you run into compilation
291 # problems with y_tab.c.
292 #
293 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
294 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
295 #
296 # If you use e.g. gcc on Unix, uncomment these lines
297 # and comment out the above.
298 #
299 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
300 # $(YACC) $(COMMDIR)/parser.y
301 # mv y.tab.c $(COMMDIR)/y_tab.c
302
303 clean:
304 -$(RM) *.o
305 -$(RM) ole/*.o
306 -$(RM) *.bak
307 -$(RM) core
308 -$(RM) ../common/y_tab.c
309 -$(RM) ../common/lex_yy.c
310 -$(RM) ../common/*.o
311 -$(RM) ../common/*.bak
312 -$(RM) ../generic/*.o
313 -$(RM) ../generic/*.bak
314 -$(RM) ../html/*.o
315 -$(RM) ../png/*.o
316 -$(RM) ../png/*.bak
317 -$(RM) ../zlib/*.o
318 -$(RM) ../zlib/*.bak
319 -$(RM) ../jpeg/*.o
320 -$(RM) ../../lib/libwx.a
321
322 cleanall: clean