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 XPMLIB = $(WXDIR)/lib/libxpm.a
107 PNGLIB = $(WXDIR)/lib/libpng.a
108 ZLIBLIB = $(WXDIR)/lib/libzlib.a
109 JPEGLIB = $(WXDIR)/lib/libjpeg.a
111 DOCDIR = $(WXDIR)\docs
113 # Only use the WIN32 wxDirDialog if we have a recent
116 ifeq ($(MINGW32VERSION),2.95)
117 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
119 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
122 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
126 #$ ExpandList("WXGENERICOBJS");
129 $(COMMDIR)/y_tab.$(OBJSUFF) \
130 #$ ExpandList("WXCOMMONOBJS");
133 #$ ExpandList("WXHTMLOBJS");
136 #$ ExpandList("WXMSWOBJS");
139 #$ ExpandList("ADVANCEDOBJS");
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)
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)
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)
223 XPMOBJS = $(XPMDIR)/crbuffri.o\
224 $(XPMDIR)/crdatfri.o\
225 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
226 $(XPMDIR)/crifrdat.o\
228 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
229 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
231 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
232 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
233 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
236 ifeq ($(MINGW32VERSION),2.95)
237 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
239 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
242 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
245 all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(JPEGLIB) $(PNGLIB) $(XPMLIB)
247 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
248 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
251 $(ZLIBLIB): $(ZLIBOBJS)
252 ar $(AROPTIONS) $@ $(ZLIBOBJS)
255 $(PNGLIB): $(PNGOBJS)
256 ar $(AROPTIONS) $@ $(PNGOBJS)
259 $(JPEGLIB): $(JPEGOBJS)
260 ar $(AROPTIONS) $@ $(JPEGOBJS)
263 $(XPMLIB): $(XPMOBJS)
264 ar $(AROPTIONS) $@ $(XPMOBJS)
267 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
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
272 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
273 $(COPY) ..\\common\\dosyacc.c ..\\common\\y_tab.c
275 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
276 $(COPY) ..\\common\\doslex.c ..\\common\\lex_yy.c
278 # Replace lex with flex if you run into compilation
279 # problems with lex_yy.c. See also note about LEX_SCANNER
281 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
282 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
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
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
295 # Replace yacc with bison if you run into compilation
296 # problems with y_tab.c.
298 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
299 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
301 # If you use e.g. gcc on Unix, uncomment these lines
302 # and comment out the above.
304 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
305 # $(YACC) $(COMMDIR)/parser.y
306 # mv y.tab.c $(COMMDIR)/y_tab.c
313 -$(RM) ../common/y_tab.c
314 -$(RM) ../common/lex_yy.c
316 -$(RM) ../common/*.bak
317 -$(RM) ../generic/*.o
318 -$(RM) ../generic/*.bak
328 -$(RM) ../../lib/libwx.a