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 PNGLIB = $(WXDIR)/lib/libpng.a
107 ZLIBLIB = $(WXDIR)/lib/libzlib.a
108 JPEGLIB = $(WXDIR)/lib/libjpeg.a
110 DOCDIR = $(WXDIR)\docs
112 # Only use the WIN32 wxDirDialog if we have a recent
115 ifeq ($(MINGW32VERSION),2.95)
116 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
118 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
121 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
125 #$ ExpandList("WXGENERICOBJS");
128 $(COMMDIR)/y_tab.$(OBJSUFF) \
129 #$ ExpandList("WXCOMMONOBJS");
132 #$ ExpandList("WXHTMLOBJS");
135 #$ ExpandList("WXMSWOBJS");
138 #$ ExpandList("ADVANCEDOBJS");
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)
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)
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)
222 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
223 $(XPMDIR)/crdatfri.o\
224 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
225 $(XPMDIR)/crifrdat.o\
227 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
228 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
230 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
231 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
232 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
235 ifeq ($(MINGW32VERSION),2.95)
236 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS) # $(XPMOBJECTS)
238 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
241 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) # $(XPMOBJECTS)
244 all: $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(JPEGLIB) $(PNGLIB)
246 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
247 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
250 $(ZLIBLIB): $(ZLIBOBJS)
251 ar $(AROPTIONS) $@ $(ZLIBOBJS)
254 $(PNGLIB): $(PNGOBJS)
255 ar $(AROPTIONS) $@ $(PNGOBJS)
258 $(JPEGLIB): $(JPEGOBJS)
259 ar $(AROPTIONS) $@ $(JPEGOBJS)
262 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
264 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
265 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
267 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
268 $(COPY) ..\\common\\dosyacc.c ..\\common\\y_tab.c
270 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
271 $(COPY) ..\\common\\doslex.c ..\\common\\lex_yy.c
273 # Replace lex with flex if you run into compilation
274 # problems with lex_yy.c. See also note about LEX_SCANNER
276 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
277 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
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
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
290 # Replace yacc with bison if you run into compilation
291 # problems with y_tab.c.
293 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
294 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
296 # If you use e.g. gcc on Unix, uncomment these lines
297 # and comment out the above.
299 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
300 # $(YACC) $(COMMDIR)/parser.y
301 # mv y.tab.c $(COMMDIR)/y_tab.c
308 -$(RM) ../common/y_tab.c
309 -$(RM) ../common/lex_yy.c
311 -$(RM) ../common/*.bak
312 -$(RM) ../generic/*.o
313 -$(RM) ../generic/*.bak
320 -$(RM) ../../lib/libwx.a