1 #!#############################################################################
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
8 #!#############################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
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/ ) {
23 $file =~ s/cp?p?$/\$(OBJSUFF)/;
24 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
27 foreach $file (sort keys %wxCommon) {
28 next if $wxCommon{$file} =~ /\b(16)\b/;
30 $file =~ s/cp?p?$/\$(OBJSUFF)/;
31 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
34 foreach $file (sort keys %wxMSW) {
35 #! Mingw32 doesn't have the OLE headers and has some troubles with
37 next if $wxMSW{$file} =~ /\b(16)\b/;
39 $project{"WXMSWOBJS"} .= '$(MSWDIR)/';
40 $project{"WXMSWOBJS"} .= 'ole/' if $wxMSW{$file} =~ /\bO\b/;
41 $file =~ s/cp?p?$/\$(OBJSUFF)/;
42 $project{"WXMSWOBJS"} .= $file . " "
45 foreach $file (sort keys %wxHTML) {
46 $file =~ s/cp?p?$/\$(OBJSUFF)/;
47 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
51 # This file was automatically generated by tmake
52 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G295.T!
56 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
59 # Copyright:(c) 1993, AIAI, University of Edinburgh,
60 # Copyright:(c) 1999, Vadim Zeitlin
61 # Copyright:(c) 1999, Robert Roebling
63 # Makefile for libwx.a
65 # Replace this with your own path if necessary
68 # All common compiler flags and options are now in
69 # this central makefile.
70 include $(WXDIR)/src/makeg95.env
72 # Subordinate library possibilities
76 GENDIR = $(WXDIR)/src/generic
77 COMMDIR = $(WXDIR)/src/common
78 HTMLDIR = $(WXDIR)/src/html
79 PNGDIR = $(WXDIR)/src/png
80 JPEGDIR = $(WXDIR)/src/jpeg
81 ZLIBDIR = $(WXDIR)/src/zlib
82 OLEDIR = $(WXDIR)/src/msw/ole
83 MSWDIR = $(WXDIR)/src/msw
85 DOCDIR = $(WXDIR)\docs
88 #$ ExpandList("WXGENERICOBJS");
91 $(COMMDIR)/y_tab.$(OBJSUFF) \
92 #$ ExpandList("WXCOMMONOBJS");
95 #$ ExpandList("WXHTMLOBJS");
98 #$ ExpandList("WXMSWOBJS");
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)
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)
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)
182 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
183 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
185 all: $(OBJECTS) $(WXLIB)
187 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
188 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
191 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
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
196 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
197 copy ..\common\dosyacc.c ..\common\y_tab.c
199 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
200 copy ..\common\doslex.c ..\common\lex_yy.c
202 # Replace lex with flex if you run into compilation
203 # problems with lex_yy.c. See also note about LEX_SCANNER
205 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
206 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
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
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
219 # Replace yacc with bison if you run into compilation
220 # problems with y_tab.c.
222 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
223 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
225 # If you use e.g. gcc on Unix, uncomment these lines
226 # and comment out the above.
228 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
229 # $(YACC) $(COMMDIR)/parser.y
230 # mv y.tab.c $(COMMDIR)/y_tab.c
236 -erase ..\common\y_tab.c
237 -erase ..\common\lex_yy.c
239 -erase ..\common\*.bak
240 -erase ..\generic\*.o
241 -erase ..\generic\*.bak
248 -erase ..\..\lib\libwx.a