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