]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/unx.t
*** empty log message ***
[wxWidgets.git] / distrib / msw / tmake / unx.t
CommitLineData
f56b8330
RR
1#!################################################################################
2#! File: unx.t
ad9edf45
RR
3#! Purpose: tmake template file from which Makefile.in is generated by running
4#! tmake -t unx wxwin.pro -o Makefile.in
f56b8330
RR
5#! Author: Vadim Zeitlin, Robert Roebling, Julian Smart
6#! Created: 14.07.99
7#! Version: $Id$
8#!################################################################################
f56b8330
RR
9#${
10 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes.
12 IncludeTemplate("filelist.t");
13
e4b4d60e
RR
14 #! Generic
15
16 foreach $file (sort keys %wxGeneric) {
17 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
18 #! so take the generic version
19 if ( $wxGeneric{$file} =~ /\b(PS|G|U|16)\b/ ) {
20 next unless $file =~ /^dirdlgg\./;
21 }
22
5586805b 23 $file2 = $file;
e4b4d60e 24 $file =~ s/cp?p?$/\o/;
5586805b
RR
25 $file2 =~ s/cp?p?$/\d/;
26 $project{"WXMSW_GENERICOBJS"} .= $file . " ";
27 $project{"WXMSW_GENERICDEPS"} .= $file2 . " "
e4b4d60e
RR
28 }
29
f56b8330 30 foreach $file (sort keys %wxGeneric) {
77282916 31 #! skip generic files not required for the wxGTK port
f56b8330
RR
32 next if $wxGeneric{$file} =~ /\bR\b/;
33
5586805b 34 $file2 = $file;
f56b8330 35 $file =~ s/cp?p?$/\o/;
5586805b
RR
36 $file2 =~ s/cp?p?$/\d/;
37 $project{"WXGTK_GENERICOBJS"} .= $file . " ";
38 $project{"WXGTK_GENERICDEPS"} .= $file2 . " "
073478b3
RR
39 }
40
073478b3 41 foreach $file (sort keys %wxGeneric) {
72ed7aae 42 next if $wxGeneric{$file} =~ /\bX\b/;
073478b3 43
5586805b 44 $file2 = $file;
073478b3 45 $file =~ s/cp?p?$/\o/;
5586805b
RR
46 $file2 =~ s/cp?p?$/\d/;
47 $project{"WXMOTIF_GENERICOBJS"} .= $file . " ";
48 $project{"WXMOTIF_GENERICDEPS"} .= $file2 . " "
f56b8330
RR
49 }
50
e4b4d60e
RR
51 #! Common
52
f56b8330 53 foreach $file (sort keys %wxCommon) {
37667812
VZ
54 ($fileobj = $file) =~ s/cp?p?$/\o/;
55 ($filedep = $file) =~ s/cp?p?$/\d/;
f56b8330 56
37667812
VZ
57 #! 'B' flag means that the file makes part of wxBase too
58 if ( $wxCommon{$file} =~ /\bB\b/ ) {
59 $project{"BASE_OBJS"} .= $fileobj . " ";
60 $project{"BASE_DEPS"} .= $filedep . " ";
61 }
f56b8330 62
37667812
VZ
63 #! if it's the wxBase-only file, nothing more to do with it
64 next if $wxCommon{$file} =~ /\bBO\b/;
e4b4d60e 65
37667812
VZ
66 if ( $wxCommon{$file} !~ /\bR\b/ ) { #! unless not for GTK
67 $project{"WXGTK_COMMONOBJS"} .= $fileobj . " ";
68 $project{"WXGTK_COMMONDEPS"} .= $filedep . " "
69 }
70 if ( $wxCommon{$file} !~ /\bX\b/ ) { #! unless not for Motif
71 $project{"WXMOTIF_COMMONOBJS"} .= $fileobj . " ";
72 $project{"WXMOTIF_COMMONDEPS"} .= $filedep . " "
73 }
e4b4d60e 74
37667812
VZ
75 #! ODBC needs extra files (sql*.h) so not compiled by default.
76 if ( (file !~ /^odbc\./) && ($wxCommon{$file} !~ /\b(16)\b/) ) {
77 $project{"WXMSW_COMMONOBJS"} .= $fileobj . " ";
78 $project{"WXMSW_COMMONDEPS"} .= $filedep . " "
79 }
e4b4d60e
RR
80 }
81
82 #! GUI
83
84 foreach $file (sort keys %wxMSW) {
85 #! Mingw32 doesn't have the OLE headers and has some troubles with
86 #! socket code
87 next if $wxMSW{$file} =~ /\b(O|16)\b/;
88
89 #! native wxDirDlg can't be compiled due to GnuWin32/OLE limitations,
90 next if $file =~ /^dirdlg\./;
91
5586805b 92 $file2 = $file;
e4b4d60e 93 $file =~ s/cp?p?$/\o/;
5586805b
RR
94 $file2 =~ s/cp?p?$/\d/;
95 $project{"WXMSW_GUIOBJS"} .= $file . " ";
96 $project{"WXMSW_GUIDEPS"} .= $file2 . " "
e4b4d60e
RR
97 }
98
f56b8330 99 foreach $file (sort keys %wxGTK) {
5586805b 100 $file2 = $file;
f56b8330 101 $file =~ s/cp?p?$/\o/;
5586805b
RR
102 $file2 =~ s/cp?p?$/\d/;
103 $project{"WXGTK_GUIOBJS"} .= $file . " ";
104 $project{"WXGTK_GUIDEPS"} .= $file2 . " "
073478b3
RR
105 }
106
107 foreach $file (sort keys %wxMOTIF) {
5586805b 108 $file2 = $file;
073478b3 109 $file =~ s/cp?p?$/\o/;
5586805b
RR
110 $file2 =~ s/cp?p?$/\d/;
111 $project{"WXMOTIF_GUIOBJS"} .= $file . " ";
112 $project{"WXMOTIF_GUIDEPS"} .= $file2 . " "
f56b8330
RR
113 }
114
e4b4d60e
RR
115 #! others
116
f56b8330 117 foreach $file (sort keys %wxHTML) {
5586805b 118 $file2 = $file;
f56b8330 119 $file =~ s/cp?p?$/\o/;
5586805b
RR
120 $file2 =~ s/cp?p?$/\d/;
121 $project{"WXHTMLOBJS"} .= $file . " ";
122 $project{"WXHTMLDEPS"} .= $file2 . " "
f56b8330
RR
123 }
124
125 foreach $file (sort keys %wxUNIX) {
37667812
VZ
126 ($fileobj = $file) =~ s/cp?p?$/\o/;
127 ($filedep = $file) =~ s/cp?p?$/\d/;
128
129 #! 'B' flag means that the file makes part of wxBase too
130 if ( $wxUNIX{$file} =~ /\bB\b/ ) {
131 $project{"BASE_OBJS"} .= $fileobj . " ";
132 $project{"BASE_DEPS"} .= $filedep . " "
133 }
134
135 $project{"WXUNIX_OBJS"} .= $fileobj . " ";
136 $project{"WXUNIX_DEPS"} .= $filedep . " "
f56b8330 137 }
23a54e14 138
e4b4d60e
RR
139 #! headers
140
2aa88730 141 foreach $file (sort keys %wxWXINCLUDE) {
37667812
VZ
142 $project{"WX_HEADERS"} .= $file . " ";
143 $project{"BASE_HEADERS"} .= $file . " " if $wxWXINCLUDE{$file} =~ /\bB\b/;
2aa88730
RR
144 }
145
146 foreach $file (sort keys %wxGENERICINCLUDE) {
147 $project{"WXGENERIC_HEADERS"} .= "generic/" . $file . " "
148 }
149
150 foreach $file (sort keys %wxMOTIFINCLUDE) {
151 $project{"WXMOTIF_HEADERS"} .= "motif/" . $file . " "
152 }
153
154 foreach $file (sort keys %wxGTKINCLUDE) {
155 $project{"WXGTK_HEADERS"} .= "gtk/" . $file . " "
156 }
157
a4aad961
RR
158 foreach $file (sort keys %wxMSWINCLUDE) {
159 $project{"WXMSW_HEADERS"} .= "msw/" . $file . " "
160 }
161
2aa88730
RR
162 foreach $file (sort keys %wxHTMLINCLUDE) {
163 $project{"WXHTML_HEADERS"} .= "html/" . $file . " "
164 }
165
166 foreach $file (sort keys %wxUNIXINCLUDE) {
167 $project{"WXUNIX_HEADERS"} .= "unix/" . $file . " "
168 }
169
170 foreach $file (sort keys %wxPROTOCOLINCLUDE) {
171 $project{"WXPROTOCOL_HEADERS"} .= "protocol/" . $file . " "
172 }
f56b8330 173#$}
23a54e14 174#
f56b8330
RR
175# This file was automatically generated by tmake at #$ Now()
176# DO NOT CHANGE THIS FILE, YOUR CHANGES WILL BE LOST! CHANGE UNX.T!
177
178#
179# File: makefile.unx
180# Author: Julian Smart, Robert Roebling, Vadim Zeitlin
181# Created: 1993
182# Updated: 1999
183# Copyright:(c) 1993, AIAI, University of Edinburgh,
184# Copyright:(c) 1999, Vadim Zeitlin
185# Copyright:(c) 1999, Robert Roebling
186#
187# Makefile for libwx_gtk.a, libwx_motif.a and libwx_msw.a
188
8e877c19 189###################################################################
f56b8330 190
2aa88730 191include ./src/make.env
f56b8330 192
48b1d0ff
RR
193############## override make.env for PIC ##########################
194
195# Clears all default suffixes
196.SUFFIXES: .o .cpp .c .cxx
197
198.c.o :
5586805b 199 $(CCC) -c @DEP_INFO_FLAGS@ $(CFLAGS) $(PICFLAGS) -o $@ $<
48b1d0ff
RR
200
201.cpp.o :
5586805b 202 $(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) -o $@ $<
48b1d0ff
RR
203
204.cxx.o :
5586805b 205 $(CC) -c @DEP_INFO_FLAGS@ $(CPPFLAGS) $(PICFLAGS) -o $@ $<
48b1d0ff 206
f56b8330
RR
207########################### Paths #################################
208
8e877c19
RR
209srcdir = @srcdir@
210
5586805b
RR
211VP1 = @top_srcdir@/src/common
212VP2 = @top_srcdir@/src/@TOOLKIT_DIR@
213VP3 = @top_srcdir@/src/motif/xmcombo
214VP4 = @top_srcdir@/src/generic
215VP5 = @top_srcdir@/src/unix
216VP6 = @top_srcdir@/src/html
217VP7 = @top_srcdir@/src/png
218VP8 = @top_srcdir@/src/jpeg
219VP9 = @top_srcdir@/src/zlib
220
221VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9)
f56b8330
RR
222
223top_srcdir = @top_srcdir@
224prefix = @prefix@
225exec_prefix = @exec_prefix@
226
227bindir = @bindir@
228sbindir = @sbindir@
229libexecdir = @libexecdir@
230datadir = @datadir@
231sysconfdir = @sysconfdir@
232sharedstatedir = @sharedstatedir@
233localstatedir = @localstatedir@
234libdir = @libdir@
235infodir = @infodir@
236mandir = @mandir@
237includedir = @includedir@
238oldincludedir = /usr/include
239
240DESTDIR =
241
242pkgdatadir = $(datadir)/@PACKAGE@
243pkglibdir = $(libdir)/@PACKAGE@
244pkgincludedir = $(includedir)/@PACKAGE@
245
2aa88730 246top_builddir = .
f56b8330
RR
247
248INSTALL = @INSTALL@
249INSTALL_PROGRAM = @INSTALL_PROGRAM@
250INSTALL_DATA = @INSTALL_DATA@
0b129e1a
KB
251# my autoconf doesn't set this
252#INSTALL_SCRIPT = @INSTALL_SCRIPT@
253# maybe do an additional chmod if needed?
254INSTALL_SCRIPT = @INSTALL@
f56b8330
RR
255transform = @program_transform_name@
256
257NORMAL_INSTALL = :
258PRE_INSTALL = :
259POST_INSTALL = :
260NORMAL_UNINSTALL = :
261PRE_UNINSTALL = :
262POST_UNINSTALL = :
263build_alias = @build_alias@
264build_triplet = @build@
265host_alias = @host_alias@
266host_triplet = @host@
267target_alias = @target_alias@
268target_triplet = @target@
269
8e877c19 270############################# Dirs #################################
f56b8330 271
2aa88730 272WXDIR = $(top_srcdir)
f56b8330
RR
273
274# Subordinate library possibilities
275
4cb122de
RR
276SRCDIR = $(WXDIR)/src
277GENDIR = $(WXDIR)/src/generic
278COMMDIR = $(WXDIR)/src/common
279HTMLDIR = $(WXDIR)/src/html
280UNIXDIR = $(WXDIR)/src/unix
281PNGDIR = $(WXDIR)/src/png
282JPEGDIR = $(WXDIR)/src/jpeg
283ZLIBDIR = $(WXDIR)/src/zlib
284GTKDIR = $(WXDIR)/src/gtk
073478b3 285MOTIFDIR = $(WXDIR)/src/motif
4cb122de
RR
286MSWDIR = $(WXDIR)/src/msw
287INCDIR = $(WXDIR)/include
288SAMPDIR = $(WXDIR)/samples
641d87d8 289UTILSDIR = $(WXDIR)/utils
a6f3598d 290MISCDIR = $(WXDIR)/misc
f56b8330 291
8e877c19
RR
292DOCDIR = $(WXDIR)/docs
293
a4aad961
RR
294########################## Archive name ###############################
295
a6f3598d 296WXARCHIVE = wx$(TOOLKIT)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER)-b9.tgz
a4aad961
RR
297DISTDIR = ./_dist_dir/wx$(TOOLKIT)
298
8e877c19 299############################## Files ##################################
f56b8330 300
37667812
VZ
301BASE_HEADERS = \
302 #$ ExpandList("BASE_HEADERS");
303
2aa88730
RR
304WX_HEADERS = \
305 #$ ExpandList("WX_HEADERS");
306
307GTK_HEADERS = \
308 #$ ExpandList("WXGTK_HEADERS");
309
310MOTIF_HEADERS = \
311 #$ ExpandList("WXMOTIF_HEADERS");
312
a4aad961
RR
313MSW_HEADERS = \
314 #$ ExpandList("WXMSW_HEADERS");
315
2aa88730
RR
316UNIX_HEADERS = \
317 #$ ExpandList("WXUNIX_HEADERS");
318
319GENERIC_HEADERS = \
320 #$ ExpandList("WXGENERIC_HEADERS");
321
322PROTOCOL_HEADERS = \
323 #$ ExpandList("WXPROTOCOL_HEADERS");
324
325HTML_HEADERS = \
326 #$ ExpandList("WXHTML_HEADERS");
327
073478b3 328GTK_GENERICOBJS = \
2aa88730 329 #$ ExpandList("WXGTK_GENERICOBJS");
073478b3 330
5586805b
RR
331GTK_GENERICDEPS = \
332 #$ ExpandList("WXGTK_GENERICDEPS");
333
2aa88730 334GTK_COMMONOBJS = \
073478b3
RR
335 parser.o \
336 #$ ExpandList("WXGTK_COMMONOBJS");
337
5586805b
RR
338GTK_COMMONDEPS = \
339 parser.d \
340 #$ ExpandList("WXGTK_COMMONDEPS");
341
2aa88730 342GTK_GUIOBJS = \
073478b3
RR
343 #$ ExpandList("WXGTK_GUIOBJS");
344
5586805b
RR
345GTK_GUIDEPS = \
346 #$ ExpandList("WXGTK_GUIDEPS");
347
073478b3 348MOTIF_GENERICOBJS = \
2aa88730 349 #$ ExpandList("WXMOTIF_GENERICOBJS");
f56b8330 350
5586805b
RR
351MOTIF_GENERICDEPS = \
352 #$ ExpandList("WXMOTIF_GENERICDEPS");
353
2aa88730 354MOTIF_COMMONOBJS = \
f56b8330 355 parser.o \
073478b3
RR
356 #$ ExpandList("WXMOTIF_COMMONOBJS");
357
5586805b
RR
358MOTIF_COMMONDEPS = \
359 parser.d \
360 #$ ExpandList("WXMOTIF_COMMONDEPS");
361
2aa88730 362MOTIF_GUIOBJS = \
5586805b 363 xmcombo.o \
073478b3 364 #$ ExpandList("WXMOTIF_GUIOBJS");
f56b8330 365
5586805b
RR
366MOTIF_GUIDEPS = \
367 xmcombo.d \
368 #$ ExpandList("WXMOTIF_GUIDEPS");
369
e4b4d60e
RR
370MSW_GENERICOBJS = \
371 #$ ExpandList("WXMSW_GENERICOBJS");
372
5586805b
RR
373MSW_GENERICDEPS = \
374 #$ ExpandList("WXMSW_GENERICDEPS");
375
e4b4d60e 376MSW_COMMONOBJS = \
80d895cd 377 parser.o \
e4b4d60e
RR
378 #$ ExpandList("WXMSW_COMMONOBJS");
379
5586805b 380MSW_COMMONDEPS = \
80d895cd 381 parser.d \
5586805b
RR
382 #$ ExpandList("WXMSW_COMMONDEPS");
383
e4b4d60e
RR
384MSW_GUIOBJS = \
385 #$ ExpandList("WXMSW_GUIOBJS");
386
5586805b
RR
387MSW_GUIDEPS = \
388 #$ ExpandList("WXMSW_GUIDEPS");
389
37667812
VZ
390BASE_OBJS = \
391 #$ ExpandList("BASE_OBJS");
392
393BASE_DEPS = \
394 #$ ExpandList("BASE_DEPS");
395
f56b8330 396HTMLOBJS = \
2aa88730 397 #$ ExpandList("WXHTMLOBJS");
f56b8330 398
5586805b
RR
399HTMLDEPS = \
400 #$ ExpandList("WXHTMLDEPS");
401
37667812
VZ
402UNIX_OBJS = \
403 #$ ExpandList("WXUNIX_OBJS");
f56b8330 404
37667812
VZ
405UNIX_DEPS = \
406 #$ ExpandList("WXUNIX_DEPS");
5586805b 407
f56b8330 408ZLIBOBJS = \
5586805b
RR
409 adler32.o \
410 compress.o \
411 crc32.o \
412 gzio.o \
413 uncompr.o \
414 deflate.o \
415 trees.o \
416 zutil.o \
417 inflate.o \
418 infblock.o \
419 inftrees.o \
420 infcodes.o \
421 infutil.o \
422 inffast.o
f56b8330
RR
423
424PNGOBJS = \
5586805b
RR
425 png.o \
426 pngread.o \
427 pngrtran.o \
428 pngrutil.o \
429 pngpread.o \
430 pngtrans.o \
431 pngwrite.o \
432 pngwtran.o \
433 pngwutil.o \
434 pngerror.o \
435 pngmem.o \
436 pngwio.o \
437 pngrio.o \
438 pngget.o \
439 pngset.o
f56b8330
RR
440
441
442JPEGOBJS = \
5586805b
RR
443 jcomapi.o \
444 jutils.o \
445 jerror.o \
446 jmemmgr.o \
447 jmemnobs.o \
448 jcapimin.o \
449 jcapistd.o \
450 jctrans.o \
451 jcparam.o \
452 jdatadst.o \
453 jcinit.o \
454 jcmaster.o \
455 jcmarker.o \
456 jcmainct.o \
457 jcprepct.o \
458 jccoefct.o \
459 jccolor.o \
460 jcsample.o \
461 jchuff.o \
462 jcphuff.o \
463 jcdctmgr.o \
464 jfdctfst.o \
465 jfdctflt.o \
466 jfdctint.o \
467 jdapimin.o \
468 jdapistd.o \
469 jdtrans.o \
470 jdatasrc.o \
471 jdmaster.o \
472 jdinput.o \
473 jdmarker.o \
474 jdhuff.o \
475 jdphuff.o \
476 jdmainct.o \
477 jdcoefct.o \
478 jdpostct.o \
479 jddctmgr.o \
480 jidctfst.o \
481 jidctflt.o \
482 jidctint.o \
483 jidctred.o \
484 jdsample.o \
485 jdcolor.o \
486 jquant1.o \
487 jquant2.o \
488 jdmerge.o
f56b8330 489
37667812
VZ
490GUIOBJS = @GUIOBJS@
491GUIDEPS = @GUIDEPS@
492GUIHEADERS = @GUIHEADERS@
493COMMONOBJS = @COMMONOBJS@
494COMMONDEPS = @COMMONDEPS@
495GENERICOBJS = @GENERICOBJS@
496GENERICDEPS = @GENERICDEPS@
497UNIXOBJS = @UNIXOBJS@
498UNIXDEPS = @UNIXDEPS@
073478b3 499
37667812 500OBJECTS = @ALL_OBJECTS@
f56b8330 501
37667812 502DEPFILES = @ALL_DEPFILES@
5586805b 503
37667812 504HEADERS = @ALL_HEADERS@
f56b8330 505
de87c353 506all: @WX_ALL@
8e877c19 507
48b1d0ff 508@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
4130b487 509 @$(INSTALL) -d ./lib
2aa88730
RR
510 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
511 $(RANLIB) ./lib/$@
f56b8330 512
48b1d0ff 513@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
4130b487 514 @$(INSTALL) -d ./lib
2aa88730 515 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
48b1d0ff 516
de87c353 517CREATE_LINKS: @WX_LIBRARY_NAME_SHARED@
4130b487
RR
518 @$(RM) ./lib/@WX_LIBRARY_LINK1@
519 @$(RM) ./lib/@WX_LIBRARY_LINK2@
520 @$(RM) ./lib/@WX_LIBRARY_LINK3@
2aa88730
RR
521 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
522 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
523 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
48b1d0ff 524
de87c353 525CREATE_INSTALLED_LINKS: $(libdir)/@WX_LIBRARY_NAME_SHARED@
5586805b
RR
526 $(RM) $(libdir)/@WX_LIBRARY_LINK1@
527 $(RM) $(libdir)/@WX_LIBRARY_LINK2@
528 $(RM) $(libdir)/@WX_LIBRARY_LINK3@
de87c353
RR
529 $(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK1@
530 $(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK2@
531 $(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK3@
517a619d 532
f56b8330
RR
533$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
534
535parser.o: parser.c lexer.c
8636aed8 536 $(CCLEX) -c $(CFLAGS) $(PICFLAGS) -o $@ parser.c
f56b8330
RR
537
538parser.c: $(COMMDIR)/parser.y lexer.c
539 $(YACC) $(COMMDIR)/parser.y
540 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
541 sed -e "s/BUFSIZ/5000/g" | \
542 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
543 sed -e "s/yy/PROIO_yy/g" | \
544 sed -e "s/input/PROIO_input/g" | \
545 sed -e "s/unput/PROIO_unput/g" > parser.c
546 @$(RM) y.tab.c
547
548lexer.c: $(COMMDIR)/lexer.l
549 $(LEX) $(COMMDIR)/lexer.l
550 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
551 sed -e "s/yy/PROIO_yy/g" | \
552 sed -e "s/input/PROIO_input/g" | \
553 sed -e "s/unput/PROIO_unput/g" > lexer.c
554 @$(RM) lex.yy.c
555
5586805b
RR
556-include $(DEPFILES)
557
517a619d
RR
558preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
559 @echo " "
560 @echo " Installing wxWindows..."
561 @echo " "
2aa88730 562
0b129e1a
KB
563 $(INSTALL) -d $(prefix)
564 $(INSTALL) -d $(bindir)
565 $(INSTALL) -d $(libdir)
a6f3598d 566 $(INSTALL) -d $(datadir)
0b129e1a 567
2aa88730
RR
568 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
569 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
0b129e1a
KB
570
571 $(INSTALL) -d $(libdir)/wx
572 $(INSTALL) -d $(libdir)/wx/include
573 $(INSTALL) -d $(libdir)/wx/include/wx
574 $(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@
517a619d 575 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
2aa88730 576
a6f3598d
RR
577 $(INSTALL) -d $(datadir)/wx
578 $(INSTALL) -d $(datadir)/wx/afm
579 $(INSTALL) -d $(datadir)/wx/gs_afm
580 $(INSTALL_DATA) $(top_srcdir)/misc/afm/*.afm $(datadir)/wx/afm
581 $(INSTALL_DATA) $(top_srcdir)/misc/gs_afm/*.afm $(datadir)/wx/gs_afm
582
0b129e1a
KB
583 $(INSTALL) -d $(includedir)/wx
584 $(INSTALL) -d $(includedir)/wx/msw
585 $(INSTALL) -d $(includedir)/wx/gtk
586 $(INSTALL) -d $(includedir)/wx/motif
587 $(INSTALL) -d $(includedir)/wx/html
588 $(INSTALL) -d $(includedir)/wx/protocol
589 $(INSTALL) -d $(includedir)/wx/unix
590 $(INSTALL) -d $(includedir)/wx/generic
2aa88730 591 @list='$(HEADERS)'; for p in $$list; do \
2aa88730 592 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
517a619d
RR
593 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
594 done
595
596write_message:
597 @echo " "
598 @echo " The installation of wxWindows is finished. On certain"
599 @echo " platforms (e.g. Linux, Solaris) you'll now have to run"
600 @echo " ldconfig if you installed a shared library."
601 @echo " "
602 @echo " wxWindows comes with no guarantees and doesn't claim"
603 @echo " to be suitable for any purpose."
604 @echo " "
605 @echo " Read the wxWindows Licence on licencing conditions."
606 @echo " "
607
de87c353 608install: preinstall @WX_ALL_INSTALLED@ write_message
2aa88730
RR
609
610uninstall:
517a619d
RR
611 @echo " "
612 @echo " Uninstalling wxWindows..."
613 @echo " "
614 @echo " Removing library..."
0b129e1a
KB
615 @$(RM) $(libdir)/@WX_TARGET_LIBRARY@
616 @$(RM) $(libdir)/@WX_LIBRARY_LINK1@
617 @$(RM) $(libdir)/@WX_LIBRARY_LINK2@
618 @$(RM) $(libdir)/@WX_LIBRARY_LINK3@
517a619d 619 @echo " Removing helper files..."
0b129e1a
KB
620 @$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
621 @$(RM) $(bindir)/wx-config
a6f3598d
RR
622 @$(RM) $(datadir)/wx/afm/*
623 @$(RM) $(datadir)/wx/gs_afm/*
624 @rmdir $(datadir)/wx/gs_afm
625 @rmdir $(datadir)/wx/afm
626 @rmdir $(datadir)/wx
517a619d
RR
627 @echo " Removing headers..."
628 @list='$(HEADERS)'; for p in $$list; do \
0b129e1a 629 $(RM) $(includedir)/wx/$$p; \
517a619d
RR
630 done
631 @echo " Removing directories..."
632 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
633 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
634 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
635 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
636 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
637 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
a6f3598d 638 @if test -d $(includedir)/wx/msw; then rmdir $(includedir)/wx/msw; fi
517a619d
RR
639 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
640 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
641 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
642 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
643 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
23a54e14 644
4cb122de 645ALL_DIST:
a4aad961
RR
646 mkdir _dist_dir
647 mkdir $(DISTDIR)
648 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
649 cp $(WXDIR)/configure $(DISTDIR)
650 cp $(WXDIR)/config.sub $(DISTDIR)
651 cp $(WXDIR)/config.guess $(DISTDIR)
652 cp $(WXDIR)/install-sh $(DISTDIR)
653 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
654 cp $(WXDIR)/wx-config.in $(DISTDIR)
655 cp $(WXDIR)/setup.h.in $(DISTDIR)
656 cp $(WXDIR)/Makefile.in $(DISTDIR)
657 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
658 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
659 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
660 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
661 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
662 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
663 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
664 mkdir $(DISTDIR)/include
665 mkdir $(DISTDIR)/include/wx
666 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
667 mkdir $(DISTDIR)/include/wx/generic
668 mkdir $(DISTDIR)/include/wx/html
669 mkdir $(DISTDIR)/include/wx/unix
670 mkdir $(DISTDIR)/include/wx/protocol
671 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
672 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
673 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
674 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
675 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
676 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
677 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
4cb122de
RR
678 mkdir $(DISTDIR)/src
679 mkdir $(DISTDIR)/src/common
680 mkdir $(DISTDIR)/src/generic
681 mkdir $(DISTDIR)/src/html
682 mkdir $(DISTDIR)/src/html/bitmaps
683 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
684 mkdir $(DISTDIR)/src/unix
685 mkdir $(DISTDIR)/src/png
686 mkdir $(DISTDIR)/src/jpeg
687 mkdir $(DISTDIR)/src/zlib
688 cp $(SRCDIR)/*.in $(DISTDIR)/src
689 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
690 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
691 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
692 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
693 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
694 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
695 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
696 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
697 cp $(HTMLDIR)/*.h $(DISTDIR)/src/html
698 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
699 cp $(UNIXDIR)/*.h $(DISTDIR)/src/unix
700 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
701 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
702 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
703 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
704 cp $(PNGDIR)/README $(DISTDIR)/src/png
705 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
706 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
707 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
708 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
709 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
710 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
a4aad961
RR
711
712GTK_DIST:
4cb122de 713 cp $(WXDIR)/wxGTK.spec $(DISTDIR)
a4aad961 714 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
4cb122de
RR
715 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
716 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
717 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
718 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
a4aad961
RR
719
720MOTIF_DIST:
4cb122de 721 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
a4aad961 722 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
4cb122de
RR
723 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
724 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
725 mkdir $(DISTDIR)/src/motif/xmcombo
726 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
727 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
728 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
a4aad961
RR
729
730MSW_DIST:
4cb122de 731 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
a4aad961
RR
732 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
733 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
734 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
735 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
736 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
4cb122de
RR
737 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
738 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
739 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
740 mkdir $(DISTDIR)/src/msw/ole
741 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
742
743SAMPLES_DIST:
744 mkdir $(DISTDIR)/samples
745 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
746 mkdir $(DISTDIR)/samples/bombs
747 cp $(SAMPDIR)/bombs/Makefile.in $(DISTDIR)/samples/bombs
748 cp $(SAMPDIR)/bombs/*.cpp $(DISTDIR)/samples/bombs
749 cp $(SAMPDIR)/bombs/*.h $(DISTDIR)/samples/bombs
750 cp $(SAMPDIR)/bombs/*.xpm $(DISTDIR)/samples/bombs
751 cp $(SAMPDIR)/bombs/readme.txt $(DISTDIR)/samples/bombs
752 mkdir $(DISTDIR)/samples/caret
753 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
754 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
755 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
756 mkdir $(DISTDIR)/samples/config
757 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
758 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
759 mkdir $(DISTDIR)/samples/controls
760 mkdir $(DISTDIR)/samples/controls/icons
761 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
762 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
763 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
764 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
765 mkdir $(DISTDIR)/samples/checklst
766 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
767 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
768 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
641d87d8 769 mkdir $(DISTDIR)/samples/printing
27ea1d8a
RR
770 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
771 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
772 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
773 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
774 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
641d87d8
RR
775 mkdir $(DISTDIR)/samples/dialogs
776 cp $(SAMPDIR)/dialogs/Makefile.in $(DISTDIR)/samples/dialogs
777 cp $(SAMPDIR)/dialogs/*.cpp $(DISTDIR)/samples/dialogs
778 cp $(SAMPDIR)/dialogs/*.h $(DISTDIR)/samples/dialogs
779 cp $(SAMPDIR)/dialogs/*.txt $(DISTDIR)/samples/dialogs
780 mkdir $(DISTDIR)/samples/dnd
781 cp $(SAMPDIR)/dnd/Makefile.in $(DISTDIR)/samples/dnd
782 cp $(SAMPDIR)/dnd/*.cpp $(DISTDIR)/samples/dnd
783 cp $(SAMPDIR)/dnd/*.xpm $(DISTDIR)/samples/dnd
784 cp $(SAMPDIR)/dnd/*.txt $(DISTDIR)/samples/dnd
785 cp $(SAMPDIR)/dnd/*.png $(DISTDIR)/samples/dnd
786 mkdir $(DISTDIR)/samples/docview
787 cp $(SAMPDIR)/docview/Makefile.in $(DISTDIR)/samples/docview
788 cp $(SAMPDIR)/docview/*.cpp $(DISTDIR)/samples/docview
789 cp $(SAMPDIR)/docview/*.h $(DISTDIR)/samples/docview
790 cp $(SAMPDIR)/docview/*.xpm $(DISTDIR)/samples/docview
791 mkdir $(DISTDIR)/samples/docvwmdi
792 cp $(SAMPDIR)/docvwmdi/Makefile.in $(DISTDIR)/samples/docvwmdi
793 cp $(SAMPDIR)/docvwmdi/*.cpp $(DISTDIR)/samples/docvwmdi
794 cp $(SAMPDIR)/docvwmdi/*.h $(DISTDIR)/samples/docvwmdi
795 mkdir $(DISTDIR)/samples/drawing
796 cp $(SAMPDIR)/drawing/Makefile.in $(DISTDIR)/samples/drawing
797 cp $(SAMPDIR)/drawing/*.cpp $(DISTDIR)/samples/drawing
798 cp $(SAMPDIR)/drawing/*.xpm $(DISTDIR)/samples/drawing
799 mkdir $(DISTDIR)/samples/dynamic
800 cp $(SAMPDIR)/dynamic/Makefile.in $(DISTDIR)/samples/dynamic
801 cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
802 cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
803 mkdir $(DISTDIR)/samples/html
804 cp $(SAMPDIR)/html/Makefile.in $(DISTDIR)/samples/html
805 mkdir $(DISTDIR)/samples/html/about
806 cp $(SAMPDIR)/html/about/Makefile.in $(DISTDIR)/samples/html/about
807 cp $(SAMPDIR)/html/about/*.cpp $(DISTDIR)/samples/html/about
808 mkdir $(DISTDIR)/samples/html/about/data
809 cp $(SAMPDIR)/html/about/data/*.htm $(DISTDIR)/samples/html/about/data
810 cp $(SAMPDIR)/html/about/data/*.png $(DISTDIR)/samples/html/about/data
811 mkdir $(DISTDIR)/samples/html/help
812 cp $(SAMPDIR)/html/help/Makefile.in $(DISTDIR)/samples/html/help
813 cp $(SAMPDIR)/html/help/*.cpp $(DISTDIR)/samples/html/help
814 mkdir $(DISTDIR)/samples/html/help/helpfiles
815 cp $(SAMPDIR)/html/help/helpfiles/*.??? $(DISTDIR)/samples/html/help/helpfiles
816 mkdir $(DISTDIR)/samples/html/printing
817 cp $(SAMPDIR)/html/printing/Makefile.in $(DISTDIR)/samples/html/printing
818 cp $(SAMPDIR)/html/printing/*.xpm $(DISTDIR)/samples/html/printing
819 cp $(SAMPDIR)/html/printing/*.cpp $(DISTDIR)/samples/html/printing
820 cp $(SAMPDIR)/html/printing/*.h $(DISTDIR)/samples/html/printing
821 cp $(SAMPDIR)/html/printing/*.png $(DISTDIR)/samples/html/printing
822 cp $(SAMPDIR)/html/printing/*.htm $(DISTDIR)/samples/html/printing
823 mkdir $(DISTDIR)/samples/html/test
824 cp $(SAMPDIR)/html/test/Makefile.in $(DISTDIR)/samples/html/test
825 cp $(SAMPDIR)/html/test/*.cpp $(DISTDIR)/samples/html/test
826 cp $(SAMPDIR)/html/test/*.bmp $(DISTDIR)/samples/html/test
827 cp $(SAMPDIR)/html/test/*.png $(DISTDIR)/samples/html/test
828 cp $(SAMPDIR)/html/test/*.htm $(DISTDIR)/samples/html/test
829 cp $(SAMPDIR)/html/test/*.html $(DISTDIR)/samples/html/test
830 mkdir $(DISTDIR)/samples/html/virtual
831 cp $(SAMPDIR)/html/virtual/Makefile.in $(DISTDIR)/samples/html/virtual
832 cp $(SAMPDIR)/html/virtual/*.cpp $(DISTDIR)/samples/html/virtual
833 cp $(SAMPDIR)/html/virtual/*.htm $(DISTDIR)/samples/html/virtual
834 mkdir $(DISTDIR)/samples/html/widget
835 cp $(SAMPDIR)/html/widget/Makefile.in $(DISTDIR)/samples/html/widget
836 cp $(SAMPDIR)/html/widget/*.cpp $(DISTDIR)/samples/html/widget
837 cp $(SAMPDIR)/html/widget/*.htm $(DISTDIR)/samples/html/widget
838 mkdir $(DISTDIR)/samples/html/zip
839 cp $(SAMPDIR)/html/zip/Makefile.in $(DISTDIR)/samples/html/zip
840 cp $(SAMPDIR)/html/zip/*.cpp $(DISTDIR)/samples/html/zip
841 cp $(SAMPDIR)/html/zip/*.htm $(DISTDIR)/samples/html/zip
842 cp $(SAMPDIR)/html/zip/*.zip $(DISTDIR)/samples/html/zip
843 mkdir $(DISTDIR)/samples/image
844 cp $(SAMPDIR)/image/Makefile.in $(DISTDIR)/samples/image
845 cp $(SAMPDIR)/image/*.cpp $(DISTDIR)/samples/image
846 cp $(SAMPDIR)/image/horse.* $(DISTDIR)/samples/image
847 mkdir $(DISTDIR)/samples/layout
848 cp $(SAMPDIR)/layout/Makefile.in $(DISTDIR)/samples/layout
849 cp $(SAMPDIR)/layout/*.cpp $(DISTDIR)/samples/layout
850 cp $(SAMPDIR)/layout/*.h $(DISTDIR)/samples/layout
851 mkdir $(DISTDIR)/samples/listctrl
852 cp $(SAMPDIR)/listctrl/Makefile.in $(DISTDIR)/samples/listctrl
853 cp $(SAMPDIR)/listctrl/*.cpp $(DISTDIR)/samples/listctrl
854 cp $(SAMPDIR)/listctrl/*.h $(DISTDIR)/samples/listctrl
855 cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl
856 mkdir $(DISTDIR)/samples/listctrl/bitmap
857 cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl/bitmaps
858 mkdir $(DISTDIR)/samples/mdi
859 cp $(SAMPDIR)/mdi/Makefile.in $(DISTDIR)/samples/mdi
860 cp $(SAMPDIR)/mdi/*.cpp $(DISTDIR)/samples/mdi
861 cp $(SAMPDIR)/mdi/*.h $(DISTDIR)/samples/mdi
862 cp $(SAMPDIR)/mdi/*.xpm $(DISTDIR)/samples/mdi
863 mkdir $(DISTDIR)/samples/minifram
864 cp $(SAMPDIR)/minifram/Makefile.in $(DISTDIR)/samples/minifram
865 cp $(SAMPDIR)/minifram/*.cpp $(DISTDIR)/samples/minifram
866 cp $(SAMPDIR)/minifram/*.h $(DISTDIR)/samples/minifram
867 cp $(SAMPDIR)/minifram/*.xpm $(DISTDIR)/samples/minifram
868 mkdir $(DISTDIR)/samples/minifram/bitmap
869 cp $(SAMPDIR)/minifram/*.xpm $(DISTDIR)/samples/minifram/bitmaps
870 mkdir $(DISTDIR)/samples/minimal
871 cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
872 cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
873 cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
f85afd4e
MB
874 mkdir $(DISTDIR)/samples/newgrid
875 cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
876 cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
877 cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
641d87d8
RR
878 mkdir $(DISTDIR)/samples/notebook
879 cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
880 cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
881 cp $(SAMPDIR)/notebook/*.h $(DISTDIR)/samples/notebook
882 mkdir $(DISTDIR)/samples/proplist
883 cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
884 cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
885 cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
886 mkdir $(DISTDIR)/samples/sashtest
887 cp $(SAMPDIR)/sashtest/Makefile.in $(DISTDIR)/samples/sashtest
888 cp $(SAMPDIR)/sashtest/*.cpp $(DISTDIR)/samples/sashtest
889 cp $(SAMPDIR)/sashtest/*.h $(DISTDIR)/samples/sashtest
890 mkdir $(DISTDIR)/samples/scroll
891 cp $(SAMPDIR)/scroll/Makefile.in $(DISTDIR)/samples/scroll
892 cp $(SAMPDIR)/scroll/*.cpp $(DISTDIR)/samples/scroll
893 mkdir $(DISTDIR)/samples/splitter
894 cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
895 cp $(SAMPDIR)/splitter/*.cpp $(DISTDIR)/samples/splitter
896 mkdir $(DISTDIR)/samples/text
897 cp $(SAMPDIR)/text/Makefile.in $(DISTDIR)/samples/text
898 cp $(SAMPDIR)/text/*.cpp $(DISTDIR)/samples/text
899 cp $(SAMPDIR)/text/*.xpm $(DISTDIR)/samples/text
900 mkdir $(DISTDIR)/samples/thread
901 cp $(SAMPDIR)/thread/Makefile.in $(DISTDIR)/samples/thread
902 cp $(SAMPDIR)/thread/*.cpp $(DISTDIR)/samples/thread
903 mkdir $(DISTDIR)/samples/toolbar
904 cp $(SAMPDIR)/toolbar/Makefile.in $(DISTDIR)/samples/toolbar
905 cp $(SAMPDIR)/toolbar/*.cpp $(DISTDIR)/samples/toolbar
906 cp $(SAMPDIR)/toolbar/*.h $(DISTDIR)/samples/toolbar
907 cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar
908 mkdir $(DISTDIR)/samples/toolbar/bitmap
909 cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar/bitmaps
910 mkdir $(DISTDIR)/samples/treectrl
911 cp $(SAMPDIR)/treectrl/Makefile.in $(DISTDIR)/samples/treectrl
912 cp $(SAMPDIR)/treectrl/*.cpp $(DISTDIR)/samples/treectrl
913 cp $(SAMPDIR)/treectrl/*.h $(DISTDIR)/samples/treectrl
914 cp $(SAMPDIR)/treectrl/*.xpm $(DISTDIR)/samples/treectrl
915 mkdir $(DISTDIR)/samples/typetest
916 cp $(SAMPDIR)/typetest/Makefile.in $(DISTDIR)/samples/typetest
917 cp $(SAMPDIR)/typetest/*.cpp $(DISTDIR)/samples/typetest
918 cp $(SAMPDIR)/typetest/*.h $(DISTDIR)/samples/typetest
919 cp $(SAMPDIR)/typetest/*.xpm $(DISTDIR)/samples/typetest
920 mkdir $(DISTDIR)/samples/validate
921 cp $(SAMPDIR)/validate/Makefile.in $(DISTDIR)/samples/validate
922 cp $(SAMPDIR)/validate/*.cpp $(DISTDIR)/samples/validate
923 cp $(SAMPDIR)/validate/*.h $(DISTDIR)/samples/validate
924 cp $(SAMPDIR)/validate/*.xpm $(DISTDIR)/samples/validate
925 mkdir $(DISTDIR)/samples/wizard
926 cp $(SAMPDIR)/wizard/Makefile.in $(DISTDIR)/samples/wizard
927 cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
928 cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
929 mkdir $(DISTDIR)/samples/wxpoem
930 cp $(SAMPDIR)/wxpoem/Makefile.in $(DISTDIR)/samples/wxpoem
931 cp $(SAMPDIR)/wxpoem/*.cpp $(DISTDIR)/samples/wxpoem
932 cp $(SAMPDIR)/wxpoem/*.xpm $(DISTDIR)/samples/wxpoem
933 cp $(SAMPDIR)/wxpoem/*.dat $(DISTDIR)/samples/wxpoem
934 cp $(SAMPDIR)/wxpoem/*.txt $(DISTDIR)/samples/wxpoem
935 mkdir $(DISTDIR)/samples/wxsocket
936 cp $(SAMPDIR)/wxsocket/Makefile.in $(DISTDIR)/samples/wxsocket
937 cp $(SAMPDIR)/wxsocket/*.cpp $(DISTDIR)/samples/wxsocket
938 cp $(SAMPDIR)/wxsocket/*.xpm $(DISTDIR)/samples/wxsocket
939
940UTILS_DIST:
941 mkdir $(DISTDIR)/utils
942 cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
943 mkdir $(DISTDIR)/utils/wxMMedia2
944 cp $(UTILSDIR)/wxMMedia2/Makefile.in $(DISTDIR)/utils/wxMMedia2
945 mkdir $(DISTDIR)/utils/wxMMedia2/lib
946 cp $(UTILSDIR)/wxMMedia2/lib/Makefile.in $(DISTDIR)/utils/wxMMedia2/lib
947 cp $(UTILSDIR)/wxMMedia2/lib/*.h $(DISTDIR)/utils/wxMMedia2/lib
948 cp $(UTILSDIR)/wxMMedia2/lib/*.cpp $(DISTDIR)/utils/wxMMedia2/lib
949 cp $(UTILSDIR)/wxMMedia2/lib/*.def $(DISTDIR)/utils/wxMMedia2/lib
950 mkdir $(DISTDIR)/utils/wxMMedia2/sample
951 cp $(UTILSDIR)/wxMMedia2/sample/Makefile.in $(DISTDIR)/utils/wxMMedia2/sample
952 cp $(UTILSDIR)/wxMMedia2/sample/*.cpp $(DISTDIR)/utils/wxMMedia2/sample
953 mkdir $(DISTDIR)/utils/glcanvas
954 cp $(UTILSDIR)/glcanvas/Makefile.in $(DISTDIR)/utils/glcanvas
955 cp $(UTILSDIR)/glcanvas/docs/notes.txt $(DISTDIR)/utils/glcanvas/NOTES.txt
956 mkdir $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
957 cp $(UTILSDIR)/glcanvas/$(TOOLKITDIR)/Makefile.in $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
958 cp $(UTILSDIR)/glcanvas/$(TOOLKITDIR)/*.h $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
959 cp $(UTILSDIR)/glcanvas/$(TOOLKITDIR)/*.cpp $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
960
a6f3598d
RR
961MISC_DIST:
962 mkdir $(DISTDIR)/misc
963 mkdir $(DISTDIR)/misc/afm
964 cp $(MISCDIR)/afm/*.afm $(DISTDIR)/misc/afm
965 mkdir $(DISTDIR)/misc/gs_afm
966 cp $(MISCDIR)/gs_afm/*.afm $(DISTDIR)/misc/gs_afm
967
968dist: ALL_DIST @GUIDIST@ SAMPLES_DIST UTILS_DIST MISC_DIST
a4aad961 969 cd _dist_dir; tar ch wx$(TOOLKIT) | gzip -f9 > $(WXARCHIVE); mv $(WXARCHIVE) ..
0b129e1a 970 $(RM) -r _dist_dir
a4aad961 971
f56b8330 972clean:
0b129e1a 973 $(RM) *.o
5586805b 974 $(RM) *.d
0b129e1a
KB
975 $(RM) parser.c
976 $(RM) lexer.c
977 $(RM) ./lib/*
f56b8330
RR
978
979cleanall: clean