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