]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/g95.t
fixed (didn't work at all)
[wxWidgets.git] / distrib / msw / tmake / g95.t
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
5 #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
6 #! Created: 14.07.99
7 #! Version: $Id$
8 #!#############################################################################
9
10 #${
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric and %wxMSW hashes.
13 IncludeTemplate("filelist.t");
14
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\./;
21 }
22
23 $file =~ s/cp?p?$/\$(OBJSUFF)/;
24 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
25 }
26
27 foreach $file (sort keys %wxCommon) {
28 next if $wxCommon{$file} =~ /\b(16)\b/;
29
30 #! needs extra files (sql*.h) so not compiled by default.
31 next if $file =~ /^odbc\./;
32
33 $file =~ s/cp?p?$/\$(OBJSUFF)/;
34 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
35 }
36
37 foreach $file (sort keys %wxMSW) {
38 #! Mingw32 doesn't have the OLE headers and has some troubles with
39 #! socket code
40 next if $wxMSW{$file} =~ /\b(O|16)\b/;
41
42 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
43 next if $file =~ /^dirdlg\./;
44
45 $file =~ s/cp?p?$/\$(OBJSUFF)/;
46 $project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " "
47 }
48
49 foreach $file (sort keys %wxHTML) {
50 $file =~ s/cp?p?$/\$(OBJSUFF)/;
51 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
52 }
53
54 #$}
55 # This file was automatically generated by tmake at #$ Now()
56 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
57
58 #
59 # File: makefile.g95
60 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
61 # Created: 1993
62 # Updated: 1999
63 # Copyright:(c) 1993, AIAI, University of Edinburgh,
64 # Copyright:(c) 1999, Vadim Zeitlin
65 # Copyright:(c) 1999, Robert Roebling
66 #
67 # Makefile for libwx.a
68
69 # Replace this with your own path if necessary
70 WXDIR = ../..
71
72 # All common compiler flags and options are now in
73 # this central makefile.
74 include $(WXDIR)/src/makeg95.env
75
76 # Subordinate library possibilities
77
78 EXTRAOBJS=
79
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
89
90 DOCDIR = $(WXDIR)\docs
91
92 GENERICOBJS = \
93 #$ ExpandList("WXGENERICOBJS");
94
95 COMMONOBJS = \
96 $(COMMDIR)/y_tab.$(OBJSUFF) \
97 #$ ExpandList("WXCOMMONOBJS");
98
99 HTMLOBJS = \
100 #$ ExpandList("WXHTMLOBJS");
101
102 MSWOBJS = \
103 #$ ExpandList("WXMSWOBJS");
104
105 ZLIBOBJS = \
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)
120
121 PNGOBJS = \
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)
137
138
139 JPEGOBJS = \
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)
186
187 XPMOBJECTS = $(XPMDIR)/crbuffri.o\
188 $(XPMDIR)/crdatfri.o\
189 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
190 $(XPMDIR)/crifrdat.o\
191 $(XPMDIR)/data.o\
192 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
193 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
194 $(XPMDIR)/rdftoi.o\
195 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
196 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
197 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
198
199 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
200 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
201
202 all: $(OBJECTS) $(WXLIB)
203
204 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
205 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
206 $(RANLIB) $@
207
208 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
209
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
212
213 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
214 copy ..\common\dosyacc.c ..\common\y_tab.c
215
216 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
217 copy ..\common\doslex.c ..\common\lex_yy.c
218
219 # Replace lex with flex if you run into compilation
220 # problems with lex_yy.c. See also note about LEX_SCANNER
221 # above.
222 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
223 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
224 #
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
230 #
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
234 # rm -f lex.yy.c
235 #
236 # Replace yacc with bison if you run into compilation
237 # problems with y_tab.c.
238 #
239 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
240 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
241 #
242 # If you use e.g. gcc on Unix, uncomment these lines
243 # and comment out the above.
244 #
245 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
246 # $(YACC) $(COMMDIR)/parser.y
247 # mv y.tab.c $(COMMDIR)/y_tab.c
248
249 clean:
250 -erase *.o
251 -erase *.bak
252 -erase core
253 -erase ..\common\y_tab.c
254 -erase ..\common\lex_yy.c
255 -erase ..\common\*.o
256 -erase ..\common\*.bak
257 -erase ..\generic\*.o
258 -erase ..\generic\*.bak
259 -erase ..\html\*.o
260 -erase ..\png\*.o
261 -erase ..\png\*.bak
262 -erase ..\zlib\*.o
263 -erase ..\zlib\*.bak
264 -erase ..\jpeg\*.o
265 -erase ..\..\lib\libwx.a
266
267 cleanall: clean