1 #!#############################################################################
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
8 #!#############################################################################
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
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\./;
22 $file =~ s/cp?p?$/\$(OBJSUFF)/;
23 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
26 foreach $file (sort keys %wxCommon) {
27 next if $wxCommon{$file} =~ /\b(16)\b/;
29 #! needs extra files (sql*.h) so not compiled by default.
30 #! next if $file =~ /^odbc\./;
32 if ( $file =~ /^odbc\./ )
34 $file =~ s/cp?p?$/\$(OBJSUFF)/;
35 $project{"ADVANCEDOBJS"} .= '$(COMMDIR)/' . $file . " "
39 $file =~ s/cp?p?$/\$(OBJSUFF)/;
40 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
44 foreach $file (sort keys %wxMSW) {
45 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
46 next if $file =~ /^dirdlg\./;
48 next if $wxMSW{$file} =~ /\b(16)\b/;
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/ )
54 $file =~ s/cp?p?$/\$(OBJSUFF)/;
55 $project{"ADVANCEDOBJS"} .= '$(MSWDIR)/ole/' . $file . " "
59 $file =~ s/cp?p?$/\$(OBJSUFF)/;
60 $project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " "
65 foreach $file (sort keys %wxHTML) {
66 $file =~ s/cp?p?$/\$(OBJSUFF)/;
67 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
71 # This file was automatically generated by tmake at #$ Now()
72 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
76 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
79 # Copyright:(c) 1993, AIAI, University of Edinburgh,
80 # Copyright:(c) 1999, Vadim Zeitlin
81 # Copyright:(c) 1999, Robert Roebling
83 # Makefile for libwx.a
85 # Replace this with your own path if necessary
88 # All common compiler flags and options are now in
89 # this central makefile.
90 include $(WXDIR)/src/makeg95.env
92 # Subordinate library possibilities
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
106 DOCDIR = $(WXDIR)\docs
109 #$ ExpandList("WXGENERICOBJS");
112 $(COMMDIR)/y_tab.$(OBJSUFF) \
113 #$ ExpandList("WXCOMMONOBJS");
116 #$ ExpandList("WXHTMLOBJS");
119 #$ ExpandList("WXMSWOBJS");
122 #$ ExpandList("ADVANCEDOBJS");
125 $(ZLIBDIR)/adler32.$(OBJSUFF) \
126 $(ZLIBDIR)/compress.$(OBJSUFF) \
127 $(ZLIBDIR)/crc32.$(OBJSUFF) \
128 $(ZLIBDIR)/gzio.$(OBJSUFF) \
129 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
130 $(ZLIBDIR)/deflate.$(OBJSUFF) \
131 $(ZLIBDIR)/trees.$(OBJSUFF) \
132 $(ZLIBDIR)/zutil.$(OBJSUFF) \
133 $(ZLIBDIR)/inflate.$(OBJSUFF) \
134 $(ZLIBDIR)/infblock.$(OBJSUFF) \
135 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
136 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
137 $(ZLIBDIR)/infutil.$(OBJSUFF) \
138 $(ZLIBDIR)/inffast.$(OBJSUFF)
141 $(PNGDIR)/png.$(OBJSUFF) \
142 $(PNGDIR)/pngread.$(OBJSUFF) \
143 $(PNGDIR)/pngrtran.$(OBJSUFF) \
144 $(PNGDIR)/pngrutil.$(OBJSUFF) \
145 $(PNGDIR)/pngpread.$(OBJSUFF) \
146 $(PNGDIR)/pngtrans.$(OBJSUFF) \
147 $(PNGDIR)/pngwrite.$(OBJSUFF) \
148 $(PNGDIR)/pngwtran.$(OBJSUFF) \
149 $(PNGDIR)/pngwutil.$(OBJSUFF) \
150 $(PNGDIR)/pngerror.$(OBJSUFF) \
151 $(PNGDIR)/pngmem.$(OBJSUFF) \
152 $(PNGDIR)/pngwio.$(OBJSUFF) \
153 $(PNGDIR)/pngrio.$(OBJSUFF) \
154 $(PNGDIR)/pngget.$(OBJSUFF) \
155 $(PNGDIR)/pngset.$(OBJSUFF)
159 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
160 $(JPEGDIR)/jutils.$(OBJSUFF) \
161 $(JPEGDIR)/jerror.$(OBJSUFF) \
162 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
163 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
164 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
165 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
166 $(JPEGDIR)/jctrans.$(OBJSUFF) \
167 $(JPEGDIR)/jcparam.$(OBJSUFF) \
168 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
169 $(JPEGDIR)/jcinit.$(OBJSUFF) \
170 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
171 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
172 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
173 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
174 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
175 $(JPEGDIR)/jccolor.$(OBJSUFF) \
176 $(JPEGDIR)/jcsample.$(OBJSUFF) \
177 $(JPEGDIR)/jchuff.$(OBJSUFF) \
178 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
179 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
180 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
181 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
182 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
183 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
184 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
185 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
186 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
187 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
188 $(JPEGDIR)/jdinput.$(OBJSUFF) \
189 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
190 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
191 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
192 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
193 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
194 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
195 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
196 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
197 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
198 $(JPEGDIR)/jidctint.$(OBJSUFF) \
199 $(JPEGDIR)/jidctred.$(OBJSUFF) \
200 $(JPEGDIR)/jdsample.$(OBJSUFF) \
201 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
202 $(JPEGDIR)/jquant1.$(OBJSUFF) \
203 $(JPEGDIR)/jquant2.$(OBJSUFF) \
204 $(JPEGDIR)/jdmerge.$(OBJSUFF)
206 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
207 $(XPMDIR)/crdatfri.o\
208 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
209 $(XPMDIR)/crifrdat.o\
211 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
212 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
214 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
215 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
216 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
218 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
219 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(ADVANCEDOBJS) # $(XPMOBJECTS)
222 ifeq ($(MINGW32VERSION),2.95)
223 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
224 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) $(ADVANCEDOBJS) # $(XPMOBJECTS)
226 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
227 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
230 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
231 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
234 all: $(OBJECTS) $(WXLIB)
236 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
237 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
240 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
242 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
243 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
245 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
246 copy ..\\common\\dosyacc.c ..\\common\\y_tab.c
248 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
249 copy ..\\common\doslex.c ..\\common\\lex_yy.c
251 # Replace lex with flex if you run into compilation
252 # problems with lex_yy.c. See also note about LEX_SCANNER
254 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
255 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
257 # Try one of these if the above line doesn't work.
258 # Alternative syntax (1)
259 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
260 # Alternative syntax (2)
261 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
263 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
264 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
265 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
268 # Replace yacc with bison if you run into compilation
269 # problems with y_tab.c.
271 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
272 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
274 # If you use e.g. gcc on Unix, uncomment these lines
275 # and comment out the above.
277 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
278 # $(YACC) $(COMMDIR)/parser.y
279 # mv y.tab.c $(COMMDIR)/y_tab.c
285 -$(RM) ..\common\y_tab.c
286 -$(RM) ..\common\lex_yy.c
288 -$(RM) ..\common\*.bak
289 -$(RM) ..\generic\*.o
290 -$(RM) ..\generic\*.bak
297 -$(RM) ..\..\lib\libwx.a