]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/g95.t
attempt to fix makefile for make -j
[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 47 }
8a4df159
RR
48
49 foreach $file (sort keys %wxHTML) {
50 $file =~ s/cp?p?$/\$(OBJSUFF)/;
51 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
52 }
53
f2071dda 54#$}
f2071dda
VZ
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#
c45a644e
RR
59# File: makefile.g95
60# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
f2071dda 61# Created: 1993
c45a644e
RR
62# Updated: 1999
63# Copyright:(c) 1993, AIAI, University of Edinburgh,
64# Copyright:(c) 1999, Vadim Zeitlin
65# Copyright:(c) 1999, Robert Roebling
f2071dda
VZ
66#
67# Makefile for libwx.a
68
69# Replace this with your own path if necessary
70WXDIR = ../..
71
c45a644e 72# All common compiler flags and options are now in
f2071dda
VZ
73# this central makefile.
74include $(WXDIR)/src/makeg95.env
75
f2071dda
VZ
76# Subordinate library possibilities
77
78EXTRAOBJS=
79
c45a644e
RR
80GENDIR = $(WXDIR)/src/generic
81COMMDIR = $(WXDIR)/src/common
a3015c54 82HTMLDIR = $(WXDIR)/src/html
c45a644e
RR
83XPMDIR = $(WXDIR)/src/xpm
84PNGDIR = $(WXDIR)/src/png
85JPEGDIR = $(WXDIR)/src/jpeg
86ZLIBDIR = $(WXDIR)/src/zlib
87OLEDIR = $(WXDIR)/src/msw/ole
88MSWDIR = $(WXDIR)/src/msw
f2071dda
VZ
89
90DOCDIR = $(WXDIR)\docs
91
c45a644e
RR
92GENERICOBJS = \
93 #$ ExpandList("WXGENERICOBJS");
f2071dda 94
c45a644e 95COMMONOBJS = \
f2071dda
VZ
96 $(COMMDIR)/y_tab.$(OBJSUFF) \
97 #$ ExpandList("WXCOMMONOBJS");
98
a3015c54
RR
99HTMLOBJS = \
100 #$ ExpandList("WXHTMLOBJS");
101
c45a644e
RR
102MSWOBJS = \
103 #$ ExpandList("WXMSWOBJS");
104
105ZLIBOBJS = \
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
121PNGOBJS = \
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
139JPEGOBJS = \
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)
f2071dda
VZ
186
187XPMOBJECTS = $(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
a3015c54 199OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) \
c45a644e 200 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) # $(XPMOBJECTS)
f2071dda
VZ
201
202all: $(OBJECTS) $(WXLIB)
203
f2071dda
VZ
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
6a570331
RR
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
f2071dda
VZ
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.
6a570331
RR
222# $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
223# $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
224#
f2071dda
VZ
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
6a570331 230#
f2071dda
VZ
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
6a570331 235#
f2071dda
VZ
236# Replace yacc with bison if you run into compilation
237# problems with y_tab.c.
6a570331
RR
238#
239# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
240# $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
241#
f2071dda
VZ
242# If you use e.g. gcc on Unix, uncomment these lines
243# and comment out the above.
6a570331 244#
f2071dda
VZ
245# $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
246# $(YACC) $(COMMDIR)/parser.y
247# mv y.tab.c $(COMMDIR)/y_tab.c
248
f2071dda 249clean:
6a570331 250 -erase *.o
2899e223 251 -erase *.bak
6a570331
RR
252 -erase core
253 -erase ..\common\y_tab.c
254 -erase ..\common\lex_yy.c
255 -erase ..\common\*.o
2899e223 256 -erase ..\common\*.bak
6a570331 257 -erase ..\generic\*.o
2899e223 258 -erase ..\generic\*.bak
a3015c54 259 -erase ..\html\*.o
c45a644e 260 -erase ..\png\*.o
2899e223 261 -erase ..\png\*.bak
c45a644e 262 -erase ..\zlib\*.o
2899e223 263 -erase ..\zlib\*.bak
c45a644e 264 -erase ..\jpeg\*.o
a1925afc 265 -erase ..\..\lib\libwx.a
f2071dda
VZ
266
267cleanall: clean