]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/unx.t
Now uses the version number when doing a cleandll
[wxWidgets.git] / distrib / msw / tmake / unx.t
CommitLineData
f56b8330
RR
1#!################################################################################
2#! File: unx.t
3#! Purpose: tmake template file from which makefile.unx.in is generated by running
4#! tmake -t unx wxwin.pro -o makefile.unx.in
5#! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
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, %wxHtml, %wxUnix and %wxGTK hashes.
13 IncludeTemplate("filelist.t");
14
15 #! now transform these hashes into $project tags
16 foreach $file (sort keys %wxGeneric) {
17 next if $wxGeneric{$file} =~ /\bR\b/;
18
19 $file =~ s/cp?p?$/\o/;
20 $project{"WXGENERICOBJS"} .= $file . " "
21 }
22
23 foreach $file (sort keys %wxCommon) {
24 next if $wxCommon{$file} =~ /\bR\b/;
25
26 $file =~ s/cp?p?$/\o/;
27 $project{"WXCOMMONOBJS"} .= $file . " "
28 }
29
30 foreach $file (sort keys %wxGTK) {
31 $file =~ s/cp?p?$/\o/;
32 $project{"WXGTKOBJS"} .= $file . " "
33 }
34
35 foreach $file (sort keys %wxHTML) {
36 $file =~ s/cp?p?$/\o/;
37 $project{"WXHTMLOBJS"} .= $file . " "
38 }
39
40 foreach $file (sort keys %wxUNIX) {
41 $file =~ s/cp?p?$/\o/;
42 $project{"WXUNIXOBJS"} .= $file . " "
43 }
23a54e14 44
f56b8330 45#$}
23a54e14
RR
46#
47# I want this to be:
48# $(INSTALL_DATA) $(INCDIR)/wx/window.h $(includedir)/wx/window.h
49#
50# foreach $file (sort keys %wxINCLUDE) {
51# next if $wxINCLUDE{$file} =~ /\b(GTK|MSW|MOT|PM|MAC|GEN|HTM|UNX)\b/;
52#
53# $project{"WXINSTALLWX"} .= "$(INSTALL_DATA)" . " " . "\$(INCDIR)/wx/" . $file . " \$(includedir)/wx/" . $file . "\n"
54# }
55#
56#
57#
f56b8330
RR
58# This file was automatically generated by tmake at #$ Now()
59# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
60
61#
62# File: makefile.unx
63# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
64# Created: 1993
65# Updated: 1999
66# Copyright:(c) 1993, AIAI, University of Edinburgh,
67# Copyright:(c) 1999, Vadim Zeitlin
68# Copyright:(c) 1999, Robert Roebling
69#
70# Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
71
72########################### VERSION #################################
73
74LIBS = @LIBS@
75
76TOOLKIT = @TOOLKIT@
77
78WXLIB = @WX_LIBRARY@
79
80########################### VERSION #################################
81
82WX_MAJOR_VERSION_NUMBER = @WX_MAJOR_VERSION_NUMBER@
83WX_MINOR_VERSION_NUMBER = @WX_MINOR_VERSION_NUMBER@
84WX_RELEASE_NUMBER = @WX_RELEASE_NUMBER@
85
86########################### Misc #################################
87
88SHELL = @SHELL@
89
90########################### Paths #################################
91
92srcdir = @srcdir@/src/gtk
93
94top_srcdir = @top_srcdir@
95prefix = @prefix@
96exec_prefix = @exec_prefix@
97
98bindir = @bindir@
99sbindir = @sbindir@
100libexecdir = @libexecdir@
101datadir = @datadir@
102sysconfdir = @sysconfdir@
103sharedstatedir = @sharedstatedir@
104localstatedir = @localstatedir@
105libdir = @libdir@
106infodir = @infodir@
107mandir = @mandir@
108includedir = @includedir@
109oldincludedir = /usr/include
110
111DESTDIR =
112
113pkgdatadir = $(datadir)/@PACKAGE@
114pkglibdir = $(libdir)/@PACKAGE@
115pkgincludedir = $(includedir)/@PACKAGE@
116
117top_builddir = .
118
119INSTALL = @INSTALL@
120INSTALL_PROGRAM = @INSTALL_PROGRAM@
121INSTALL_DATA = @INSTALL_DATA@
122INSTALL_SCRIPT = @INSTALL_SCRIPT@
123transform = @program_transform_name@
124
125NORMAL_INSTALL = :
126PRE_INSTALL = :
127POST_INSTALL = :
128NORMAL_UNINSTALL = :
129PRE_UNINSTALL = :
130POST_UNINSTALL = :
131build_alias = @build_alias@
132build_triplet = @build@
133host_alias = @host_alias@
134host_triplet = @host@
135target_alias = @target_alias@
136target_triplet = @target@
137
138EXTRA_VPATH = @EXTRA_VPATH_MF@
139
140VPATH = .:${srcdir}:${srcdir}/src/common:${srcdir}/src/generic:${srcdir}/src/html:${EXTRA_VPATH}
141
142########################### Programs #################################
143
144# C++ compiler
145CC = @CXX@
146CCPP = @CXXCPP@
147
148# C compiler
149CCC = @CC@
150CCCPP = @CPP@
151
152# Compiler for lex/yacc .c programs
153CCLEX = @CC@
154
155LEX = @LEX@
156YACC = @YACC@
157AR = @AR@
158AS = @AS@
159NM = @NM@
160LN_S = @LN_S@
161STRIP = @STRIP@
162MAKE = make
163AROPTIONS = ruv
164RANLIB = @RANLIB@
165LD = @LD@
166MAKEINFO = @MAKEINFO@
167
168########################### Flags #################################
169
170CFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CFLAGS@
171CPPFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CXXFLAGS@
172
173########################### Rules #################################
174
175# Clears all default suffixes
176.SUFFIXES: .o .cpp .c
177
178.c.o :
179 $(CCC) -c $(CFLAGS) -o $@ $<
180
181.cpp.o :
182 $(CC) -c $(CPPFLAGS) -o $@ $<
183
184########################### Files #################################
185
186WXDIR = $(srcdir)/../..
187
188# Subordinate library possibilities
189
190GENDIR = $(WXDIR)/src/generic
191COMMDIR = $(WXDIR)/src/common
192HTMLDIR = $(WXDIR)/src/html
193UNIXDIR = $(WXDIR)/src/unix
194PNGDIR = $(WXDIR)/src/png
195JPEGDIR = $(WXDIR)/src/jpeg
196ZLIBDIR = $(WXDIR)/src/zlib
197GTKDIR = $(WXDIR)/src/gtk
23a54e14 198INCDIR = $(WXDIR)/include
f56b8330
RR
199
200DOCDIR = $(WXDIR)\docs
201
202GENERICOBJS = \
203 #$ ExpandList("WXGENERICOBJS");
204
205COMMONOBJS = \
206 parser.o \
207 #$ ExpandList("WXCOMMONOBJS");
208
209HTMLOBJS = \
210 #$ ExpandList("WXHTMLOBJS");
211
212GTKOBJS = \
213 #$ ExpandList("WXGTKOBJS");
214
215UNIXOBJS = \
216 #$ ExpandList("WXUNIXOBJS");
217
218ZLIBOBJS = \
219 adler32.o \
220 compress.o \
221 crc32.o \
222 gzio.o \
223 uncompr.o \
224 deflate.o \
225 trees.o \
226 zutil.o \
227 inflate.o \
228 infblock.o \
229 inftrees.o \
230 infcodes.o \
231 infutil.o \
232 inffast.o
233
234PNGOBJS = \
235 png.o \
236 pngread.o \
237 pngrtran.o \
238 pngrutil.o \
239 pngpread.o \
240 pngtrans.o \
241 pngwrite.o \
242 pngwtran.o \
243 pngwutil.o \
244 pngerror.o \
245 pngmem.o \
246 pngwio.o \
247 pngrio.o \
248 pngget.o \
249 pngset.o
250
251
252JPEGOBJS = \
253 jcomapi.o \
254 jutils.o \
255 jerror.o \
256 jmemmgr.o \
257 jmemnobs.o \
258 jcapimin.o \
259 jcapistd.o \
260 jctrans.o \
261 jcparam.o \
262 jdatadst.o \
263 jcinit.o \
264 jcmaster.o \
265 jcmarker.o \
266 jcmainct.o \
267 jcprepct.o \
268 jccoefct.o \
269 jccolor.o \
270 jcsample.o \
271 jchuff.o \
272 jcphuff.o \
273 jcdctmgr.o \
274 jfdctfst.o \
275 jfdctflt.o \
276 jfdctint.o \
277 jdapimin.o \
278 jdapistd.o \
279 jdtrans.o \
280 jdatasrc.o \
281 jdmaster.o \
282 jdinput.o \
283 jdmarker.o \
284 jdhuff.o \
285 jdphuff.o \
286 jdmainct.o \
287 jdcoefct.o \
288 jdpostct.o \
289 jddctmgr.o \
290 jidctfst.o \
291 jidctflt.o \
292 jidctint.o \
293 jidctred.o \
294 jdsample.o \
295 jdcolor.o \
296 jquant1.o \
297 jquant2.o \
298 jdmerge.o
299
300OBJECTS = $(GTKOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJ) $(UNIXOBJS) \
301 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
302
303all: $(OBJECTS) $(WXLIB)
304
305$(WXLIB): $(OBJECTS)
306 $AR) $(AROPTIONS) $@ $(OBJECTS)
307 $(RANLIB) $@
308
309$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
310
311parser.o: parser.c lexer.c
312 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
313
314parser.c: $(COMMDIR)/parser.y lexer.c
315 $(YACC) $(COMMDIR)/parser.y
316 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
317 sed -e "s/BUFSIZ/5000/g" | \
318 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
319 sed -e "s/yy/PROIO_yy/g" | \
320 sed -e "s/input/PROIO_input/g" | \
321 sed -e "s/unput/PROIO_unput/g" > parser.c
322 @$(RM) y.tab.c
323
324lexer.c: $(COMMDIR)/lexer.l
325 $(LEX) $(COMMDIR)/lexer.l
326 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
327 sed -e "s/yy/PROIO_yy/g" | \
328 sed -e "s/input/PROIO_input/g" | \
329 sed -e "s/unput/PROIO_unput/g" > lexer.c
330 @$(RM) lex.yy.c
331
23a54e14
RR
332install: $(WXLIB)
333 #$ ExpandList("WXINSTALLWX");
334
f56b8330
RR
335clean:
336 rm -f *.o
337 rm -f *.lo
338 rm -f parser.c
339 rm -f lexer.c
340 rm -f *.a
341 rm -f *.la
342
343cleanall: clean