]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/g95.t
Added libxpm
[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 XPMLIB = $(WXDIR)/lib/libxpm.a
107 PNGLIB = $(WXDIR)/lib/libpng.a
108 ZLIBLIB = $(WXDIR)/lib/libzlib.a
109 JPEGLIB = $(WXDIR)/lib/libjpeg.a
110
111 DOCDIR = $(WXDIR)\docs
112
113 # Only use the WIN32 wxDirDialog if we have a recent
114 # version of Mingw32
115 ifeq ($(MINGW32),1)
116 ifeq ($(MINGW32VERSION),2.95)
117 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
118 else
119 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
120 endif
121 else
122 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
123 endif
124
125 GENERICOBJS = \
126 #$ ExpandList("WXGENERICOBJS");
127
128 COMMONOBJS = \
129 $(COMMDIR)/y_tab.$(OBJSUFF) \
130 #$ ExpandList("WXCOMMONOBJS");
131
132 HTMLOBJS = \
133 #$ ExpandList("WXHTMLOBJS");
134
135 MSWOBJS = \
136 #$ ExpandList("WXMSWOBJS");
137
138 ADVANCEDOBJS = \
139 #$ ExpandList("ADVANCEDOBJS");
140
141 ZLIBOBJS = \
142 $(ZLIBDIR)/adler32.$(OBJSUFF) \
143 $(ZLIBDIR)/compress.$(OBJSUFF) \
144 $(ZLIBDIR)/crc32.$(OBJSUFF) \
145 $(ZLIBDIR)/gzio.$(OBJSUFF) \
146 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
147 $(ZLIBDIR)/deflate.$(OBJSUFF) \
148 $(ZLIBDIR)/trees.$(OBJSUFF) \
149 $(ZLIBDIR)/zutil.$(OBJSUFF) \
150 $(ZLIBDIR)/inflate.$(OBJSUFF) \
151 $(ZLIBDIR)/infblock.$(OBJSUFF) \
152 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
153 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
154 $(ZLIBDIR)/infutil.$(OBJSUFF) \
155 $(ZLIBDIR)/inffast.$(OBJSUFF)
156
157 PNGOBJS = \
158 $(PNGDIR)/png.$(OBJSUFF) \
159 $(PNGDIR)/pngread.$(OBJSUFF) \
160 $(PNGDIR)/pngrtran.$(OBJSUFF) \
161 $(PNGDIR)/pngrutil.$(OBJSUFF) \
162 $(PNGDIR)/pngpread.$(OBJSUFF) \
163 $(PNGDIR)/pngtrans.$(OBJSUFF) \
164 $(PNGDIR)/pngwrite.$(OBJSUFF) \
165 $(PNGDIR)/pngwtran.$(OBJSUFF) \
166 $(PNGDIR)/pngwutil.$(OBJSUFF) \
167 $(PNGDIR)/pngerror.$(OBJSUFF) \
168 $(PNGDIR)/pngmem.$(OBJSUFF) \
169 $(PNGDIR)/pngwio.$(OBJSUFF) \
170 $(PNGDIR)/pngrio.$(OBJSUFF) \
171 $(PNGDIR)/pngget.$(OBJSUFF) \
172 $(PNGDIR)/pngset.$(OBJSUFF)
173
174
175 JPEGOBJS = \
176 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
177 $(JPEGDIR)/jutils.$(OBJSUFF) \
178 $(JPEGDIR)/jerror.$(OBJSUFF) \
179 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
180 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
181 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
182 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
183 $(JPEGDIR)/jctrans.$(OBJSUFF) \
184 $(JPEGDIR)/jcparam.$(OBJSUFF) \
185 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
186 $(JPEGDIR)/jcinit.$(OBJSUFF) \
187 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
188 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
189 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
190 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
191 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
192 $(JPEGDIR)/jccolor.$(OBJSUFF) \
193 $(JPEGDIR)/jcsample.$(OBJSUFF) \
194 $(JPEGDIR)/jchuff.$(OBJSUFF) \
195 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
196 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
197 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
198 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
199 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
200 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
201 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
202 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
203 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
204 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
205 $(JPEGDIR)/jdinput.$(OBJSUFF) \
206 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
207 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
208 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
209 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
210 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
211 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
212 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
213 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
214 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
215 $(JPEGDIR)/jidctint.$(OBJSUFF) \
216 $(JPEGDIR)/jidctred.$(OBJSUFF) \
217 $(JPEGDIR)/jdsample.$(OBJSUFF) \
218 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
219 $(JPEGDIR)/jquant1.$(OBJSUFF) \
220 $(JPEGDIR)/jquant2.$(OBJSUFF) \
221 $(JPEGDIR)/jdmerge.$(OBJSUFF)
222
223 XPMOBJS = $(XPMDIR)/crbuffri.o\
224 $(XPMDIR)/crdatfri.o\
225 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
226 $(XPMDIR)/crifrdat.o\
227 $(XPMDIR)/data.o\
228 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
229 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
230 $(XPMDIR)/rdftoi.o\
231 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
232 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
233 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
234
235 ifeq ($(MINGW32),1)
236 ifeq ($(MINGW32VERSION),2.95)
237 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
238 else
239 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
240 endif
241 else
242 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
243 endif
244
245 all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(JPEGLIB) $(PNGLIB) $(XPMLIB)
246
247 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
248 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
249 $(RANLIB) $@
250
251 $(ZLIBLIB): $(ZLIBOBJS)
252 ar $(AROPTIONS) $@ $(ZLIBOBJS)
253 $(RANLIB) $@
254
255 $(PNGLIB): $(PNGOBJS)
256 ar $(AROPTIONS) $@ $(PNGOBJS)
257 $(RANLIB) $@
258
259 $(JPEGLIB): $(JPEGOBJS)
260 ar $(AROPTIONS) $@ $(JPEGOBJS)
261 $(RANLIB) $@
262
263 $(XPMLIB): $(XPMOBJS)
264 ar $(AROPTIONS) $@ $(XPMOBJS)
265 $(RANLIB) $@
266
267 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
268
269 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
270 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
271
272 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
273 $(COPY) ..\\common\\dosyacc.c ..\\common\\y_tab.c
274
275 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
276 $(COPY) ..\\common\\doslex.c ..\\common\\lex_yy.c
277
278 # Replace lex with flex if you run into compilation
279 # problems with lex_yy.c. See also note about LEX_SCANNER
280 # above.
281 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
282 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
283 #
284 # Try one of these if the above line doesn't work.
285 # Alternative syntax (1)
286 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
287 # Alternative syntax (2)
288 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
289 #
290 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
291 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
292 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
293 # rm -f lex.yy.c
294 #
295 # Replace yacc with bison if you run into compilation
296 # problems with y_tab.c.
297 #
298 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
299 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
300 #
301 # If you use e.g. gcc on Unix, uncomment these lines
302 # and comment out the above.
303 #
304 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
305 # $(YACC) $(COMMDIR)/parser.y
306 # mv y.tab.c $(COMMDIR)/y_tab.c
307
308 clean:
309 -$(RM) *.o
310 -$(RM) ole/*.o
311 -$(RM) *.bak
312 -$(RM) core
313 -$(RM) ../common/y_tab.c
314 -$(RM) ../common/lex_yy.c
315 -$(RM) ../common/*.o
316 -$(RM) ../common/*.bak
317 -$(RM) ../generic/*.o
318 -$(RM) ../generic/*.bak
319 -$(RM) ../html/*.o
320 -$(RM) ../png/*.o
321 -$(RM) ../png/*.bak
322 -$(RM) ../zlib/*.o
323 -$(RM) ../zlib/*.bak
324 -$(RM) ../jpeg/*.o
325 -$(RM) ../jpeg/*.bak
326 -$(RM) ../xpm/*.o
327 -$(RM) ../xpm/*.bak
328 -$(RM) ../../lib/libwx.a
329
330 cleanall: clean