]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/g95.t
Typos.
[wxWidgets.git] / distrib / msw / tmake / g95.t
CommitLineData
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#!#############################################################################
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
2662e49e 19 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
f2071dda
VZ
20 next unless $file =~ /^dirdlgg\./;
21 }
22
23 $file =~ s/cp?p?$/\$(OBJSUFF)/;
2662e49e 24 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
f2071dda
VZ
25 }
26
27 foreach $file (sort keys %wxCommon) {
2662e49e 28 next if $wxCommon{$file} =~ /\b(16)\b/;
f2071dda
VZ
29
30 #! needs extra files (sql*.h) so not compiled by default.
31 next if $file =~ /^odbc\./;
32
33 $file =~ s/cp?p?$/\$(OBJSUFF)/;
2662e49e 34 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
f2071dda
VZ
35 }
36
37 foreach $file (sort keys %wxMSW) {
38 #! Mingw32 doesn't have the OLE headers and has some troubles with
39 #! socket code
2662e49e
RR
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\./;
f2071dda
VZ
44
45 $file =~ s/cp?p?$/\$(OBJSUFF)/;
a3015c54 46 $project{"WXMSWOBJS"} .= '$(MSWDIR)/' . $file . " "
f2071dda
VZ
47 }
48#$}
f2071dda
VZ
49# This file was automatically generated by tmake at #$ Now()
50# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
51
52#
c45a644e
RR
53# File: makefile.g95
54# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
f2071dda 55# Created: 1993
c45a644e
RR
56# Updated: 1999
57# Copyright:(c) 1993, AIAI, University of Edinburgh,
58# Copyright:(c) 1999, Vadim Zeitlin
59# Copyright:(c) 1999, Robert Roebling
f2071dda
VZ
60#
61# Makefile for libwx.a
62
63# Replace this with your own path if necessary
64WXDIR = ../..
65
c45a644e 66# All common compiler flags and options are now in
f2071dda
VZ
67# this central makefile.
68include $(WXDIR)/src/makeg95.env
69
f2071dda
VZ
70# Subordinate library possibilities
71
72EXTRAOBJS=
73
c45a644e
RR
74GENDIR = $(WXDIR)/src/generic
75COMMDIR = $(WXDIR)/src/common
a3015c54 76HTMLDIR = $(WXDIR)/src/html
c45a644e
RR
77XPMDIR = $(WXDIR)/src/xpm
78PNGDIR = $(WXDIR)/src/png
79JPEGDIR = $(WXDIR)/src/jpeg
80ZLIBDIR = $(WXDIR)/src/zlib
81OLEDIR = $(WXDIR)/src/msw/ole
82MSWDIR = $(WXDIR)/src/msw
f2071dda
VZ
83
84DOCDIR = $(WXDIR)\docs
85
c45a644e
RR
86GENERICOBJS = \
87 #$ ExpandList("WXGENERICOBJS");
f2071dda 88
c45a644e 89COMMONOBJS = \
f2071dda
VZ
90 $(COMMDIR)/y_tab.$(OBJSUFF) \
91 #$ ExpandList("WXCOMMONOBJS");
92
a3015c54
RR
93HTMLOBJS = \
94 #$ ExpandList("WXHTMLOBJS");
95
c45a644e
RR
96MSWOBJS = \
97 #$ ExpandList("WXMSWOBJS");
98
99ZLIBOBJS = \
100 $(ZLIBDIR)/adler32.$(OBJSUFF) \
101 $(ZLIBDIR)/compress.$(OBJSUFF) \
102 $(ZLIBDIR)/crc32.$(OBJSUFF) \
103 $(ZLIBDIR)/gzio.$(OBJSUFF) \
104 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
105 $(ZLIBDIR)/deflate.$(OBJSUFF) \
106 $(ZLIBDIR)/trees.$(OBJSUFF) \
107 $(ZLIBDIR)/zutil.$(OBJSUFF) \
108 $(ZLIBDIR)/inflate.$(OBJSUFF) \
109 $(ZLIBDIR)/infblock.$(OBJSUFF) \
110 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
111 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
112 $(ZLIBDIR)/infutil.$(OBJSUFF) \
113 $(ZLIBDIR)/inffast.$(OBJSUFF)
114
115PNGOBJS = \
116 $(PNGDIR)/png.$(OBJSUFF) \
117 $(PNGDIR)/pngread.$(OBJSUFF) \
118 $(PNGDIR)/pngrtran.$(OBJSUFF) \
119 $(PNGDIR)/pngrutil.$(OBJSUFF) \
120 $(PNGDIR)/pngpread.$(OBJSUFF) \
121 $(PNGDIR)/pngtrans.$(OBJSUFF) \
122 $(PNGDIR)/pngwrite.$(OBJSUFF) \
123 $(PNGDIR)/pngwtran.$(OBJSUFF) \
124 $(PNGDIR)/pngwutil.$(OBJSUFF) \
125 $(PNGDIR)/pngerror.$(OBJSUFF) \
126 $(PNGDIR)/pngmem.$(OBJSUFF) \
127 $(PNGDIR)/pngwio.$(OBJSUFF) \
128 $(PNGDIR)/pngrio.$(OBJSUFF) \
129 $(PNGDIR)/pngget.$(OBJSUFF) \
130 $(PNGDIR)/pngset.$(OBJSUFF)
131
132
133JPEGOBJS = \
134 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
135 $(JPEGDIR)/jutils.$(OBJSUFF) \
136 $(JPEGDIR)/jerror.$(OBJSUFF) \
137 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
138 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
139 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
140 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
141 $(JPEGDIR)/jctrans.$(OBJSUFF) \
142 $(JPEGDIR)/jcparam.$(OBJSUFF) \
143 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
144 $(JPEGDIR)/jcinit.$(OBJSUFF) \
145 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
146 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
147 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
148 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
149 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
150 $(JPEGDIR)/jccolor.$(OBJSUFF) \
151 $(JPEGDIR)/jcsample.$(OBJSUFF) \
152 $(JPEGDIR)/jchuff.$(OBJSUFF) \
153 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
154 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
155 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
156 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
157 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
158 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
159 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
160 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
161 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
162 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
163 $(JPEGDIR)/jdinput.$(OBJSUFF) \
164 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
165 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
166 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
167 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
168 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
169 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
170 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
171 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
172 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
173 $(JPEGDIR)/jidctint.$(OBJSUFF) \
174 $(JPEGDIR)/jidctred.$(OBJSUFF) \
175 $(JPEGDIR)/jdsample.$(OBJSUFF) \
176 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
177 $(JPEGDIR)/jquant1.$(OBJSUFF) \
178 $(JPEGDIR)/jquant2.$(OBJSUFF) \
179 $(JPEGDIR)/jdmerge.$(OBJSUFF)
f2071dda
VZ
180
181XPMOBJECTS = $(XPMDIR)/crbuffri.o\
182 $(XPMDIR)/crdatfri.o\
183 $(XPMDIR)/create.o $(XPMDIR)/crifrbuf.o\
184 $(XPMDIR)/crifrdat.o\
185 $(XPMDIR)/data.o\
186 $(XPMDIR)/hashtab.o $(XPMDIR)/misc.o\
187 $(XPMDIR)/parse.o $(XPMDIR)/rdftodat.o\
188 $(XPMDIR)/rdftoi.o\
189 $(XPMDIR)/rgb.o $(XPMDIR)/scan.o\
190 $(XPMDIR)/simx.o $(XPMDIR)/wrffrdat.o\
191 $(XPMDIR)/wrffrp.o $(XPMDIR)/wrffri.o
192
a3015c54 193OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
c45a644e 194 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
f2071dda
VZ
195
196all: $(OBJECTS) $(WXLIB)
197
f2071dda
VZ
198$(WXLIB): $(OBJECTS) $(EXTRAOBJS)
199 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
200 $(RANLIB) $@
201
202$(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(WXINC)/wx/setup.h
203
204$(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
6a570331
RR
205 $(CCLEX) -c $(CPPFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
206
207$(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
208 copy ..\common\dosyacc.c ..\common\y_tab.c
209
210$(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
211 copy ..\common\doslex.c ..\common\lex_yy.c
f2071dda
VZ
212
213# Replace lex with flex if you run into compilation
214# problems with lex_yy.c. See also note about LEX_SCANNER
215# above.
6a570331
RR
216# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
217# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
218#
f2071dda
VZ
219# Try one of these if the above line doesn't work.
220# Alternative syntax (1)
221# $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
222# Alternative syntax (2)
223# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
6a570331 224#
f2071dda
VZ
225# sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
226# sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
227# sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
228# rm -f lex.yy.c
6a570331 229#
f2071dda
VZ
230# Replace yacc with bison if you run into compilation
231# problems with y_tab.c.
6a570331
RR
232#
233# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
234# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
235#
f2071dda
VZ
236# If you use e.g. gcc on Unix, uncomment these lines
237# and comment out the above.
6a570331 238#
f2071dda
VZ
239# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
240# $(YACC) $(COMMDIR)/parser.y
241# mv y.tab.c $(COMMDIR)/y_tab.c
242
f2071dda 243clean:
6a570331
RR
244 -erase *.o
245 -erase core
246 -erase ..\common\y_tab.c
247 -erase ..\common\lex_yy.c
248 -erase ..\common\*.o
249 -erase ..\generic\*.o
a3015c54 250 -erase ..\html\*.o
c45a644e
RR
251 -erase ..\png\*.o
252 -erase ..\zlib\*.o
253 -erase ..\jpeg\*.o
a1925afc 254 -erase ..\..\lib\libwx.a
f2071dda
VZ
255
256cleanall: clean