]> git.saurik.com Git - wxWidgets.git/blob - distrib/msw/tmake/unx.t
Commited very sort samples
[wxWidgets.git] / distrib / msw / tmake / unx.t
1 #!################################################################################
2 #! File: unx.t
3 #! Purpose: tmake template file from which Makefile.in is generated by running
4 #! tmake -t unx wxwin.pro -o Makefile.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 #! Generic
16
17 foreach $file (sort keys %wxGeneric) {
18 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
19 #! so take the generic version
20 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
21 next unless $file =~ /^dirdlgg\./;
22 }
23
24 $file =~ s/cp?p?$/\o/;
25 $project{"WXMSW_GENERICOBJS"} .= "src/generic/" . $file . " "
26 }
27
28 foreach $file (sort keys %wxGeneric) {
29 next if $wxGeneric{$file} =~ /\bR\b/;
30
31 $file =~ s/cp?p?$/\o/;
32 $project{"WXGTK_GENERICOBJS"} .= "src/generic/" . $file . " "
33 }
34
35 foreach $file (sort keys %wxGeneric) {
36 next if $wxCommon{$file} =~ /\bX\b/;
37
38 $file =~ s/cp?p?$/\o/;
39 $project{"WXMOTIF_GENERICOBJS"} .= "src/generic/" . $file . " "
40 }
41
42 #! Common
43
44 foreach $file (sort keys %wxCommon) {
45 next if $wxCommon{$file} =~ /\bR\b/;
46
47 $file =~ s/cp?p?$/\o/;
48 $project{"WXGTK_COMMONOBJS"} .= "src/common/" . $file . " "
49 }
50
51 foreach $file (sort keys %wxCommon) {
52 next if $wxCommon{$file} =~ /\bX\b/;
53
54 $file =~ s/cp?p?$/\o/;
55 $project{"WXMOTIF_COMMONOBJS"} .= "src/common/" . $file . " "
56 }
57
58 foreach $file (sort keys %wxCommon) {
59 next if $wxCommon{$file} =~ /\b(16)\b/;
60
61 #! needs extra files (sql*.h) so not compiled by default.
62 next if $file =~ /^odbc\./;
63
64 $file =~ s/cp?p?$/\o/;
65 $project{"WXMSW_COMMONOBJS"} .= "src/common/" . $file . " "
66 }
67
68 #! GUI
69
70 foreach $file (sort keys %wxMSW) {
71 #! Mingw32 doesn't have the OLE headers and has some troubles with
72 #! socket code
73 next if $wxMSW{$file} =~ /\b(O|16)\b/;
74
75 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
76 next if $file =~ /^dirdlg\./;
77
78 $file =~ s/cp?p?$/\o/;
79 $project{"WXMSW_GUIOBJS"} .= "src/msw/" . $file . " "
80 }
81
82 foreach $file (sort keys %wxGTK) {
83 $file =~ s/cp?p?$/\o/;
84 $project{"WXGTK_GUIOBJS"} .= "src/gtk/" . $file . " "
85 }
86
87 foreach $file (sort keys %wxMOTIF) {
88 $file =~ s/cp?p?$/\o/;
89 $project{"WXMOTIF_GUIOBJS"} .= "src/motif/" . $file . " "
90 }
91
92 #! others
93
94 foreach $file (sort keys %wxHTML) {
95 $file =~ s/cp?p?$/\o/;
96 $project{"WXHTMLOBJS"} .= "src/html/" . $file . " "
97 }
98
99 foreach $file (sort keys %wxUNIX) {
100 $file =~ s/cp?p?$/\o/;
101 $project{"WXUNIXOBJS"} .= "src/unix/" . $file . " "
102 }
103
104 #! headers
105
106 foreach $file (sort keys %wxWXINCLUDE) {
107 $project{"WX_HEADERS"} .= $file . " "
108 }
109
110 foreach $file (sort keys %wxGENERICINCLUDE) {
111 $project{"WXGENERIC_HEADERS"} .= "generic/" . $file . " "
112 }
113
114 foreach $file (sort keys %wxMOTIFINCLUDE) {
115 $project{"WXMOTIF_HEADERS"} .= "motif/" . $file . " "
116 }
117
118 foreach $file (sort keys %wxGTKINCLUDE) {
119 $project{"WXGTK_HEADERS"} .= "gtk/" . $file . " "
120 }
121
122 foreach $file (sort keys %wxMSWINCLUDE) {
123 $project{"WXMSW_HEADERS"} .= "msw/" . $file . " "
124 }
125
126 foreach $file (sort keys %wxHTMLINCLUDE) {
127 $project{"WXHTML_HEADERS"} .= "html/" . $file . " "
128 }
129
130 foreach $file (sort keys %wxUNIXINCLUDE) {
131 $project{"WXUNIX_HEADERS"} .= "unix/" . $file . " "
132 }
133
134 foreach $file (sort keys %wxPROTOCOLINCLUDE) {
135 $project{"WXPROTOCOL_HEADERS"} .= "protocol/" . $file . " "
136 }
137 #$}
138 #
139 # This file was automatically generated by tmake at #$ Now()
140 # DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
141
142 #
143 # File: makefile.unx
144 # Author: Julian Smart, Robert Roebling, Vadim Zeitlin
145 # Created: 1993
146 # Updated: 1999
147 # Copyright:(c) 1993, AIAI, University of Edinburgh,
148 # Copyright:(c) 1999, Vadim Zeitlin
149 # Copyright:(c) 1999, Robert Roebling
150 #
151 # Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
152
153 ###################################################################
154
155 include ./src/make.env
156
157 ############## override make.env for PIC ##########################
158
159 # Clears all default suffixes
160 .SUFFIXES: .o .cpp .c .cxx
161
162 .c.o :
163 $(CCC) -c $(CFLAGS) $(PICFLAGS) -o $@ $<
164
165 .cpp.o :
166 $(CC) -c $(CPPFLAGS) $(PICFLAGS) -o $@ $<
167
168 .cxx.o :
169 $(CC) -c $(CPPFLAGS) $(PICFLAGS) -o $@ $<
170
171 ########################### Paths #################################
172
173 srcdir = @srcdir@
174
175 VPATH = :@top_srcdir@
176
177 top_srcdir = @top_srcdir@
178 prefix = @prefix@
179 exec_prefix = @exec_prefix@
180
181 bindir = @bindir@
182 sbindir = @sbindir@
183 libexecdir = @libexecdir@
184 datadir = @datadir@
185 sysconfdir = @sysconfdir@
186 sharedstatedir = @sharedstatedir@
187 localstatedir = @localstatedir@
188 libdir = @libdir@
189 infodir = @infodir@
190 mandir = @mandir@
191 includedir = @includedir@
192 oldincludedir = /usr/include
193
194 DESTDIR =
195
196 pkgdatadir = $(datadir)/@PACKAGE@
197 pkglibdir = $(libdir)/@PACKAGE@
198 pkgincludedir = $(includedir)/@PACKAGE@
199
200 top_builddir = .
201
202 INSTALL = @INSTALL@
203 INSTALL_PROGRAM = @INSTALL_PROGRAM@
204 INSTALL_DATA = @INSTALL_DATA@
205 INSTALL_SCRIPT = @INSTALL_SCRIPT@
206 transform = @program_transform_name@
207
208 NORMAL_INSTALL = :
209 PRE_INSTALL = :
210 POST_INSTALL = :
211 NORMAL_UNINSTALL = :
212 PRE_UNINSTALL = :
213 POST_UNINSTALL = :
214 build_alias = @build_alias@
215 build_triplet = @build@
216 host_alias = @host_alias@
217 host_triplet = @host@
218 target_alias = @target_alias@
219 target_triplet = @target@
220
221 ############################# Dirs #################################
222
223 WXDIR = $(top_srcdir)
224
225 # Subordinate library possibilities
226
227 SRCDIR = $(WXDIR)/src
228 GENDIR = $(WXDIR)/src/generic
229 COMMDIR = $(WXDIR)/src/common
230 HTMLDIR = $(WXDIR)/src/html
231 UNIXDIR = $(WXDIR)/src/unix
232 PNGDIR = $(WXDIR)/src/png
233 JPEGDIR = $(WXDIR)/src/jpeg
234 ZLIBDIR = $(WXDIR)/src/zlib
235 GTKDIR = $(WXDIR)/src/gtk
236 MOTIFDIR = $(WXDIR)/src/motif
237 MSWDIR = $(WXDIR)/src/msw
238 INCDIR = $(WXDIR)/include
239 SAMPDIR = $(WXDIR)/samples
240
241 DOCDIR = $(WXDIR)/docs
242
243 ########################## Archive name ###############################
244
245 WXARCHIVE = wx$(TOOLKIT)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER).tgz
246 DISTDIR = ./_dist_dir/wx$(TOOLKIT)
247
248 ############################## Files ##################################
249
250 WX_HEADERS = \
251 #$ ExpandList("WX_HEADERS");
252
253 GTK_HEADERS = \
254 #$ ExpandList("WXGTK_HEADERS");
255
256 MOTIF_HEADERS = \
257 #$ ExpandList("WXMOTIF_HEADERS");
258
259 MSW_HEADERS = \
260 #$ ExpandList("WXMSW_HEADERS");
261
262 UNIX_HEADERS = \
263 #$ ExpandList("WXUNIX_HEADERS");
264
265 GENERIC_HEADERS = \
266 #$ ExpandList("WXGENERIC_HEADERS");
267
268 PROTOCOL_HEADERS = \
269 #$ ExpandList("WXPROTOCOL_HEADERS");
270
271 HTML_HEADERS = \
272 #$ ExpandList("WXHTML_HEADERS");
273
274 GTK_GENERICOBJS = \
275 #$ ExpandList("WXGTK_GENERICOBJS");
276
277 GTK_COMMONOBJS = \
278 parser.o \
279 #$ ExpandList("WXGTK_COMMONOBJS");
280
281 GTK_GUIOBJS = \
282 #$ ExpandList("WXGTK_GUIOBJS");
283
284 MOTIF_GENERICOBJS = \
285 #$ ExpandList("WXMOTIF_GENERICOBJS");
286
287 MOTIF_COMMONOBJS = \
288 parser.o \
289 #$ ExpandList("WXMOTIF_COMMONOBJS");
290
291 MOTIF_GUIOBJS = \
292 src/motif/xmcombo/xmcombo.o \
293 #$ ExpandList("WXMOTIF_GUIOBJS");
294
295 MSW_GENERICOBJS = \
296 #$ ExpandList("WXMSW_GENERICOBJS");
297
298 MSW_COMMONOBJS = \
299 #$ ExpandList("WXMSW_COMMONOBJS");
300
301 MSW_GUIOBJS = \
302 #$ ExpandList("WXMSW_GUIOBJS");
303
304 HTMLOBJS = \
305 #$ ExpandList("WXHTMLOBJS");
306
307 UNIXOBJS = \
308 #$ ExpandList("WXUNIXOBJS");
309
310 ZLIBOBJS = \
311 src/zlib/adler32.o \
312 src/zlib/compress.o \
313 src/zlib/crc32.o \
314 src/zlib/gzio.o \
315 src/zlib/uncompr.o \
316 src/zlib/deflate.o \
317 src/zlib/trees.o \
318 src/zlib/zutil.o \
319 src/zlib/inflate.o \
320 src/zlib/infblock.o \
321 src/zlib/inftrees.o \
322 src/zlib/infcodes.o \
323 src/zlib/infutil.o \
324 src/zlib/inffast.o
325
326 PNGOBJS = \
327 src/png/png.o \
328 src/png/pngread.o \
329 src/png/pngrtran.o \
330 src/png/pngrutil.o \
331 src/png/pngpread.o \
332 src/png/pngtrans.o \
333 src/png/pngwrite.o \
334 src/png/pngwtran.o \
335 src/png/pngwutil.o \
336 src/png/pngerror.o \
337 src/png/pngmem.o \
338 src/png/pngwio.o \
339 src/png/pngrio.o \
340 src/png/pngget.o \
341 src/png/pngset.o
342
343
344 JPEGOBJS = \
345 src/jpeg/jcomapi.o \
346 src/jpeg/jutils.o \
347 src/jpeg/jerror.o \
348 src/jpeg/jmemmgr.o \
349 src/jpeg/jmemnobs.o \
350 src/jpeg/jcapimin.o \
351 src/jpeg/jcapistd.o \
352 src/jpeg/jctrans.o \
353 src/jpeg/jcparam.o \
354 src/jpeg/jdatadst.o \
355 src/jpeg/jcinit.o \
356 src/jpeg/jcmaster.o \
357 src/jpeg/jcmarker.o \
358 src/jpeg/jcmainct.o \
359 src/jpeg/jcprepct.o \
360 src/jpeg/jccoefct.o \
361 src/jpeg/jccolor.o \
362 src/jpeg/jcsample.o \
363 src/jpeg/jchuff.o \
364 src/jpeg/jcphuff.o \
365 src/jpeg/jcdctmgr.o \
366 src/jpeg/jfdctfst.o \
367 src/jpeg/jfdctflt.o \
368 src/jpeg/jfdctint.o \
369 src/jpeg/jdapimin.o \
370 src/jpeg/jdapistd.o \
371 src/jpeg/jdtrans.o \
372 src/jpeg/jdatasrc.o \
373 src/jpeg/jdmaster.o \
374 src/jpeg/jdinput.o \
375 src/jpeg/jdmarker.o \
376 src/jpeg/jdhuff.o \
377 src/jpeg/jdphuff.o \
378 src/jpeg/jdmainct.o \
379 src/jpeg/jdcoefct.o \
380 src/jpeg/jdpostct.o \
381 src/jpeg/jddctmgr.o \
382 src/jpeg/jidctfst.o \
383 src/jpeg/jidctflt.o \
384 src/jpeg/jidctint.o \
385 src/jpeg/jidctred.o \
386 src/jpeg/jdsample.o \
387 src/jpeg/jdcolor.o \
388 src/jpeg/jquant1.o \
389 src/jpeg/jquant2.o \
390 src/jpeg/jdmerge.o
391
392
393 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \
394 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
395
396 HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
397 $(GENERIC_HEADERS) $(WX_HEADERS)
398
399 REQUIRED_DIRS = ./lib ./src ./src/common ./src/gtk ./src/motif ./src/msw \
400 ./src/generic ./src/unix ./src/motif/xmombo ./src/html \
401 ./src/zlib ./src/jpeg ./src/png
402
403 all: $(REQUIRED_DIRS) $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
404
405 $(REQUIRED_DIRS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
406 mkdir -p ./lib
407 mkdir -p ./src
408 mkdir -p ./src/common
409 mkdir -p ./src/msw
410 mkdir -p ./src/gtk
411 mkdir -p ./src/motif
412 mkdir -p ./src/motif/xmcombo
413 mkdir -p ./src/generic
414 mkdir -p ./src/unix
415 mkdir -p ./src/html
416 mkdir -p ./src/png
417 mkdir -p ./src/jpeg
418 mkdir -p ./src/zlib
419
420 @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
421 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
422 $(RANLIB) ./lib/$@
423
424 @WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
425 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
426
427 CREATE_LINKS: ./lib/@WX_TARGET_LIBRARY@
428 @if test -e ./lib/@WX_LIBRARY_LINK1@; then rm -f ./lib/@WX_LIBRARY_LINK1@; fi
429 @if test -e ./lib/@WX_LIBRARY_LINK2@; then rm -f ./lib/@WX_LIBRARY_LINK2@; fi
430 @if test -e ./lib/@WX_LIBRARY_LINK3@; then rm -f ./lib/@WX_LIBRARY_LINK3@; fi
431 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
432 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
433 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
434
435 CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
436 @if test -e $(libdir)/@WX_LIBRARY_LINK1@; then rm -f $(libdir)/@WX_LIBRARY_LINK1@; fi
437 @if test -e $(libdir)/@WX_LIBRARY_LINK2@; then rm -f $(libdir)/@WX_LIBRARY_LINK2@; fi
438 @if test -e $(libdir)/@WX_LIBRARY_LINK3@; then rm -f $(libdir)/@WX_LIBRARY_LINK3@; fi
439 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
440 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
441 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
442
443 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
444
445 parser.o: parser.c lexer.c
446 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
447
448 parser.c: $(COMMDIR)/parser.y lexer.c
449 $(YACC) $(COMMDIR)/parser.y
450 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
451 sed -e "s/BUFSIZ/5000/g" | \
452 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
453 sed -e "s/yy/PROIO_yy/g" | \
454 sed -e "s/input/PROIO_input/g" | \
455 sed -e "s/unput/PROIO_unput/g" > parser.c
456 @$(RM) y.tab.c
457
458 lexer.c: $(COMMDIR)/lexer.l
459 $(LEX) $(COMMDIR)/lexer.l
460 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
461 sed -e "s/yy/PROIO_yy/g" | \
462 sed -e "s/input/PROIO_input/g" | \
463 sed -e "s/unput/PROIO_unput/g" > lexer.c
464 @$(RM) lex.yy.c
465
466 preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
467 @echo " "
468 @echo " Installing wxWindows..."
469 @echo " "
470
471 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
472 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
473
474 @mkdir -p $(libdir)/wx
475 @mkdir -p $(libdir)/wx/include
476 @mkdir -p $(libdir)/wx/include/wx
477 @mkdir -p $(libdir)/wx/include/wx/@TOOLKIT_DIR@
478 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
479
480 @mkdir -p $(includedir)/wx
481 @mkdir -p $(includedir)/wx/msw
482 @mkdir -p $(includedir)/wx/gtk
483 @mkdir -p $(includedir)/wx/motif
484 @mkdir -p $(includedir)/wx/html
485 @mkdir -p $(includedir)/wx/protocol
486 @mkdir -p $(includedir)/wx/unix
487 @mkdir -p $(includedir)/wx/generic
488 @list='$(HEADERS)'; for p in $$list; do \
489 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
490 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
491 done
492
493 write_message:
494 @echo " "
495 @echo " The installation of wxWindows is finished. On certain"
496 @echo " platforms (e.g. Linux, Solaris) you'll now have to run"
497 @echo " ldconfig if you installed a shared library."
498 @echo " "
499 @echo " wxWindows comes with no guarantees and doesn't claim"
500 @echo " to be suitable for any purpose."
501 @echo " "
502 @echo " Read the wxWindows Licence on licencing conditions."
503 @echo " "
504
505 install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
506
507 uninstall:
508 @echo " "
509 @echo " Uninstalling wxWindows..."
510 @echo " "
511 @echo " Removing library..."
512 @rm -f $(libdir)/@WX_TARGET_LIBRARY@
513 @rm -f $(libdir)/@WX_LIBRARY_LINK1@
514 @rm -f $(libdir)/@WX_LIBRARY_LINK2@
515 @rm -f $(libdir)/@WX_LIBRARY_LINK3@
516 @echo " Removing helper files..."
517 @rm -f $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
518 @rm -f $(bindir)/wx-config
519 @echo " Removing headers..."
520 @list='$(HEADERS)'; for p in $$list; do \
521 rm -f $(includedir)/wx/$$p; \
522 done
523 @echo " Removing directories..."
524 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
525 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
526 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
527 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
528 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
529 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
530 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/msw; fi
531 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
532 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
533 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
534 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
535 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
536
537 ALL_DIST:
538 mkdir _dist_dir
539 mkdir $(DISTDIR)
540 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
541 cp $(WXDIR)/configure $(DISTDIR)
542 cp $(WXDIR)/config.sub $(DISTDIR)
543 cp $(WXDIR)/config.guess $(DISTDIR)
544 cp $(WXDIR)/install-sh $(DISTDIR)
545 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
546 cp $(WXDIR)/wx-config.in $(DISTDIR)
547 cp $(WXDIR)/setup.h.in $(DISTDIR)
548 cp $(WXDIR)/Makefile.in $(DISTDIR)
549 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
550 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
551 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
552 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
553 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
554 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
555 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
556 mkdir $(DISTDIR)/include
557 mkdir $(DISTDIR)/include/wx
558 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
559 mkdir $(DISTDIR)/include/wx/generic
560 mkdir $(DISTDIR)/include/wx/html
561 mkdir $(DISTDIR)/include/wx/unix
562 mkdir $(DISTDIR)/include/wx/protocol
563 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
564 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
565 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
566 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
567 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
568 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
569 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
570 mkdir $(DISTDIR)/src
571 mkdir $(DISTDIR)/src/common
572 mkdir $(DISTDIR)/src/generic
573 mkdir $(DISTDIR)/src/html
574 mkdir $(DISTDIR)/src/html/bitmaps
575 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
576 mkdir $(DISTDIR)/src/unix
577 mkdir $(DISTDIR)/src/png
578 mkdir $(DISTDIR)/src/jpeg
579 mkdir $(DISTDIR)/src/zlib
580 cp $(SRCDIR)/*.in $(DISTDIR)/src
581 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
582 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
583 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
584 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
585 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
586 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
587 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
588 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
589 cp $(HTMLDIR)/*.h $(DISTDIR)/src/html
590 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
591 cp $(UNIXDIR)/*.h $(DISTDIR)/src/unix
592 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
593 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
594 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
595 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
596 cp $(PNGDIR)/README $(DISTDIR)/src/png
597 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
598 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
599 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
600 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
601 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
602 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
603
604 GTK_DIST:
605 cp $(WXDIR)/wxGTK.spec $(DISTDIR)
606 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
607 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
608 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
609 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
610 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
611
612 MOTIF_DIST:
613 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
614 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
615 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
616 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
617 mkdir $(DISTDIR)/src/motif/xmcombo
618 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
619 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
620 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
621
622 MSW_DIST:
623 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
624 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
625 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
626 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
627 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
628 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
629 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
630 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
631 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
632 mkdir $(DISTDIR)/src/msw/ole
633 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
634
635 SAMPLES_DIST:
636 mkdir $(DISTDIR)/samples
637 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
638 mkdir $(DISTDIR)/samples/bombs
639 cp $(SAMPDIR)/bombs/Makefile.in $(DISTDIR)/samples/bombs
640 cp $(SAMPDIR)/bombs/*.cpp $(DISTDIR)/samples/bombs
641 cp $(SAMPDIR)/bombs/*.h $(DISTDIR)/samples/bombs
642 cp $(SAMPDIR)/bombs/*.xpm $(DISTDIR)/samples/bombs
643 cp $(SAMPDIR)/bombs/readme.txt $(DISTDIR)/samples/bombs
644 mkdir $(DISTDIR)/samples/caret
645 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
646 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
647 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
648 mkdir $(DISTDIR)/samples/config
649 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
650 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
651 mkdir $(DISTDIR)/samples/controls
652 mkdir $(DISTDIR)/samples/controls/icons
653 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
654 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
655 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
656 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
657 mkdir $(DISTDIR)/samples/checklst
658 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
659 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
660 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
661 mkdir $(DISTDIR)/samples/checkls
662 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
663 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
664 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
665 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
666 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
667
668 dist: ALL_DIST @GUIDIST@ SAMPLES_DIST
669 cd _dist_dir; tar ch wx$(TOOLKIT) | gzip -f9 > $(WXARCHIVE); mv $(WXARCHIVE) ..
670 rm -f -r _dist_dir
671
672 clean:
673 rm -f ./src/msw/*.o
674 rm -f ./src/gtk/*.o
675 rm -f ./src/motif/*.o
676 rm -f ./src/html/*.o
677 rm -f ./src/common/*.o
678 rm -f ./src/unix/*.o
679 rm -f ./src/generic/*.o
680 rm -f ./src/png/*.o
681 rm -f ./src/jpeg/*.o
682 rm -f ./src/zlib/*.o
683 rm -f *.o
684 rm -f parser.c
685 rm -f lexer.c
686 rm -f ./lib/*
687
688 cleanall: clean