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