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