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