]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/g95.t
Checked in WXWIN=$(WXDIR) hack as per Vadim's request
[wxWidgets.git] / distrib / msw / tmake / g95.t
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
5 #! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
6 #! Created: 14.07.99
7 #! Version: $Id$
8 #!#############################################################################
9 #${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric and %wxMSW hashes.
12 IncludeTemplate("filelist.t");
13
14 #! now transform these hashes into $project tags
15 foreach $file (sort keys %wxGeneric) {
16 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
17 #! so take the generic version
18 $base = ( $wxGeneric{$file} =~ /\bB\b/ ) ? '_BASE' : '';
19
20 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
21 next #! unless $file =~ /^dirdlgg\./;
22 }
23
24 $file =~ s/cp?p?$/\$(OBJSUFF)/;
25 $project{"WXGENERICOBJS$base"} .= '$(GENDIR)/' . $file . " "
26 }
27
28 foreach $file (sort keys %wxCommon) {
29 next if $wxCommon{$file} =~ /\b(16|U)\b/;
30
31 #! needs extra files (sql*.h) so not compiled by default.
32 #! next if $file =~ /^odbc\./;
33
34 $base = ( $wxCommon{$file} =~ /\bB\b/ ) ? '_BASE' : '';
35 if ( $file =~ /^odbc\./ )
36 {
37 $file =~ s/cp?p?$/\$(OBJSUFF)/;
38 $project{"ADVANCEDOBJS$base"} .= '$(COMMDIR)/' . $file . " "
39 }
40 else
41 {
42 $file =~ s/cp?p?$/\$(OBJSUFF)/;
43 $project{"WXCOMMONOBJS$base"} .= '$(COMMDIR)/' . $file . " "
44 }
45 }
46
47 foreach $file (sort keys %wxBase) {
48 $file =~ s/cp?p?$/\$(OBJSUFF)/;
49 $project{"WXCOMMONOBJS_BASEONLY"} .= '$(COMMDIR)/' . $file . " "
50 }
51
52 foreach $file (sort keys %wxMSW) {
53 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
54 next if $file =~ /^dirdlg\./;
55
56 next if $wxMSW{$file} =~ /\b(16)\b/;
57 $base = ( $wxMSW{$file} =~ /\bB\b/ ) ? '_BASE' : '';
58
59 #! Mingw32 doesn't have the OLE headers and has some troubles with
60 #! socket code, so put in ADVANCEDOBJS
61 if ( $wxMSW{$file} =~ /\b(O)\b/ )
62 {
63 $file =~ s/cp?p?$/\$(OBJSUFF)/;
64 $project{"ADVANCEDOBJS$base"} .= '$(MSWDIR)/ole/' . $file . " "
65 }
66 else
67 {
68 $file =~ s/cp?p?$/\$(OBJSUFF)/;
69 $project{"WXMSWOBJS$base"} .= '$(MSWDIR)/' . $file . " "
70 }
71
72 }
73
74 foreach $file (sort keys %wxHTML) {
75 $file =~ s/cp?p?$/\$(OBJSUFF)/;
76 $project{"WXHTMLOBJS"} .= '$(HTMLDIR)/' . $file . " "
77 }
78
79 #$}
80 # This file was automatically generated by tmake
81 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE G95.T!
82
83 #
84 # File: makefile.g95
85 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
86 # Created: 1993
87 # Updated: 1999
88 # Copyright:(c) 1993, AIAI, University of Edinburgh,
89 # Copyright:(c) 1999, Vadim Zeitlin
90 # Copyright:(c) 1999, Robert Roebling
91 #
92 # Makefile for libwx.a
93
94 # Replace this with your own path if necessary
95 WXDIR = ../..
96
97 # All common compiler flags and options are now in
98 # this central makefile.
99 include $(WXDIR)/src/makeg95.env
100
101 # DLL Name, if building wxWindows as a DLL.
102 ifdef WXMAKINGDLL
103 WXDLL = $(WXDIR)/lib/wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT)$(MIN_SUFFIX).dll
104 WXDEF = wx$(TOOLKIT)$(WXVERSION)$(UNIEXT)$(DEBEXT).def
105 DLL_EXTRA_LIBS = $(WXDIR)/lib/libzlib$(MIN_SUFFIX).a \
106 $(WXDIR)/lib/libpng$(MIN_SUFFIX).a \
107 $(WXDIR)/lib/libjpeg$(MIN_SUFFIX).a \
108 $(WXDIR)/lib/libtiff$(MIN_SUFFIX).a \
109 $(WXDIR)/lib/libregex$(MIN_SUFFIX).a
110 DLL_LDFLAGS = -L$(WXDIR)/lib
111 DLL_BASE_LDLIBS = $(DLL_EXTRA_LIBS) -lstdc++ -lwsock32
112 ifeq ($(wxUSE_GUI),0)
113 DLL_LDLIBS = $(DLL_BASE_LDLIBS)
114 else
115 DLL_LDLIBS = -lcomctl32 -lctl3d32 -lole32 -loleaut32 \
116 -luuid -lrpcrt4 -lodbc32 -lwinmm -lopengl32 \
117 $(DLL_BASE_LDLIBS)
118 endif
119 endif
120
121 # Subordinate library possibilities
122
123 EXTRAOBJS=
124
125 GENDIR = $(WXDIR)/src/generic
126 COMMDIR = $(WXDIR)/src/common
127 HTMLDIR = $(WXDIR)/src/html
128 ZLIBDIR = $(WXDIR)/src/zlib
129 PNGDIR = $(WXDIR)/src/png
130 JPEGDIR = $(WXDIR)/src/jpeg
131 TIFFDIR = $(WXDIR)/src/tiff
132 OLEDIR = $(WXDIR)/src/msw/ole
133 MSWDIR = $(WXDIR)/src/msw
134 REGEXDIR= $(WXDIR)/src/regex
135
136 ZLIBLIB = $(WXDIR)/lib/libzlib$(MIN_SUFFIX).a
137 PNGLIB = $(WXDIR)/lib/libpng$(MIN_SUFFIX).a
138 JPEGLIB = $(WXDIR)/lib/libjpeg$(MIN_SUFFIX).a
139 TIFFLIB = $(WXDIR)/lib/libtiff$(MIN_SUFFIX).a
140 REGEXLIB= $(WXDIR)/lib/libregex$(MIN_SUFFIX).a
141
142 DOCDIR = $(WXDIR)/docs
143
144 # Only use the WIN32 wxDirDialog if we have a recent
145 # version of Mingw32
146 ifeq "$(strip $(RECENT_MINGW))" "yes"
147 DIRDLGOBJ = $(MSWDIR)/dirdlg.$(OBJSUFF)
148 else
149 DIRDLGOBJ = $(GENDIR)/dirdlgg.$(OBJSUFF)
150 endif
151
152 ifeq ($(wxUSE_GUI),0)
153 DIRDLGOBJ =
154 endif
155
156 GENERICOBJS_BASE = \
157 #$ ExpandList("WXGENERICOBJS_BASE");
158
159 GENERICOBJS = \
160 $(GENERICOBJS_BASE) \
161 #$ ExpandList("WXGENERICOBJS");
162
163 COMMONOBJS_BASE = \
164 #$ ExpandList("WXCOMMONOBJS_BASE");
165
166 COMMONOBJS_BASEONLY = \
167 #$ ExpandList("WXCOMMONOBJS_BASEONLY");
168
169 COMMONOBJS = \
170 $(COMMONOBJS_BASE) \
171 $(COMMDIR)/y_tab.$(OBJSUFF) \
172 #$ ExpandList("WXCOMMONOBJS");
173
174 HTMLOBJS = \
175 #$ ExpandList("WXHTMLOBJS");
176
177 MSWOBJS_BASE = \
178 #$ ExpandList("WXMSWOBJS_BASE");
179
180 MSWOBJS = \
181 $(MSWOBJS_BASE) \
182 #$ ExpandList("WXMSWOBJS");
183
184 ADVANCEDOBJS_BASE = \
185 #$ ExpandList("ADVANCEDOBJS_BASE");
186
187 ADVANCEDOBJS = \
188 $(ADVANCEDOBJS_BASE) \
189 #$ ExpandList("ADVANCEDOBJS");
190
191 ZLIBOBJS = \
192 $(ZLIBDIR)/adler32.$(OBJSUFF) \
193 $(ZLIBDIR)/compress.$(OBJSUFF) \
194 $(ZLIBDIR)/crc32.$(OBJSUFF) \
195 $(ZLIBDIR)/gzio.$(OBJSUFF) \
196 $(ZLIBDIR)/uncompr.$(OBJSUFF) \
197 $(ZLIBDIR)/deflate.$(OBJSUFF) \
198 $(ZLIBDIR)/trees.$(OBJSUFF) \
199 $(ZLIBDIR)/zutil.$(OBJSUFF) \
200 $(ZLIBDIR)/inflate.$(OBJSUFF) \
201 $(ZLIBDIR)/infblock.$(OBJSUFF) \
202 $(ZLIBDIR)/inftrees.$(OBJSUFF) \
203 $(ZLIBDIR)/infcodes.$(OBJSUFF) \
204 $(ZLIBDIR)/infutil.$(OBJSUFF) \
205 $(ZLIBDIR)/inffast.$(OBJSUFF)
206
207 PNGOBJS = \
208 $(PNGDIR)/png.$(OBJSUFF) \
209 $(PNGDIR)/pngread.$(OBJSUFF) \
210 $(PNGDIR)/pngrtran.$(OBJSUFF) \
211 $(PNGDIR)/pngrutil.$(OBJSUFF) \
212 $(PNGDIR)/pngpread.$(OBJSUFF) \
213 $(PNGDIR)/pngtrans.$(OBJSUFF) \
214 $(PNGDIR)/pngwrite.$(OBJSUFF) \
215 $(PNGDIR)/pngwtran.$(OBJSUFF) \
216 $(PNGDIR)/pngwutil.$(OBJSUFF) \
217 $(PNGDIR)/pngerror.$(OBJSUFF) \
218 $(PNGDIR)/pngmem.$(OBJSUFF) \
219 $(PNGDIR)/pngwio.$(OBJSUFF) \
220 $(PNGDIR)/pngrio.$(OBJSUFF) \
221 $(PNGDIR)/pngget.$(OBJSUFF) \
222 $(PNGDIR)/pngset.$(OBJSUFF)
223
224
225 JPEGOBJS = \
226 $(JPEGDIR)/jcomapi.$(OBJSUFF) \
227 $(JPEGDIR)/jutils.$(OBJSUFF) \
228 $(JPEGDIR)/jerror.$(OBJSUFF) \
229 $(JPEGDIR)/jmemmgr.$(OBJSUFF) \
230 $(JPEGDIR)/jmemnobs.$(OBJSUFF) \
231 $(JPEGDIR)/jcapimin.$(OBJSUFF) \
232 $(JPEGDIR)/jcapistd.$(OBJSUFF) \
233 $(JPEGDIR)/jctrans.$(OBJSUFF) \
234 $(JPEGDIR)/jcparam.$(OBJSUFF) \
235 $(JPEGDIR)/jdatadst.$(OBJSUFF) \
236 $(JPEGDIR)/jcinit.$(OBJSUFF) \
237 $(JPEGDIR)/jcmaster.$(OBJSUFF) \
238 $(JPEGDIR)/jcmarker.$(OBJSUFF) \
239 $(JPEGDIR)/jcmainct.$(OBJSUFF) \
240 $(JPEGDIR)/jcprepct.$(OBJSUFF) \
241 $(JPEGDIR)/jccoefct.$(OBJSUFF) \
242 $(JPEGDIR)/jccolor.$(OBJSUFF) \
243 $(JPEGDIR)/jcsample.$(OBJSUFF) \
244 $(JPEGDIR)/jchuff.$(OBJSUFF) \
245 $(JPEGDIR)/jcphuff.$(OBJSUFF) \
246 $(JPEGDIR)/jcdctmgr.$(OBJSUFF) \
247 $(JPEGDIR)/jfdctfst.$(OBJSUFF) \
248 $(JPEGDIR)/jfdctflt.$(OBJSUFF) \
249 $(JPEGDIR)/jfdctint.$(OBJSUFF) \
250 $(JPEGDIR)/jdapimin.$(OBJSUFF) \
251 $(JPEGDIR)/jdapistd.$(OBJSUFF) \
252 $(JPEGDIR)/jdtrans.$(OBJSUFF) \
253 $(JPEGDIR)/jdatasrc.$(OBJSUFF) \
254 $(JPEGDIR)/jdmaster.$(OBJSUFF) \
255 $(JPEGDIR)/jdinput.$(OBJSUFF) \
256 $(JPEGDIR)/jdmarker.$(OBJSUFF) \
257 $(JPEGDIR)/jdhuff.$(OBJSUFF) \
258 $(JPEGDIR)/jdphuff.$(OBJSUFF) \
259 $(JPEGDIR)/jdmainct.$(OBJSUFF) \
260 $(JPEGDIR)/jdcoefct.$(OBJSUFF) \
261 $(JPEGDIR)/jdpostct.$(OBJSUFF) \
262 $(JPEGDIR)/jddctmgr.$(OBJSUFF) \
263 $(JPEGDIR)/jidctfst.$(OBJSUFF) \
264 $(JPEGDIR)/jidctflt.$(OBJSUFF) \
265 $(JPEGDIR)/jidctint.$(OBJSUFF) \
266 $(JPEGDIR)/jidctred.$(OBJSUFF) \
267 $(JPEGDIR)/jdsample.$(OBJSUFF) \
268 $(JPEGDIR)/jdcolor.$(OBJSUFF) \
269 $(JPEGDIR)/jquant1.$(OBJSUFF) \
270 $(JPEGDIR)/jquant2.$(OBJSUFF) \
271 $(JPEGDIR)/jdmerge.$(OBJSUFF)
272
273 TIFFOBJS = $(TIFFDIR)/tif_aux.o \
274 $(TIFFDIR)/tif_close.o \
275 $(TIFFDIR)/tif_codec.o \
276 $(TIFFDIR)/tif_compress.o \
277 $(TIFFDIR)/tif_dir.o \
278 $(TIFFDIR)/tif_dirinfo.o \
279 $(TIFFDIR)/tif_dirread.o \
280 $(TIFFDIR)/tif_dirwrite.o \
281 $(TIFFDIR)/tif_dumpmode.o \
282 $(TIFFDIR)/tif_error.o \
283 $(TIFFDIR)/tif_fax3.o \
284 $(TIFFDIR)/tif_fax3sm.o \
285 $(TIFFDIR)/tif_flush.o \
286 $(TIFFDIR)/tif_getimage.o \
287 $(TIFFDIR)/tif_jpeg.o \
288 $(TIFFDIR)/tif_luv.o \
289 $(TIFFDIR)/tif_lzw.o \
290 $(TIFFDIR)/tif_next.o \
291 $(TIFFDIR)/tif_open.o \
292 $(TIFFDIR)/tif_packbits.o \
293 $(TIFFDIR)/tif_pixarlog.o \
294 $(TIFFDIR)/tif_predict.o \
295 $(TIFFDIR)/tif_print.o \
296 $(TIFFDIR)/tif_read.o \
297 $(TIFFDIR)/tif_strip.o \
298 $(TIFFDIR)/tif_swab.o \
299 $(TIFFDIR)/tif_thunder.o \
300 $(TIFFDIR)/tif_tile.o \
301 $(TIFFDIR)/tif_version.o \
302 $(TIFFDIR)/tif_warning.o \
303 $(TIFFDIR)/tif_win32.o \
304 $(TIFFDIR)/tif_write.o \
305 $(TIFFDIR)/tif_zip.o
306
307 ifeq "$(strip $(RECENT_MINGW))" "yes"
308 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ) $(ADVANCEDOBJS)
309 else
310 OBJECTS = $(MSWOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJS) $(DIRDLGOBJ)
311 endif
312 ifeq ($(wxUSE_GUI),0)
313 OBJECTS = $(MSWOBJS_BASE) $(COMMONOBJS_BASE) $(COMMONOBJS_BASEONLY) $(GENERICOBJS_BASE)
314 endif
315
316 # how do you do "VAR=\" ? BLEAGH!
317 BACKSLASH=$(subst a,\,a)
318 ifeq (,$(findstring $(OSTYPE),"cygwin!msys"))
319 PATH_SEPARATOR:=$(BACKSLASH)
320 PATH_SUBST=/
321 else
322 PATH_SEPARATOR=/
323 PATH_SUBST:=$(BACKSLASH)
324 endif
325
326 #ARCHINCDIR=$(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/lib/msw$(INCEXT))
327 ARCHINCDIR=$(WXDIR)/lib/$(TOOLKIT)$(INCEXT)
328
329 SETUP_H=$(ARCHINCDIR)/wx/setup.h
330
331 ifndef WXMAKINGDLL
332 all: $(SETUP_H) $(OBJECTS) $(WXLIB) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB)
333 else
334 all: $(SETUP_H) $(OBJECTS) $(ZLIBLIB) $(PNGLIB) $(JPEGLIB) $(TIFFLIB) $(REGEXLIB) $(WXDLL)
335 endif
336
337 $(ARCHINCDIR)/wx:
338 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR))
339 mkdir $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(ARCHINCDIR)/wx)
340
341 # Copy ALWAYS uses forward slashes now.
342
343 $(SETUP_H): $(ARCHINCDIR)/wx $(WXDIR)/include/wx/msw/setup.h
344 $(COPY) $(WXDIR)/include/wx/msw/setup.h $(subst $(BACKSLASH),/,$@)
345
346 # $(COPY) $(WXDIR)/include/wx/msw/setup.h $@
347 # $(COPY) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$(WXDIR)/include/wx/msw/setup.h) $(subst $(PATH_SUBST),$(PATH_SEPARATOR),$@)
348
349 ifndef WXMAKINGDLL
350
351 $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
352 ar $(AROPTIONS) $@ $(EXTRAOBJS) $(OBJECTS)
353 $(RANLIB) $@
354
355 else
356
357 # The new linker is a few orders of magnitude faster than the old way
358 # of creating DLLs.
359 ifeq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
360
361 $(WXDLL): $(OBJECTS) $(EXTRAOBJS)
362 $(CXX) -shared -o $@ \
363 -Wl,--output-def,$(WXDEF) \
364 -Wl,--out-implib,$(WXLIB) \
365 $(OBJECTS) $(EXTRAOBJS) \
366 $(DLL_LDFLAGS) $(DLL_LDLIBS) \
367 $(ALL_LDFLAGS_DLL)
368 else
369
370 ifeq ($(MINGW32),1)
371 DLL_ENTRY = _DllMainCRTStartup@12
372 else
373 DLL_ENTRY = __cygwin_dll_entry@12
374 endif
375 LD_STUFF = $(OBJECTS) $(EXTRAOBJS) -Wl,-e,$(DLL_ENTRY) \
376 $(DLL_LDFLAGS) $(DLL_LDLIBS) #-Wl,--image-base=0x66000000
377
378 DLL_STUFF = --as=$(AS) --dllname $(notdir $(WXDLL)) \
379 --def $(WXDEF) \
380 --base-file wx.base --output-exp wx.exp
381
382 $(WXDEF) $(WXLIB): $(OBJECTS) $(EXTRAOBJS)
383 $(DLLTOOL) --output-def $@ --output-lib $(WXLIB) \
384 --dllname $(notdir $(WXDLL)) \
385 $(OBJECTS) $(EXTRAOBJS) $(DLL_EXTRA_LIBS)
386
387 $(WXDLL): $(OBJECTS) $(EXTRAOBJS) $(WXDEF)
388 $(CC) -mdll -Wl,--base-file,wx.base -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
389 $(DLLTOOL) $(DLL_STUFF)
390 $(CC) -mdll -Wl,--base-file,wx.base wx.exp -s -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
391 $(DLLTOOL) $(DLL_STUFF)
392 $(CC) -mdll wx.exp -o $@ $(LD_STUFF) $(ALL_LDFLAGS_DLL)
393 -$(RM) wx.base
394 -$(RM) wx.exp
395
396 endif
397
398 endif
399
400
401 $(ZLIBLIB): $(ZLIBOBJS)
402 $(AR) $(AROPTIONS) $@ $(ZLIBOBJS)
403 $(RANLIB) $@
404
405 $(PNGLIB): $(PNGOBJS)
406 $(AR) $(AROPTIONS) $@ $(PNGOBJS)
407 $(RANLIB) $@
408
409 $(JPEGLIB): $(JPEGOBJS)
410 $(AR) $(AROPTIONS) $@ $(JPEGOBJS)
411 $(RANLIB) $@
412
413 $(TIFFLIB): $(TIFFOBJS)
414 $(AR) $(AROPTIONS) $@ $(TIFFOBJS)
415 $(RANLIB) $@
416
417 $(REGEXLIB):
418 $(MAKE) -C $(REGEXDIR) -f makefile.g95 MINGW32=$(MINGW32) WXDIR=$(WXDIR) WXWIN=$(WXDIR)
419
420 $(OBJECTS): $(WXINC)/wx/defs.h $(WXINC)/wx/object.h $(ARCHINCDIR)/wx/setup.h
421
422 $(COMMDIR)/y_tab.$(OBJSUFF): $(COMMDIR)/y_tab.c $(COMMDIR)/lex_yy.c
423 $(CCLEX) -c $(ALL_CPPFLAGS) $(ALL_CFLAGS) -DUSE_DEFINE -DYY_USE_PROTOS -o $@ $(COMMDIR)/y_tab.c
424
425 $(COMMDIR)/y_tab.c: $(COMMDIR)/dosyacc.c
426 $(COPY) ../common/dosyacc.c ../common/y_tab.c
427
428 $(COMMDIR)/lex_yy.c: $(COMMDIR)/doslex.c
429 $(COPY) ../common/doslex.c ../common/lex_yy.c
430
431 # Replace lex with flex if you run into compilation
432 # problems with lex_yy.c. See also note about LEX_SCANNER
433 # above.
434 # $(COMMDIR)/lex_yy.c: $(COMMDIR)/lexer.l
435 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
436 #
437 # Try one of these if the above line doesn't work.
438 # Alternative syntax (1)
439 # $(LEX) -t -L $(COMMDIR)/lexer.l > $(COMMDIR)/lex_yy.c
440 # Alternative syntax (2)
441 # $(LEX) -L -o$(COMMDIR)/lex_yy.c $(COMMDIR)/lexer.l
442 #
443 # sed -e "s/BUFSIZ/5000/g" < lex.yy.c | \
444 # sed -e "s/yyoutput(c)/void yyoutput(c)/g" | \
445 # sed -e "s/YYLMAX 200/YYLMAX 5000/g" > lex_yy.c
446 # rm -f lex.yy.c
447 #
448 # Replace yacc with bison if you run into compilation
449 # problems with y_tab.c.
450 #
451 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
452 # $(YACC) -o $(COMMDIR)/y_tab.c $(COMMDIR)/parser.y
453 #
454 # If you use e.g. gcc on Unix, uncomment these lines
455 # and comment out the above.
456 #
457 # $(COMMDIR)/y_tab.c: $(COMMDIR)/parser.y
458 # $(YACC) $(COMMDIR)/parser.y
459 # mv y.tab.c $(COMMDIR)/y_tab.c
460
461 clean:
462 -$(RM) *.o
463 -$(RM) ole/*.o
464 -$(RM) *.bak
465 -$(RM) core
466 -$(RM) ../common/y_tab.c
467 -$(RM) ../common/lex_yy.c
468 -$(RM) ../common/*.o
469 -$(RM) ../common/*.bak
470 -$(RM) ../generic/*.o
471 -$(RM) ../generic/*.bak
472 -$(RM) ../html/*.o
473 -$(RM) ../zlib/*.o
474 -$(RM) ../zlib/*.bak
475 -$(RM) ../png/*.o
476 -$(RM) ../png/*.bak
477 -$(RM) ../jpeg/*.o
478 -$(RM) ../jpeg/*.bak
479 -$(RM) ../tiff/*.o
480 -$(RM) ../tiff/*.bak
481 -$(RM) ../regex/*.o
482 -$(RM) ../regex/*.bak
483
484 cleanall: clean
485 -$(RM) $(WXLIB)
486 -$(RM) $(ZLIBLIB)
487 -$(RM) $(PNGLIB)
488 -$(RM) $(JPEGLIB)
489 -$(RM) $(TIFFLIB)
490 -$(RM) $(REGEXLIB)
491
492 ifdef WXMAKINGDLL
493 -$(RM) $(WXDLL)
494 -$(RM) $(WXDEF)
495 ifneq "$(strip $(LD_SUPPORTS_SHARED))" "yes"
496 -$(RM) wx.base
497 -$(RM) wx.exp
498 endif
499 endif
500