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