1 #!#############################################################################
3 #! Purpose: tmake template file from which makefile.gnu is generated by running
4 #! tmake -t gtk_gnu wxwin.pro -o makefile.gnu
5 #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
8 #!#############################################################################
11 #! include the code which parses filelist.txt file and initializes
12 #! %wxCommon, %wxGeneric, %wxHtml, wxUnix and %wxGTK hashes.
13 IncludeTemplate("filelist.t");
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
17 next if $wxGeneric{$file} =~ /\bR\b/;
19 $file =~ s/cp?p?$/\$(OBJSUFF)/;
20 $project{"WXGENERICOBJS"} .= '$(GENDIR)/' . $file . " "
23 foreach $file (sort keys %wxCommon) {
24 next if $wxCommon{$file} =~ /\bR\b/;
26 $file =~ s/cp?p?$/\$(OBJSUFF)/;
27 $project{"WXCOMMONOBJS"} .= '$(COMMDIR)/' . $file . " "
30 foreach $file (sort keys %wxGTK) {
31 $file =~ s/cp?p?$/\$(OBJSUFF)/;
32 $project{"WXGTKOBJS"} .= '$(GTKDIR)/' . $file . " "
35 foreach $file (sort keys %wxHTML) {
36 $file =~ s/cp?p?$/\$(OBJSUFF)/;
37 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
40 foreach $file (sort keys %wxUNIX) {
41 $file =~ s/cp?p?$/\$(OBJSUFF)/;
42 $project{"WXUNIXOBJS"} .= '$(UNIXDIR)/' . $file . " "
45 # This file was automatically generated by tmake at #$ Now()
46 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE GNU.T!
50 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
53 # Copyright:(c) 1993, AIAI, University of Edinburgh,
54 # Copyright:(c) 1999, Vadim Zeitlin
55 # Copyright:(c) 1999, Robert Roebling
57 # Makefile for libwx_gtk.a
62 # Replace this with your own path if necessary
71 # Compiler for lex/yacc .c programs
76 # Note: if using bison, use -y option for yacc compatibility
82 # Debug/trace mode. 1 or more for debugging.
86 CPPOPTIONS = -D__WXGTK__ -D__WXDEBUG__ -D_REENTRANT -fno-rtti -fno-exceptions
87 COPTIONS = -D__WXGTK__ -D__WXDEBUG__ -D_REENTRANT
90 OPTIMISE = -O2 -fno-strength-reduce
95 # no changes below this line
97 GUIINCLUDES = `gtk-config --cflags`
99 WXINC = -I$(WXDIR)/include
100 WXLIB = $(WXDIR)/lib/libwx_$(GUI).a
101 INCLUDES = $(WXINC) $(GUIINCLUDES) -I$(WXDIR)/src/png -I$(WXDIR)/src/jpeg -I$(WXDIR)/src/zlib
103 CPPFLAGS = $(INCLUDES) $(CPPOPTIONS) $(CPPWARN) $(OPTIMISE)
104 CFLAGS = $(INCLUDES) $(COPTIONS) $(CWARN) $(OPTIMISE)
106 # Clears all default suffixes
107 .SUFFIXES: .o .cpp .c
110 $(CCC) -c $(CFLAGS) -o $@ $<
113 $(CC) -c $(CPPFLAGS) -o $@ $<
116 $(CC) -c $(CPPFLAGS) -o $@ $<
118 # Subordinate library possibilities
120 GENDIR = $(WXDIR)/src/generic
121 COMMDIR = $(WXDIR)/src/common
122 HTMLDIR = $(WXDIR)/src/html
123 UNIXDIR = $(WXDIR)/src/unix
124 PNGDIR = $(WXDIR)/src/png
125 JPEGDIR = $(WXDIR)/src/jpeg
126 ZLIBDIR = $(WXDIR)/src/zlib
127 GTKDIR = $(WXDIR)/src/gtk
129 DOCDIR = $(WXDIR)\docs
132 #$ ExpandList("WXGENERICOBJS");
135 $(COMMDIR)/parser.$(OBJSUFF) \
136 #$ ExpandList("WXCOMMONOBJS");
139 #$ ExpandList("WXHTMLOBJS");
142 #$ ExpandList("WXGTKOBJS");
145 #$ ExpandList("WXUNIXOBJS");
148 $(ZLIBDIR)/adler32.$(OBJSUFF) \
149 $(ZLIBDIR)/compress.$(OBJSUFF) \
150 $(ZLIBDIR)/crc32.$(OBJSUFF) \
151 $(ZLIBDIR)/gzio.$(OBJSUFF) \
152 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
153 $(ZLIBDIR)/deflate.$(OBJSUFF) \
154 $(ZLIBDIR)/trees.$(OBJSUFF) \
155 $(ZLIBDIR)/zutil.$(OBJSUFF) \
156 $(ZLIBDIR)/inflate.$(OBJSUFF) \
157 $(ZLIBDIR)/infblock.$(OBJSUFF) \
158 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
159 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
160 $(ZLIBDIR)/infutil.$(OBJSUFF) \
161 $(ZLIBDIR)/inffast.$(OBJSUFF)
164 $(PNGDIR)/png.$(OBJSUFF) \
165 $(PNGDIR)/pngread.$(OBJSUFF) \
166 $(PNGDIR)/pngrtran.$(OBJSUFF) \
167 $(PNGDIR)/pngrutil.$(OBJSUFF) \
168 $(PNGDIR)/pngpread.$(OBJSUFF) \
169 $(PNGDIR)/pngtrans.$(OBJSUFF) \
170 $(PNGDIR)/pngwrite.$(OBJSUFF) \
171 $(PNGDIR)/pngwtran.$(OBJSUFF) \
172 $(PNGDIR)/pngwutil.$(OBJSUFF) \
173 $(PNGDIR)/pngerror.$(OBJSUFF) \
174 $(PNGDIR)/pngmem.$(OBJSUFF) \
175 $(PNGDIR)/pngwio.$(OBJSUFF) \
176 $(PNGDIR)/pngrio.$(OBJSUFF) \
177 $(PNGDIR)/pngget.$(OBJSUFF) \
178 $(PNGDIR)/pngset.$(OBJSUFF)
182 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
183 $(JPEGDIR)/jutils.$(OBJSUFF) \
184 $(JPEGDIR)/jerror.$(OBJSUFF) \
185 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
186 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
187 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
188 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
189 $(JPEGDIR)/jctrans.$(OBJSUFF) \
190 $(JPEGDIR)/jcparam.$(OBJSUFF) \
191 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
192 $(JPEGDIR)/jcinit.$(OBJSUFF) \
193 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
194 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
195 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
196 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
197 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
198 $(JPEGDIR)/jccolor.$(OBJSUFF) \
199 $(JPEGDIR)/jcsample.$(OBJSUFF) \
200 $(JPEGDIR)/jchuff.$(OBJSUFF) \
201 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
202 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
203 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
204 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
205 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
206 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
207 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
208 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
209 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
210 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
211 $(JPEGDIR)/jdinput.$(OBJSUFF) \
212 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
213 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
214 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
215 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
216 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
217 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
218 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
219 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
220 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
221 $(JPEGDIR)/jidctint.$(OBJSUFF) \
222 $(JPEGDIR)/jidctred.$(OBJSUFF) \
223 $(JPEGDIR)/jdsample.$(OBJSUFF) \
224 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
225 $(JPEGDIR)/jquant1.$(OBJSUFF) \
226 $(JPEGDIR)/jquant2.$(OBJSUFF) \
227 $(JPEGDIR)/jdmerge.$(OBJSUFF)
229 OBJECTS = $(GTKOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJ) $(UNIXOBJS) \
230 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
232 all: $(OBJECTS) $(WXLIB)
235 ar $(AROPTIONS) $@ $(OBJECTS)
238 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
240 $(COMMDIR)/parser.$(OBJSUFF): $(COMMDIR)/parser.c $(COMMDIR)/lexer.c
241 $(CCLEX) -c $(CFLAGS) -o $@ $(COMMDIR)/parser.c
243 $(COMMDIR)/parser.c: $(COMMDIR)/parser.y $(COMMDIR)/lexer.c
244 $(YACC) $(COMMDIR)/parser.y
245 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
246 sed -e "s/BUFSIZ/5000/g" | \
247 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
248 sed -e "s/yy/PROIO_yy/g" | \
249 sed -e "s/input/PROIO_input/g" | \
250 sed -e "s/unput/PROIO_unput/g" > $(COMMDIR)/parser.c
253 $(COMMDIR)/lexer.c: $(COMMDIR)/lexer.l
254 $(LEX) $(COMMDIR)/lexer.l
255 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
256 sed -e "s/yy/PROIO_yy/g" | \
257 sed -e "s/input/PROIO_input/g" | \
258 sed -e "s/unput/PROIO_unput/g" > $(COMMDIR)/lexer.c
262 rm -f $(GTKDIR)/*.$(OBJSUFF)
263 rm -f $(COMMDIR)/parser.c
264 rm -f $(COMMDIR)/lexer.c
265 rm -f $(COMMDIR)/*.$(OBJSUFF)
266 rm -f $(GENDIR)/*.$(OBJSUFF)
267 rm -f $(PNGDIR)/*.$(OBJSUFF)
268 rm -f $(ZLIBDIR)/*.$(OBJSUFF)
269 rm -f $(JPEGDIR)/*.$(OBJSUFF)
270 rm -f $(UNIXDIR)/*.$(OBJSUFF)
271 rm -f $(HTMLDIR)/*.$(OBJSUFF)
272 rm -f $(WXWIN)/lib/libwx_$(GUI).a