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 #!#############################################################################
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/ ) {
20 next unless $file =~ /^dirdlgg\./;
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 #! needs extra files (sql*.h) so not compiled by default.
31 next if $file =~ /^odbc\./;
33 $file =~ s/cp?p?$/\$(OBJSUFF)/;
34 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
37 foreach $file (sort keys %wxMSW) {
38 #! Mingw32 doesn't have the OLE headers and has some troubles with
40 next if $wxMSW{$file} =~ /\b(O|16)\b/;
42 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
43 next if $file =~ /^dirdlg\./;
45 $file =~ s/cp?p?$/\$(OBJSUFF)/;
46 $project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " "
49 foreach $file (sort keys %wxHTML) {
50 $file =~ s/cp?p?$/\$(OBJSUFF)/;
51 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
55 # This file was automatically generated by tmake at #$ Now()
56 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
60 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
63 # Copyright:(c) 1993, AIAI, University of Edinburgh,
64 # Copyright:(c) 1999, Vadim Zeitlin
65 # Copyright:(c) 1999, Robert Roebling
67 # Makefile for libwx.a
69 # Replace this with your own path if necessary
72 # All common compiler flags and options are now in
73 # this central makefile.
74 include $(WXDIR)/src/makeg95.env
76 # Subordinate library possibilities
80 GENDIR = $(WXDIR)/src/generic
81 COMMDIR = $(WXDIR)/src/common
82 HTMLDIR = $(WXDIR)/src/html
83 XPMDIR = $(WXDIR)/src/xpm
84 PNGDIR = $(WXDIR)/src/png
85 JPEGDIR = $(WXDIR)/src/jpeg
86 ZLIBDIR = $(WXDIR)/src/zlib
87 OLEDIR = $(WXDIR)/src/msw/ole
88 MSWDIR = $(WXDIR)/src/msw
90 DOCDIR = $(WXDIR)\docs
93 #$ ExpandList("WXGENERICOBJS");
96 $(COMMDIR)/y_tab.$(OBJSUFF) \
97 #$ ExpandList("WXCOMMONOBJS");
100 #$ ExpandList("WXHTMLOBJS");
103 #$ ExpandList("WXMSWOBJS");
106 $(ZLIBDIR)/adler32.$(OBJSUFF) \
107 $(ZLIBDIR)/compress.$(OBJSUFF) \
108 $(ZLIBDIR)/crc32.$(OBJSUFF) \
109 $(ZLIBDIR)/gzio.$(OBJSUFF) \
110 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
111 $(ZLIBDIR)/deflate.$(OBJSUFF) \
112 $(ZLIBDIR)/trees.$(OBJSUFF) \
113 $(ZLIBDIR)/zutil.$(OBJSUFF) \
114 $(ZLIBDIR)/inflate.$(OBJSUFF) \
115 $(ZLIBDIR)/infblock.$(OBJSUFF) \
116 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
117 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
118 $(ZLIBDIR)/infutil.$(OBJSUFF) \
119 $(ZLIBDIR)/inffast.$(OBJSUFF)
122 $(PNGDIR)/png.$(OBJSUFF) \
123 $(PNGDIR)/pngread.$(OBJSUFF) \
124 $(PNGDIR)/pngrtran.$(OBJSUFF) \
125 $(PNGDIR)/pngrutil.$(OBJSUFF) \
126 $(PNGDIR)/pngpread.$(OBJSUFF) \
127 $(PNGDIR)/pngtrans.$(OBJSUFF) \
128 $(PNGDIR)/pngwrite.$(OBJSUFF) \
129 $(PNGDIR)/pngwtran.$(OBJSUFF) \
130 $(PNGDIR)/pngwutil.$(OBJSUFF) \
131 $(PNGDIR)/pngerror.$(OBJSUFF) \
132 $(PNGDIR)/pngmem.$(OBJSUFF) \
133 $(PNGDIR)/pngwio.$(OBJSUFF) \
134 $(PNGDIR)/pngrio.$(OBJSUFF) \
135 $(PNGDIR)/pngget.$(OBJSUFF) \
136 $(PNGDIR)/pngset.$(OBJSUFF)
140 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
141 $(JPEGDIR)/jutils.$(OBJSUFF) \
142 $(JPEGDIR)/jerror.$(OBJSUFF) \
143 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
144 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
145 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
146 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
147 $(JPEGDIR)/jctrans.$(OBJSUFF) \
148 $(JPEGDIR)/jcparam.$(OBJSUFF) \
149 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
150 $(JPEGDIR)/jcinit.$(OBJSUFF) \
151 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
152 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
153 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
154 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
155 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
156 $(JPEGDIR)/jccolor.$(OBJSUFF) \
157 $(JPEGDIR)/jcsample.$(OBJSUFF) \
158 $(JPEGDIR)/jchuff.$(OBJSUFF) \
159 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
160 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
161 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
162 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
163 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
164 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
165 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
166 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
167 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
168 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
169 $(JPEGDIR)/jdinput.$(OBJSUFF) \
170 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
171 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
172 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
173 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
174 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
175 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
176 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
177 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
178 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
179 $(JPEGDIR)/jidctint.$(OBJSUFF) \
180 $(JPEGDIR)/jidctred.$(OBJSUFF) \
181 $(JPEGDIR)/jdsample.$(OBJSUFF) \
182 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
183 $(JPEGDIR)/jquant1.$(OBJSUFF) \
184 $(JPEGDIR)/jquant2.$(OBJSUFF) \
185 $(JPEGDIR)/jdmerge.$(OBJSUFF)
187 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
188 $(XPMDIR)/crdatfri.o\
189 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
190 $(XPMDIR)/crifrdat.o\
192 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
193 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
195 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
196 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
197 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
199 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
200 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
202 all: $(OBJECTS) $(WXLIB)
204 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
205 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
208 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
210 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
211 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
213 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
214 copy ..\common\dosyacc.c ..\common\y_tab.c
216 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
217 copy ..\common\doslex.c ..\common\lex_yy.c
219 # Replace lex with flex if you run into compilation
220 # problems with lex_yy.c. See also note about LEX_SCANNER
222 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
223 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
225 # Try one of these if the above line doesn't work.
226 # Alternative syntax (1)
227 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
228 # Alternative syntax (2)
229 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
231 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
232 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
233 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
236 # Replace yacc with bison if you run into compilation
237 # problems with y_tab.c.
239 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
240 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
242 # If you use e.g. gcc on Unix, uncomment these lines
243 # and comment out the above.
245 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
246 # $(YACC) $(COMMDIR)/parser.y
247 # mv y.tab.c $(COMMDIR)/y_tab.c
253 -erase ..\common\y_tab.c
254 -erase ..\common\lex_yy.c
256 -erase ..\common\*.bak
257 -erase ..\generic\*.o
258 -erase ..\generic\*.bak
265 -erase ..\..\lib\libwx.a