]>
Commit | Line | Data |
---|---|---|
f2071dda VZ |
1 | #!############################################################################# |
2 | #! File: g95.t | |
3 | #! Purpose: tmake template file from which makefile.g95 is generated by running | |
4 | #! tmake -t g95 wxwin.pro -o makefile.g95 | |
c45a644e | 5 | #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart |
f2071dda VZ |
6 | #! Created: 14.07.99 |
7 | #! Version: $Id$ | |
8 | #!############################################################################# | |
f2071dda VZ |
9 | #${ |
10 | #! include the code which parses filelist.txt file and initializes | |
11 | #! %wxCommon, %wxGeneric and %wxMSW hashes. | |
12 | IncludeTemplate("filelist.t"); | |
13 | ||
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 | |
2662e49e | 18 | if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) { |
f2071dda VZ |
19 | next unless $file =~ /^dirdlgg\./; |
20 | } | |
21 | ||
22 | $file =~ s/cp?p?$/\$(OBJSUFF)/; | |
2662e49e | 23 | $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " " |
f2071dda VZ |
24 | } |
25 | ||
26 | foreach $file (sort keys %wxCommon) { | |
2662e49e | 27 | next if $wxCommon{$file} =~ /\b(16)\b/; |
f2071dda VZ |
28 | |
29 | #! needs extra files (sql*.h) so not compiled by default. | |
1a7f3062 | 30 | #! next if $file =~ /^odbc\./; |
f2071dda | 31 | |
1a7f3062 JS |
32 | if ( $file =~ /^odbc\./ ) |
33 | { | |
34 | $file =~ s/cp?p?$/\$(OBJSUFF)/; | |
35 | $project{"ADVANCEDOBJS"} .= '$(COMMDIR)/' . $file . " " | |
36 | } | |
37 | else | |
38 | { | |
39 | $file =~ s/cp?p?$/\$(OBJSUFF)/; | |
40 | $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " " | |
41 | } | |
f2071dda VZ |
42 | } |
43 | ||
44 | foreach $file (sort keys %wxMSW) { | |
2662e49e RR |
45 | #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations, |
46 | next if $file =~ /^dirdlg\./; | |
f2071dda | 47 | |
1a7f3062 JS |
48 | next if $wxMSW{$file} =~ /\b(16)\b/; |
49 | ||
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/ ) | |
53 | { | |
54 | $file =~ s/cp?p?$/\$(OBJSUFF)/; | |
55 | $project{"ADVANCEDOBJS"} .= '$(MSWDIR)/ole/' . $file . " " | |
56 | } | |
57 | else | |
58 | { | |
59 | $file =~ s/cp?p?$/\$(OBJSUFF)/; | |
60 | $project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " " | |
61 | } | |
62 | ||
f2071dda | 63 | } |
8a4df159 RR |
64 | |
65 | foreach $file (sort keys %wxHTML) { | |
66 | $file =~ s/cp?p?$/\$(OBJSUFF)/; | |
67 | $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " " | |
68 | } | |
69 | ||
f2071dda | 70 | #$} |
f2071dda VZ |
71 | # This file was automatically generated by tmake at #$ Now() |
72 | # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T! | |
73 | ||
74 | # | |
c45a644e RR |
75 | # File: makefile.g95 |
76 | # Author: Julian Smart, Robert Roebling, Vadim Zeitlin | |
f2071dda | 77 | # Created: 1993 |
c45a644e RR |
78 | # Updated: 1999 |
79 | # Copyright:(c) 1993, AIAI, University of Edinburgh, | |
80 | # Copyright:(c) 1999, Vadim Zeitlin | |
81 | # Copyright:(c) 1999, Robert Roebling | |
f2071dda VZ |
82 | # |
83 | # Makefile for libwx.a | |
84 | ||
85 | # Replace this with your own path if necessary | |
86 | WXDIR = ../.. | |
87 | ||
c45a644e | 88 | # All common compiler flags and options are now in |
f2071dda VZ |
89 | # this central makefile. |
90 | include $(WXDIR)/src/makeg95.env | |
91 | ||
f2071dda VZ |
92 | # Subordinate library possibilities |
93 | ||
94 | EXTRAOBJS= | |
95 | ||
c45a644e RR |
96 | GENDIR = $(WXDIR)/src/generic |
97 | COMMDIR = $(WXDIR)/src/common | |
a3015c54 | 98 | HTMLDIR = $(WXDIR)/src/html |
c45a644e RR |
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 | |
f2071dda VZ |
105 | |
106 | DOCDIR = $(WXDIR)\docs | |
107 | ||
c45a644e RR |
108 | GENERICOBJS = \ |
109 | #$ ExpandList("WXGENERICOBJS"); | |
f2071dda | 110 | |
c45a644e | 111 | COMMONOBJS = \ |
f2071dda VZ |
112 | $(COMMDIR)/y_tab.$(OBJSUFF) \ |
113 | #$ ExpandList("WXCOMMONOBJS"); | |
114 | ||
a3015c54 RR |
115 | HTMLOBJS = \ |
116 | #$ ExpandList("WXHTMLOBJS"); | |
117 | ||
c45a644e RR |
118 | MSWOBJS = \ |
119 | #$ ExpandList("WXMSWOBJS"); | |
120 | ||
1a7f3062 JS |
121 | ADVANCEDOBJS = \ |
122 | #$ ExpandList("ADVANCEDOBJS"); | |
123 | ||
c45a644e RR |
124 | ZLIBOBJS = \ |
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) | |
139 | ||
140 | PNGOBJS = \ | |
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) | |
156 | ||
157 | ||
158 | JPEGOBJS = \ | |
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) | |
f2071dda VZ |
205 | |
206 | XPMOBJECTS = $(XPMDIR)/crbuffri.o\ | |
207 | $(XPMDIR)/crdatfri.o\ | |
208 | $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\ | |
209 | $(XPMDIR)/crifrdat.o\ | |
210 | $(XPMDIR)/data.o\ | |
211 | $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\ | |
212 | $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\ | |
213 | $(XPMDIR)/rdftoi.o\ | |
214 | $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\ | |
215 | $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\ | |
216 | $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o | |
217 | ||
a3015c54 | 218 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \ |
1a7f3062 JS |
219 | $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(ADVANCEDOBJS) # $(XPMOBJECTS) |
220 | ||
221 | ifeq ($(MINGW32),1) | |
222 | ifeq ($(MINGW32VERSION),2.95) | |
223 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \ | |
224 | $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) $(ADVANCEDOBJS) # $(XPMOBJECTS) | |
225 | else | |
226 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \ | |
227 | $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS) | |
228 | endif | |
229 | else | |
230 | OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \ | |
c45a644e | 231 | $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS) |
1a7f3062 | 232 | endif |
f2071dda VZ |
233 | |
234 | all: $(OBJECTS) $(WXLIB) | |
235 | ||
f2071dda VZ |
236 | $(WXLIB): $(OBJECTS) $(EXTRAOBJS) |
237 | ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS) | |
238 | $(RANLIB) $@ | |
239 | ||
240 | $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h | |
241 | ||
242 | $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c | |
6a570331 RR |
243 | $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c |
244 | ||
245 | $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c | |
246 | copy ..\common\dosyacc.c ..\common\y_tab.c | |
247 | ||
248 | $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c | |
249 | copy ..\common\doslex.c ..\common\lex_yy.c | |
f2071dda VZ |
250 | |
251 | # Replace lex with flex if you run into compilation | |
252 | # problems with lex_yy.c. See also note about LEX_SCANNER | |
253 | # above. | |
6a570331 RR |
254 | # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l |
255 | # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l | |
256 | # | |
f2071dda VZ |
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 | |
6a570331 | 262 | # |
f2071dda VZ |
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 | |
266 | # rm -f lex.yy.c | |
6a570331 | 267 | # |
f2071dda VZ |
268 | # Replace yacc with bison if you run into compilation |
269 | # problems with y_tab.c. | |
6a570331 RR |
270 | # |
271 | # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y | |
272 | # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y | |
273 | # | |
f2071dda VZ |
274 | # If you use e.g. gcc on Unix, uncomment these lines |
275 | # and comment out the above. | |
6a570331 | 276 | # |
f2071dda VZ |
277 | # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y |
278 | # $(YACC) $(COMMDIR)/parser.y | |
279 | # mv y.tab.c $(COMMDIR)/y_tab.c | |
280 | ||
f2071dda | 281 | clean: |
1a7f3062 JS |
282 | rm -f *.o |
283 | rm -f *.bak | |
284 | rm -f core | |
285 | rm -f ..\common\y_tab.c | |
286 | rm -f ..\common\lex_yy.c | |
287 | rm -f ..\common\*.o | |
288 | rm -f ..\common\*.bak | |
289 | rm -f ..\generic\*.o | |
290 | rm -f ..\generic\*.bak | |
291 | rm -f ..\html\*.o | |
292 | rm -f ..\png\*.o | |
293 | rm -f ..\png\*.bak | |
294 | rm -f ..\zlib\*.o | |
295 | rm -f ..\zlib\*.bak | |
296 | rm -f ..\jpeg\*.o | |
297 | rm -f ..\..\lib\libwx.a | |
f2071dda VZ |
298 | |
299 | cleanall: clean |