]>
Commit | Line | Data |
---|---|---|
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 | ||
74 | LIBS = @LIBS@ | |
75 | ||
76 | TOOLKIT = @TOOLKIT@ | |
77 | ||
78 | WXLIB = @WX_LIBRARY@ | |
79 | ||
80 | ########################### VERSION ################################# | |
81 | ||
82 | WX_MAJOR_VERSION_NUMBER = @WX_MAJOR_VERSION_NUMBER@ | |
83 | WX_MINOR_VERSION_NUMBER = @WX_MINOR_VERSION_NUMBER@ | |
84 | WX_RELEASE_NUMBER = @WX_RELEASE_NUMBER@ | |
85 | ||
86 | ########################### Misc ################################# | |
87 | ||
88 | SHELL = @SHELL@ | |
89 | ||
90 | ########################### Paths ################################# | |
91 | ||
92 | srcdir = @srcdir@/src/gtk | |
93 | ||
94 | top_srcdir = @top_srcdir@ | |
95 | prefix = @prefix@ | |
96 | exec_prefix = @exec_prefix@ | |
97 | ||
98 | bindir = @bindir@ | |
99 | sbindir = @sbindir@ | |
100 | libexecdir = @libexecdir@ | |
101 | datadir = @datadir@ | |
102 | sysconfdir = @sysconfdir@ | |
103 | sharedstatedir = @sharedstatedir@ | |
104 | localstatedir = @localstatedir@ | |
105 | libdir = @libdir@ | |
106 | infodir = @infodir@ | |
107 | mandir = @mandir@ | |
108 | includedir = @includedir@ | |
109 | oldincludedir = /usr/include | |
110 | ||
111 | DESTDIR = | |
112 | ||
113 | pkgdatadir = $(datadir)/@PACKAGE@ | |
114 | pkglibdir = $(libdir)/@PACKAGE@ | |
115 | pkgincludedir = $(includedir)/@PACKAGE@ | |
116 | ||
117 | top_builddir = . | |
118 | ||
119 | INSTALL = @INSTALL@ | |
120 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | |
121 | INSTALL_DATA = @INSTALL_DATA@ | |
122 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | |
123 | transform = @program_transform_name@ | |
124 | ||
125 | NORMAL_INSTALL = : | |
126 | PRE_INSTALL = : | |
127 | POST_INSTALL = : | |
128 | NORMAL_UNINSTALL = : | |
129 | PRE_UNINSTALL = : | |
130 | POST_UNINSTALL = : | |
131 | build_alias = @build_alias@ | |
132 | build_triplet = @build@ | |
133 | host_alias = @host_alias@ | |
134 | host_triplet = @host@ | |
135 | target_alias = @target_alias@ | |
136 | target_triplet = @target@ | |
137 | ||
138 | EXTRA_VPATH = @EXTRA_VPATH_MF@ | |
139 | ||
140 | VPATH = .:${srcdir}:${srcdir}/src/common:${srcdir}/src/generic:${srcdir}/src/html:${EXTRA_VPATH} | |
141 | ||
142 | ########################### Programs ################################# | |
143 | ||
144 | # C++ compiler | |
145 | CC = @CXX@ | |
146 | CCPP = @CXXCPP@ | |
147 | ||
148 | # C compiler | |
149 | CCC = @CC@ | |
150 | CCCPP = @CPP@ | |
151 | ||
152 | # Compiler for lex/yacc .c programs | |
153 | CCLEX = @CC@ | |
154 | ||
155 | LEX = @LEX@ | |
156 | YACC = @YACC@ | |
157 | AR = @AR@ | |
158 | AS = @AS@ | |
159 | NM = @NM@ | |
160 | LN_S = @LN_S@ | |
161 | STRIP = @STRIP@ | |
162 | MAKE = make | |
163 | AROPTIONS = ruv | |
164 | RANLIB = @RANLIB@ | |
165 | LD = @LD@ | |
166 | MAKEINFO = @MAKEINFO@ | |
167 | ||
168 | ########################### Flags ################################# | |
169 | ||
170 | CFLAGS = @TOOLKIT_DEF@ @WXDEBUG_DEFINE@ @CFLAGS@ | |
171 | CPPFLAGS = @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 | ||
186 | WXDIR = $(srcdir)/../.. | |
187 | ||
188 | # Subordinate library possibilities | |
189 | ||
190 | GENDIR = $(WXDIR)/src/generic | |
191 | COMMDIR = $(WXDIR)/src/common | |
192 | HTMLDIR = $(WXDIR)/src/html | |
193 | UNIXDIR = $(WXDIR)/src/unix | |
194 | PNGDIR = $(WXDIR)/src/png | |
195 | JPEGDIR = $(WXDIR)/src/jpeg | |
196 | ZLIBDIR = $(WXDIR)/src/zlib | |
197 | GTKDIR = $(WXDIR)/src/gtk | |
23a54e14 | 198 | INCDIR = $(WXDIR)/include |
f56b8330 RR |
199 | |
200 | DOCDIR = $(WXDIR)\docs | |
201 | ||
202 | GENERICOBJS = \ | |
203 | #$ ExpandList("WXGENERICOBJS"); | |
204 | ||
205 | COMMONOBJS = \ | |
206 | parser.o \ | |
207 | #$ ExpandList("WXCOMMONOBJS"); | |
208 | ||
209 | HTMLOBJS = \ | |
210 | #$ ExpandList("WXHTMLOBJS"); | |
211 | ||
212 | GTKOBJS = \ | |
213 | #$ ExpandList("WXGTKOBJS"); | |
214 | ||
215 | UNIXOBJS = \ | |
216 | #$ ExpandList("WXUNIXOBJS"); | |
217 | ||
218 | ZLIBOBJS = \ | |
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 | ||
234 | PNGOBJS = \ | |
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 | ||
252 | JPEGOBJS = \ | |
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 | ||
300 | OBJECTS = $(GTKOBJS) $(COMMONOBJS) $(GENERICOBJS) $(HTMLOBJ) $(UNIXOBJS) \ | |
301 | $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS) | |
302 | ||
303 | all: $(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 | ||
311 | parser.o: parser.c lexer.c | |
312 | $(CCLEX) -c $(CFLAGS) -o $@ parser.c | |
313 | ||
314 | parser.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 | ||
324 | lexer.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 |
332 | install: $(WXLIB) |
333 | #$ ExpandList("WXINSTALLWX"); | |
334 | ||
f56b8330 RR |
335 | clean: |
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 | ||
343 | cleanall: clean |