]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/g95.t
1. msec resolution for timer functions under Win32
[wxWidgets.git] / distrib / msw / tmake / g95.t
CommitLineData
f2071dda
VZ
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
c45a644e 5#! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
f2071dda
VZ
6#! Created: 14.07.99
7#! Version: $Id$
8#!#############################################################################
f2071dda
VZ
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
2662e49e 18 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
154f22b3 19 next #! unless $file =~ /^dirdlgg\./;
f2071dda
VZ
20 }
21
22 $file =~ s/cp?p?$/\$(OBJSUFF)/;
2662e49e 23 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
f2071dda
VZ
24 }
25
26 foreach $file (sort keys %wxCommon) {
2662e49e 27 next if $wxCommon{$file} =~ /\b(16)\b/;
f2071dda
VZ
28
29 #! needs extra files (sql*.h) so not compiled by default.
1a7f3062 30 #! next if $file =~ /^odbc\./;
f2071dda 31
1a7f3062
JS
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 }
f2071dda
VZ
42 }
43
44 foreach $file (sort keys %wxMSW) {
2662e49e
RR
45 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
46 next if $file =~ /^dirdlg\./;
f2071dda 47
1a7f3062
JS
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
f2071dda 63 }
8a4df159
RR
64
65 foreach $file (sort keys %wxHTML) {
66 $file =~ s/cp?p?$/\$(OBJSUFF)/;
67 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
68 }
69
f2071dda 70#$}
f2071dda
VZ
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#
c45a644e
RR
75# File: makefile.g95
76# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
f2071dda 77# Created: 1993
c45a644e
RR
78# Updated: 1999
79# Copyright:(c) 1993, AIAI, University of Edinburgh,
80# Copyright:(c) 1999, Vadim Zeitlin
81# Copyright:(c) 1999, Robert Roebling
f2071dda
VZ
82#
83# Makefile for libwx.a
84
85# Replace this with your own path if necessary
86WXDIR = ../..
87
c45a644e 88# All common compiler flags and options are now in
f2071dda
VZ
89# this central makefile.
90include $(WXDIR)/src/makeg95.env
91
f2071dda
VZ
92# Subordinate library possibilities
93
94EXTRAOBJS=
95
c45a644e
RR
96GENDIR = $(WXDIR)/src/generic
97COMMDIR = $(WXDIR)/src/common
a3015c54 98HTMLDIR = $(WXDIR)/src/html
c45a644e
RR
99XPMDIR = $(WXDIR)/src/xpm
100PNGDIR = $(WXDIR)/src/png
101JPEGDIR = $(WXDIR)/src/jpeg
102ZLIBDIR = $(WXDIR)/src/zlib
103OLEDIR = $(WXDIR)/src/msw/ole
104MSWDIR = $(WXDIR)/src/msw
f2071dda 105
01dba85a
JS
106PNGLIB = $(WXDIR)/lib/libpng.a
107ZLIBLIB = $(WXDIR)/lib/libzlib.a
108JPEGLIB = $(WXDIR)/lib/libjpeg.a
109
f2071dda
VZ
110DOCDIR = $(WXDIR)\docs
111
154f22b3
JS
112# Only use the WIN32 wxDirDialog if we have a recent
113# version of Mingw32
114ifeq ($(MINGW32),1)
115 ifeq ($(MINGW32VERSION),2.95)
116 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
117 else
118 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
119 endif
120else
121 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
122endif
123
c45a644e
RR
124GENERICOBJS = \
125 #$ ExpandList("WXGENERICOBJS");
f2071dda 126
c45a644e 127COMMONOBJS = \
f2071dda
VZ
128 $(COMMDIR)/y_tab.$(OBJSUFF) \
129 #$ ExpandList("WXCOMMONOBJS");
130
a3015c54
RR
131HTMLOBJS = \
132 #$ ExpandList("WXHTMLOBJS");
133
c45a644e
RR
134MSWOBJS = \
135 #$ ExpandList("WXMSWOBJS");
136
1a7f3062
JS
137ADVANCEDOBJS = \
138 #$ ExpandList("ADVANCEDOBJS");
139
c45a644e
RR
140ZLIBOBJS = \
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
156PNGOBJS = \
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
174JPEGOBJS = \
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)
f2071dda
VZ
221
222XPMOBJECTS = $(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
1a7f3062
JS
234ifeq ($(MINGW32),1)
235 ifeq ($(MINGW32VERSION),2.95)
154f22b3 236 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS) # $(XPMOBJECTS)
1a7f3062 237 else
154f22b3 238 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
1a7f3062
JS
239 endif
240else
154f22b3 241 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
1a7f3062 242endif
f2071dda 243
01dba85a 244all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(JPEGLIB) $(PNGLIB)
f2071dda 245
f2071dda
VZ
246$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
247 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
248 $(RANLIB) $@
249
01dba85a
JS
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
f2071dda
VZ
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
6a570331
RR
265 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
266
267$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
01dba85a 268 $(COPY) ..\\common\\dosyacc.c ..\\common\\y_tab.c
6a570331
RR
269
270$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
01dba85a 271 $(COPY) ..\\common\\doslex.c ..\\common\\lex_yy.c
f2071dda
VZ
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.
6a570331
RR
276# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
277# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
278#
f2071dda
VZ
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
6a570331 284#
f2071dda
VZ
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
6a570331 289#
f2071dda
VZ
290# Replace yacc with bison if you run into compilation
291# problems with y_tab.c.
6a570331
RR
292#
293# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
294# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
295#
f2071dda
VZ
296# If you use e.g. gcc on Unix, uncomment these lines
297# and comment out the above.
6a570331 298#
f2071dda
VZ
299# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
300# $(YACC) $(COMMDIR)/parser.y
301# mv y.tab.c $(COMMDIR)/y_tab.c
302
f2071dda 303clean:
6474416b 304 -$(RM) *.o
01dba85a 305 -$(RM) ole/*.o
6474416b
JS
306 -$(RM) *.bak
307 -$(RM) core
01dba85a
JS
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
f2071dda
VZ
321
322cleanall: clean