]> git.saurik.com Git - wxWidgets.git/blame - distrib/msw/tmake/unx.t
small updates for Linux->Win32 cross compilation
[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
e115e771 220VP10 = @top_srcdir@/src/iodbc
5586805b 221
e115e771 222VPATH = $(VP1):$(VP2):$(VP3):$(VP4):$(VP5):$(VP6):$(VP7):$(VP8):$(VP9):$(VP10)
f56b8330
RR
223
224top_srcdir = @top_srcdir@
225prefix = @prefix@
226exec_prefix = @exec_prefix@
227
228bindir = @bindir@
229sbindir = @sbindir@
230libexecdir = @libexecdir@
231datadir = @datadir@
232sysconfdir = @sysconfdir@
233sharedstatedir = @sharedstatedir@
234localstatedir = @localstatedir@
235libdir = @libdir@
236infodir = @infodir@
237mandir = @mandir@
238includedir = @includedir@
239oldincludedir = /usr/include
240
241DESTDIR =
242
243pkgdatadir = $(datadir)/@PACKAGE@
244pkglibdir = $(libdir)/@PACKAGE@
245pkgincludedir = $(includedir)/@PACKAGE@
246
2aa88730 247top_builddir = .
f56b8330
RR
248
249INSTALL = @INSTALL@
250INSTALL_PROGRAM = @INSTALL_PROGRAM@
251INSTALL_DATA = @INSTALL_DATA@
0b129e1a
KB
252# my autoconf doesn't set this
253#INSTALL_SCRIPT = @INSTALL_SCRIPT@
254# maybe do an additional chmod if needed?
255INSTALL_SCRIPT = @INSTALL@
f56b8330
RR
256transform = @program_transform_name@
257
258NORMAL_INSTALL = :
259PRE_INSTALL = :
260POST_INSTALL = :
261NORMAL_UNINSTALL = :
262PRE_UNINSTALL = :
263POST_UNINSTALL = :
264build_alias = @build_alias@
265build_triplet = @build@
266host_alias = @host_alias@
267host_triplet = @host@
268target_alias = @target_alias@
269target_triplet = @target@
270
8e877c19 271############################# Dirs #################################
f56b8330 272
2aa88730 273WXDIR = $(top_srcdir)
f56b8330
RR
274
275# Subordinate library possibilities
276
4cb122de
RR
277SRCDIR = $(WXDIR)/src
278GENDIR = $(WXDIR)/src/generic
279COMMDIR = $(WXDIR)/src/common
280HTMLDIR = $(WXDIR)/src/html
281UNIXDIR = $(WXDIR)/src/unix
282PNGDIR = $(WXDIR)/src/png
283JPEGDIR = $(WXDIR)/src/jpeg
284ZLIBDIR = $(WXDIR)/src/zlib
285GTKDIR = $(WXDIR)/src/gtk
073478b3 286MOTIFDIR = $(WXDIR)/src/motif
4cb122de 287MSWDIR = $(WXDIR)/src/msw
c09ab26a 288ODBCDIR = $(WXDIR)/src/iodbc
4cb122de
RR
289INCDIR = $(WXDIR)/include
290SAMPDIR = $(WXDIR)/samples
641d87d8 291UTILSDIR = $(WXDIR)/utils
a6f3598d 292MISCDIR = $(WXDIR)/misc
f56b8330 293
8e877c19
RR
294DOCDIR = $(WXDIR)/docs
295
a4aad961
RR
296########################## Archive name ###############################
297
79144b8a 298WXARCHIVE = wx$(TOOLKIT)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER).tgz
a4aad961
RR
299DISTDIR = ./_dist_dir/wx$(TOOLKIT)
300
8e877c19 301############################## Files ##################################
f56b8330 302
37667812
VZ
303BASE_HEADERS = \
304 #$ ExpandList("BASE_HEADERS");
305
2aa88730
RR
306WX_HEADERS = \
307 #$ ExpandList("WX_HEADERS");
308
309GTK_HEADERS = \
310 #$ ExpandList("WXGTK_HEADERS");
311
312MOTIF_HEADERS = \
313 #$ ExpandList("WXMOTIF_HEADERS");
314
a4aad961
RR
315MSW_HEADERS = \
316 #$ ExpandList("WXMSW_HEADERS");
317
2aa88730
RR
318UNIX_HEADERS = \
319 #$ ExpandList("WXUNIX_HEADERS");
320
321GENERIC_HEADERS = \
322 #$ ExpandList("WXGENERIC_HEADERS");
323
324PROTOCOL_HEADERS = \
325 #$ ExpandList("WXPROTOCOL_HEADERS");
326
327HTML_HEADERS = \
328 #$ ExpandList("WXHTML_HEADERS");
329
073478b3 330GTK_GENERICOBJS = \
2aa88730 331 #$ ExpandList("WXGTK_GENERICOBJS");
073478b3 332
5586805b
RR
333GTK_GENERICDEPS = \
334 #$ ExpandList("WXGTK_GENERICDEPS");
335
2aa88730 336GTK_COMMONOBJS = \
073478b3
RR
337 parser.o \
338 #$ ExpandList("WXGTK_COMMONOBJS");
339
5586805b
RR
340GTK_COMMONDEPS = \
341 parser.d \
342 #$ ExpandList("WXGTK_COMMONDEPS");
343
2aa88730 344GTK_GUIOBJS = \
073478b3
RR
345 #$ ExpandList("WXGTK_GUIOBJS");
346
5586805b
RR
347GTK_GUIDEPS = \
348 #$ ExpandList("WXGTK_GUIDEPS");
349
073478b3 350MOTIF_GENERICOBJS = \
2aa88730 351 #$ ExpandList("WXMOTIF_GENERICOBJS");
f56b8330 352
5586805b
RR
353MOTIF_GENERICDEPS = \
354 #$ ExpandList("WXMOTIF_GENERICDEPS");
355
2aa88730 356MOTIF_COMMONOBJS = \
f56b8330 357 parser.o \
073478b3
RR
358 #$ ExpandList("WXMOTIF_COMMONOBJS");
359
5586805b
RR
360MOTIF_COMMONDEPS = \
361 parser.d \
362 #$ ExpandList("WXMOTIF_COMMONDEPS");
363
2aa88730 364MOTIF_GUIOBJS = \
5586805b 365 xmcombo.o \
073478b3 366 #$ ExpandList("WXMOTIF_GUIOBJS");
f56b8330 367
5586805b
RR
368MOTIF_GUIDEPS = \
369 xmcombo.d \
370 #$ ExpandList("WXMOTIF_GUIDEPS");
371
e4b4d60e
RR
372MSW_GENERICOBJS = \
373 #$ ExpandList("WXMSW_GENERICOBJS");
374
5586805b
RR
375MSW_GENERICDEPS = \
376 #$ ExpandList("WXMSW_GENERICDEPS");
377
e4b4d60e 378MSW_COMMONOBJS = \
80d895cd 379 parser.o \
e4b4d60e
RR
380 #$ ExpandList("WXMSW_COMMONOBJS");
381
5586805b 382MSW_COMMONDEPS = \
80d895cd 383 parser.d \
5586805b
RR
384 #$ ExpandList("WXMSW_COMMONDEPS");
385
e4b4d60e
RR
386MSW_GUIOBJS = \
387 #$ ExpandList("WXMSW_GUIOBJS");
388
5586805b
RR
389MSW_GUIDEPS = \
390 #$ ExpandList("WXMSW_GUIDEPS");
391
37667812
VZ
392BASE_OBJS = \
393 #$ ExpandList("BASE_OBJS");
394
395BASE_DEPS = \
396 #$ ExpandList("BASE_DEPS");
397
f56b8330 398HTMLOBJS = \
2aa88730 399 #$ ExpandList("WXHTMLOBJS");
f56b8330 400
5586805b
RR
401HTMLDEPS = \
402 #$ ExpandList("WXHTMLDEPS");
403
37667812
VZ
404UNIX_OBJS = \
405 #$ ExpandList("WXUNIX_OBJS");
f56b8330 406
37667812
VZ
407UNIX_DEPS = \
408 #$ ExpandList("WXUNIX_DEPS");
5586805b 409
f56b8330 410ZLIBOBJS = \
5586805b
RR
411 adler32.o \
412 compress.o \
413 crc32.o \
414 gzio.o \
415 uncompr.o \
416 deflate.o \
417 trees.o \
418 zutil.o \
419 inflate.o \
420 infblock.o \
421 inftrees.o \
422 infcodes.o \
423 infutil.o \
424 inffast.o
f56b8330
RR
425
426PNGOBJS = \
5586805b
RR
427 png.o \
428 pngread.o \
429 pngrtran.o \
430 pngrutil.o \
431 pngpread.o \
432 pngtrans.o \
433 pngwrite.o \
434 pngwtran.o \
435 pngwutil.o \
436 pngerror.o \
437 pngmem.o \
438 pngwio.o \
439 pngrio.o \
440 pngget.o \
441 pngset.o
f56b8330
RR
442
443
444JPEGOBJS = \
5586805b
RR
445 jcomapi.o \
446 jutils.o \
447 jerror.o \
448 jmemmgr.o \
449 jmemnobs.o \
450 jcapimin.o \
451 jcapistd.o \
452 jctrans.o \
453 jcparam.o \
454 jdatadst.o \
455 jcinit.o \
456 jcmaster.o \
457 jcmarker.o \
458 jcmainct.o \
459 jcprepct.o \
460 jccoefct.o \
461 jccolor.o \
462 jcsample.o \
463 jchuff.o \
464 jcphuff.o \
465 jcdctmgr.o \
466 jfdctfst.o \
467 jfdctflt.o \
468 jfdctint.o \
469 jdapimin.o \
470 jdapistd.o \
471 jdtrans.o \
472 jdatasrc.o \
473 jdmaster.o \
474 jdinput.o \
475 jdmarker.o \
476 jdhuff.o \
477 jdphuff.o \
478 jdmainct.o \
479 jdcoefct.o \
480 jdpostct.o \
481 jddctmgr.o \
482 jidctfst.o \
483 jidctflt.o \
484 jidctint.o \
485 jidctred.o \
486 jdsample.o \
487 jdcolor.o \
488 jquant1.o \
489 jquant2.o \
490 jdmerge.o
f56b8330 491
a0c79abb 492IODBC_OBJS = \
e115e771
RR
493 catalog.o \
494 connect.o \
495 dlf.o \
496 dlproc.o \
497 execute.o \
498 fetch.o \
499 hdbc.o \
500 henv.o \
501 herr.o \
502 hstmt.o \
503 info.o \
504 itrace.o \
505 misc.o \
506 prepare.o \
507 result.o
508
37667812
VZ
509GUIOBJS = @GUIOBJS@
510GUIDEPS = @GUIDEPS@
511GUIHEADERS = @GUIHEADERS@
512COMMONOBJS = @COMMONOBJS@
513COMMONDEPS = @COMMONDEPS@
514GENERICOBJS = @GENERICOBJS@
515GENERICDEPS = @GENERICDEPS@
516UNIXOBJS = @UNIXOBJS@
517UNIXDEPS = @UNIXDEPS@
a0c79abb 518IODBCOBJS = @IODBCOBJS@
073478b3 519
a0c79abb 520OBJECTS = @ALL_OBJECTS@
f56b8330 521
37667812 522DEPFILES = @ALL_DEPFILES@
5586805b 523
37667812 524HEADERS = @ALL_HEADERS@
f56b8330 525
de87c353 526all: @WX_ALL@
8e877c19 527
48b1d0ff 528@WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
4130b487 529 @$(INSTALL) -d ./lib
2aa88730
RR
530 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
531 $(RANLIB) ./lib/$@
f56b8330 532
48b1d0ff 533@WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
4130b487 534 @$(INSTALL) -d ./lib
2aa88730 535 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
48b1d0ff 536
de87c353 537CREATE_LINKS: @WX_LIBRARY_NAME_SHARED@
4130b487
RR
538 @$(RM) ./lib/@WX_LIBRARY_LINK1@
539 @$(RM) ./lib/@WX_LIBRARY_LINK2@
540 @$(RM) ./lib/@WX_LIBRARY_LINK3@
2aa88730
RR
541 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
542 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
543 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
48b1d0ff 544
de87c353 545CREATE_INSTALLED_LINKS: $(libdir)/@WX_LIBRARY_NAME_SHARED@
5586805b
RR
546 $(RM) $(libdir)/@WX_LIBRARY_LINK1@
547 $(RM) $(libdir)/@WX_LIBRARY_LINK2@
548 $(RM) $(libdir)/@WX_LIBRARY_LINK3@
de87c353
RR
549 $(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK1@
550 $(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK2@
551 $(LN_S) @WX_LIBRARY_NAME_SHARED@ $(libdir)/@WX_LIBRARY_LINK3@
517a619d 552
f56b8330
RR
553$(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
554
555parser.o: parser.c lexer.c
8636aed8 556 $(CCLEX) -c $(CFLAGS) $(PICFLAGS) -o $@ parser.c
f56b8330
RR
557
558parser.c: $(COMMDIR)/parser.y lexer.c
559 $(YACC) $(COMMDIR)/parser.y
560 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
561 sed -e "s/BUFSIZ/5000/g" | \
562 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
563 sed -e "s/yy/PROIO_yy/g" | \
564 sed -e "s/input/PROIO_input/g" | \
565 sed -e "s/unput/PROIO_unput/g" > parser.c
566 @$(RM) y.tab.c
567
568lexer.c: $(COMMDIR)/lexer.l
569 $(LEX) $(COMMDIR)/lexer.l
570 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
571 sed -e "s/yy/PROIO_yy/g" | \
572 sed -e "s/input/PROIO_input/g" | \
573 sed -e "s/unput/PROIO_unput/g" > lexer.c
574 @$(RM) lex.yy.c
575
5586805b
RR
576-include $(DEPFILES)
577
517a619d
RR
578preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
579 @echo " "
580 @echo " Installing wxWindows..."
581 @echo " "
2aa88730 582
0b129e1a
KB
583 $(INSTALL) -d $(prefix)
584 $(INSTALL) -d $(bindir)
585 $(INSTALL) -d $(libdir)
a6f3598d 586 $(INSTALL) -d $(datadir)
0b129e1a 587
2aa88730
RR
588 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
589 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
0b129e1a
KB
590
591 $(INSTALL) -d $(libdir)/wx
592 $(INSTALL) -d $(libdir)/wx/include
593 $(INSTALL) -d $(libdir)/wx/include/wx
594 $(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@
517a619d 595 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
2aa88730 596
a6f3598d
RR
597 $(INSTALL) -d $(datadir)/wx
598 $(INSTALL) -d $(datadir)/wx/afm
599 $(INSTALL) -d $(datadir)/wx/gs_afm
600 $(INSTALL_DATA) $(top_srcdir)/misc/afm/*.afm $(datadir)/wx/afm
601 $(INSTALL_DATA) $(top_srcdir)/misc/gs_afm/*.afm $(datadir)/wx/gs_afm
602
0b129e1a
KB
603 $(INSTALL) -d $(includedir)/wx
604 $(INSTALL) -d $(includedir)/wx/msw
605 $(INSTALL) -d $(includedir)/wx/gtk
606 $(INSTALL) -d $(includedir)/wx/motif
607 $(INSTALL) -d $(includedir)/wx/html
608 $(INSTALL) -d $(includedir)/wx/protocol
609 $(INSTALL) -d $(includedir)/wx/unix
610 $(INSTALL) -d $(includedir)/wx/generic
2aa88730 611 @list='$(HEADERS)'; for p in $$list; do \
2aa88730 612 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
517a619d
RR
613 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
614 done
615
616write_message:
617 @echo " "
618 @echo " The installation of wxWindows is finished. On certain"
c09ab26a
RR
619 @echo " platforms (e.g. Linux) you'll now have to run ldconfig"
620 @echo " if you installed a shared library."
517a619d
RR
621 @echo " "
622 @echo " wxWindows comes with no guarantees and doesn't claim"
623 @echo " to be suitable for any purpose."
624 @echo " "
625 @echo " Read the wxWindows Licence on licencing conditions."
626 @echo " "
627
de87c353 628install: preinstall @WX_ALL_INSTALLED@ write_message
2aa88730
RR
629
630uninstall:
517a619d
RR
631 @echo " "
632 @echo " Uninstalling wxWindows..."
633 @echo " "
634 @echo " Removing library..."
0b129e1a
KB
635 @$(RM) $(libdir)/@WX_TARGET_LIBRARY@
636 @$(RM) $(libdir)/@WX_LIBRARY_LINK1@
637 @$(RM) $(libdir)/@WX_LIBRARY_LINK2@
638 @$(RM) $(libdir)/@WX_LIBRARY_LINK3@
517a619d 639 @echo " Removing helper files..."
0b129e1a
KB
640 @$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
641 @$(RM) $(bindir)/wx-config
a6f3598d
RR
642 @$(RM) $(datadir)/wx/afm/*
643 @$(RM) $(datadir)/wx/gs_afm/*
644 @rmdir $(datadir)/wx/gs_afm
645 @rmdir $(datadir)/wx/afm
646 @rmdir $(datadir)/wx
517a619d
RR
647 @echo " Removing headers..."
648 @list='$(HEADERS)'; for p in $$list; do \
0b129e1a 649 $(RM) $(includedir)/wx/$$p; \
517a619d
RR
650 done
651 @echo " Removing directories..."
652 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
653 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
654 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
655 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
656 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
657 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
a6f3598d 658 @if test -d $(includedir)/wx/msw; then rmdir $(includedir)/wx/msw; fi
517a619d
RR
659 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
660 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
661 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
662 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
663 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
23a54e14 664
4cb122de 665ALL_DIST:
a4aad961
RR
666 mkdir _dist_dir
667 mkdir $(DISTDIR)
668 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
669 cp $(WXDIR)/configure $(DISTDIR)
670 cp $(WXDIR)/config.sub $(DISTDIR)
671 cp $(WXDIR)/config.guess $(DISTDIR)
672 cp $(WXDIR)/install-sh $(DISTDIR)
673 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
674 cp $(WXDIR)/wx-config.in $(DISTDIR)
675 cp $(WXDIR)/setup.h.in $(DISTDIR)
676 cp $(WXDIR)/Makefile.in $(DISTDIR)
677 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
678 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
679 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
680 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
681 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
682 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
683 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
684 mkdir $(DISTDIR)/include
685 mkdir $(DISTDIR)/include/wx
686 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
687 mkdir $(DISTDIR)/include/wx/generic
688 mkdir $(DISTDIR)/include/wx/html
689 mkdir $(DISTDIR)/include/wx/unix
690 mkdir $(DISTDIR)/include/wx/protocol
691 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
692 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
693 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
694 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
695 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
696 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
697 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
4cb122de
RR
698 mkdir $(DISTDIR)/src
699 mkdir $(DISTDIR)/src/common
700 mkdir $(DISTDIR)/src/generic
701 mkdir $(DISTDIR)/src/html
702 mkdir $(DISTDIR)/src/html/bitmaps
703 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
704 mkdir $(DISTDIR)/src/unix
705 mkdir $(DISTDIR)/src/png
706 mkdir $(DISTDIR)/src/jpeg
707 mkdir $(DISTDIR)/src/zlib
c09ab26a 708 mkdir $(DISTDIR)/src/iodbc
4cb122de
RR
709 cp $(SRCDIR)/*.in $(DISTDIR)/src
710 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
711 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
712 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
713 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
714 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
715 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
716 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
717 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
4cb122de 718 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
4cb122de
RR
719 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
720 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
721 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
722 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
723 cp $(PNGDIR)/README $(DISTDIR)/src/png
724 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
725 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
726 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
727 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
728 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
729 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
c09ab26a
RR
730 cp $(ODBCDIR)/*.h $(DISTDIR)/src/iodbc
731 cp $(ODBCDIR)/*.c $(DISTDIR)/src/iodbc
732 cp $(ODBCDIR)/*.ci $(DISTDIR)/src/iodbc
733 cp $(ODBCDIR)/*.exp $(DISTDIR)/src/iodbc
734 cp $(ODBCDIR)/README $(DISTDIR)/src/iodbc
735 cp $(ODBCDIR)/NEWS $(DISTDIR)/src/iodbc
736 cp $(ODBCDIR)/Changes.log $(DISTDIR)/src/iodbc
a4aad961
RR
737
738GTK_DIST:
4cb122de 739 cp $(WXDIR)/wxGTK.spec $(DISTDIR)
a4aad961 740 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
4cb122de
RR
741 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
742 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
743 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
744 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
a4aad961
RR
745
746MOTIF_DIST:
4cb122de 747 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
a4aad961 748 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
4cb122de
RR
749 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
750 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
751 mkdir $(DISTDIR)/src/motif/xmcombo
752 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
753 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
754 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
a4aad961
RR
755
756MSW_DIST:
4cb122de 757 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
a4aad961
RR
758 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
759 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
760 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
761 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
762 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
4cb122de
RR
763 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
764 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
765 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
766 mkdir $(DISTDIR)/src/msw/ole
767 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
768
769SAMPLES_DIST:
770 mkdir $(DISTDIR)/samples
771 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
772 mkdir $(DISTDIR)/samples/bombs
773 cp $(SAMPDIR)/bombs/Makefile.in $(DISTDIR)/samples/bombs
774 cp $(SAMPDIR)/bombs/*.cpp $(DISTDIR)/samples/bombs
775 cp $(SAMPDIR)/bombs/*.h $(DISTDIR)/samples/bombs
776 cp $(SAMPDIR)/bombs/*.xpm $(DISTDIR)/samples/bombs
777 cp $(SAMPDIR)/bombs/readme.txt $(DISTDIR)/samples/bombs
778 mkdir $(DISTDIR)/samples/caret
779 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
780 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
781 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
782 mkdir $(DISTDIR)/samples/config
783 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
784 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
785 mkdir $(DISTDIR)/samples/controls
786 mkdir $(DISTDIR)/samples/controls/icons
787 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
788 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
789 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
790 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
791 mkdir $(DISTDIR)/samples/checklst
792 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
793 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
794 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
641d87d8 795 mkdir $(DISTDIR)/samples/printing
27ea1d8a
RR
796 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
797 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
798 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
799 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
800 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
79144b8a
RR
801 mkdir $(DISTDIR)/samples/db
802 cp $(SAMPDIR)/db/Makefile.in $(DISTDIR)/samples/db
803 cp $(SAMPDIR)/db/*.cpp $(DISTDIR)/samples/db
804 cp $(SAMPDIR)/db/*.h $(DISTDIR)/samples/db
805 cp $(SAMPDIR)/db/*.xpm $(DISTDIR)/samples/db
641d87d8
RR
806 mkdir $(DISTDIR)/samples/dialogs
807 cp $(SAMPDIR)/dialogs/Makefile.in $(DISTDIR)/samples/dialogs
808 cp $(SAMPDIR)/dialogs/*.cpp $(DISTDIR)/samples/dialogs
809 cp $(SAMPDIR)/dialogs/*.h $(DISTDIR)/samples/dialogs
810 cp $(SAMPDIR)/dialogs/*.txt $(DISTDIR)/samples/dialogs
811 mkdir $(DISTDIR)/samples/dnd
812 cp $(SAMPDIR)/dnd/Makefile.in $(DISTDIR)/samples/dnd
813 cp $(SAMPDIR)/dnd/*.cpp $(DISTDIR)/samples/dnd
814 cp $(SAMPDIR)/dnd/*.xpm $(DISTDIR)/samples/dnd
815 cp $(SAMPDIR)/dnd/*.txt $(DISTDIR)/samples/dnd
816 cp $(SAMPDIR)/dnd/*.png $(DISTDIR)/samples/dnd
817 mkdir $(DISTDIR)/samples/docview
818 cp $(SAMPDIR)/docview/Makefile.in $(DISTDIR)/samples/docview
819 cp $(SAMPDIR)/docview/*.cpp $(DISTDIR)/samples/docview
820 cp $(SAMPDIR)/docview/*.h $(DISTDIR)/samples/docview
821 cp $(SAMPDIR)/docview/*.xpm $(DISTDIR)/samples/docview
822 mkdir $(DISTDIR)/samples/docvwmdi
823 cp $(SAMPDIR)/docvwmdi/Makefile.in $(DISTDIR)/samples/docvwmdi
824 cp $(SAMPDIR)/docvwmdi/*.cpp $(DISTDIR)/samples/docvwmdi
825 cp $(SAMPDIR)/docvwmdi/*.h $(DISTDIR)/samples/docvwmdi
826 mkdir $(DISTDIR)/samples/drawing
827 cp $(SAMPDIR)/drawing/Makefile.in $(DISTDIR)/samples/drawing
828 cp $(SAMPDIR)/drawing/*.cpp $(DISTDIR)/samples/drawing
829 cp $(SAMPDIR)/drawing/*.xpm $(DISTDIR)/samples/drawing
830 mkdir $(DISTDIR)/samples/dynamic
831 cp $(SAMPDIR)/dynamic/Makefile.in $(DISTDIR)/samples/dynamic
832 cp $(SAMPDIR)/dynamic/*.cpp $(DISTDIR)/samples/dynamic
833 cp $(SAMPDIR)/dynamic/*.xpm $(DISTDIR)/samples/dynamic
79144b8a
RR
834 mkdir $(DISTDIR)/samples/forty
835 cp $(SAMPDIR)/forty/Makefile.in $(DISTDIR)/samples/forty
836 cp $(SAMPDIR)/forty/*.cpp $(DISTDIR)/samples/forty
837 cp $(SAMPDIR)/forty/*.xpm $(DISTDIR)/samples/forty
838 cp $(SAMPDIR)/forty/*.xbm $(DISTDIR)/samples/forty
839 mkdir $(DISTDIR)/samples/fractal
840 cp $(SAMPDIR)/fractal/Makefile.in $(DISTDIR)/samples/fractal
841 cp $(SAMPDIR)/fractal/*.cpp $(DISTDIR)/samples/fractal
641d87d8
RR
842 mkdir $(DISTDIR)/samples/html
843 cp $(SAMPDIR)/html/Makefile.in $(DISTDIR)/samples/html
844 mkdir $(DISTDIR)/samples/html/about
845 cp $(SAMPDIR)/html/about/Makefile.in $(DISTDIR)/samples/html/about
846 cp $(SAMPDIR)/html/about/*.cpp $(DISTDIR)/samples/html/about
847 mkdir $(DISTDIR)/samples/html/about/data
848 cp $(SAMPDIR)/html/about/data/*.htm $(DISTDIR)/samples/html/about/data
849 cp $(SAMPDIR)/html/about/data/*.png $(DISTDIR)/samples/html/about/data
850 mkdir $(DISTDIR)/samples/html/help
851 cp $(SAMPDIR)/html/help/Makefile.in $(DISTDIR)/samples/html/help
852 cp $(SAMPDIR)/html/help/*.cpp $(DISTDIR)/samples/html/help
853 mkdir $(DISTDIR)/samples/html/help/helpfiles
854 cp $(SAMPDIR)/html/help/helpfiles/*.??? $(DISTDIR)/samples/html/help/helpfiles
855 mkdir $(DISTDIR)/samples/html/printing
856 cp $(SAMPDIR)/html/printing/Makefile.in $(DISTDIR)/samples/html/printing
857 cp $(SAMPDIR)/html/printing/*.xpm $(DISTDIR)/samples/html/printing
858 cp $(SAMPDIR)/html/printing/*.cpp $(DISTDIR)/samples/html/printing
859 cp $(SAMPDIR)/html/printing/*.h $(DISTDIR)/samples/html/printing
860 cp $(SAMPDIR)/html/printing/*.png $(DISTDIR)/samples/html/printing
861 cp $(SAMPDIR)/html/printing/*.htm $(DISTDIR)/samples/html/printing
862 mkdir $(DISTDIR)/samples/html/test
863 cp $(SAMPDIR)/html/test/Makefile.in $(DISTDIR)/samples/html/test
864 cp $(SAMPDIR)/html/test/*.cpp $(DISTDIR)/samples/html/test
865 cp $(SAMPDIR)/html/test/*.bmp $(DISTDIR)/samples/html/test
866 cp $(SAMPDIR)/html/test/*.png $(DISTDIR)/samples/html/test
867 cp $(SAMPDIR)/html/test/*.htm $(DISTDIR)/samples/html/test
868 cp $(SAMPDIR)/html/test/*.html $(DISTDIR)/samples/html/test
869 mkdir $(DISTDIR)/samples/html/virtual
870 cp $(SAMPDIR)/html/virtual/Makefile.in $(DISTDIR)/samples/html/virtual
871 cp $(SAMPDIR)/html/virtual/*.cpp $(DISTDIR)/samples/html/virtual
872 cp $(SAMPDIR)/html/virtual/*.htm $(DISTDIR)/samples/html/virtual
873 mkdir $(DISTDIR)/samples/html/widget
874 cp $(SAMPDIR)/html/widget/Makefile.in $(DISTDIR)/samples/html/widget
875 cp $(SAMPDIR)/html/widget/*.cpp $(DISTDIR)/samples/html/widget
876 cp $(SAMPDIR)/html/widget/*.htm $(DISTDIR)/samples/html/widget
877 mkdir $(DISTDIR)/samples/html/zip
878 cp $(SAMPDIR)/html/zip/Makefile.in $(DISTDIR)/samples/html/zip
879 cp $(SAMPDIR)/html/zip/*.cpp $(DISTDIR)/samples/html/zip
880 cp $(SAMPDIR)/html/zip/*.htm $(DISTDIR)/samples/html/zip
881 cp $(SAMPDIR)/html/zip/*.zip $(DISTDIR)/samples/html/zip
882 mkdir $(DISTDIR)/samples/image
883 cp $(SAMPDIR)/image/Makefile.in $(DISTDIR)/samples/image
884 cp $(SAMPDIR)/image/*.cpp $(DISTDIR)/samples/image
885 cp $(SAMPDIR)/image/horse.* $(DISTDIR)/samples/image
c09ab26a
RR
886 mkdir $(DISTDIR)/samples/internat
887 mkdir $(DISTDIR)/samples/internat/de
888 mkdir $(DISTDIR)/samples/internat/fr
889 cp $(SAMPDIR)/internat/Makefile.in $(DISTDIR)/samples/internat
890 cp $(SAMPDIR)/internat/*.cpp $(DISTDIR)/samples/internat
891 cp $(SAMPDIR)/internat/*.xpm $(DISTDIR)/samples/internat
892 cp $(SAMPDIR)/internat/*.txt $(DISTDIR)/samples/internat
893 cp $(SAMPDIR)/internat/*.po $(DISTDIR)/samples/internat
894 cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
895 cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
896 cp $(SAMPDIR)/internat/fr/*.po $(DISTDIR)/samples/internat/fr
897 cp $(SAMPDIR)/internat/de/*.mo $(DISTDIR)/samples/internat/de
641d87d8
RR
898 mkdir $(DISTDIR)/samples/layout
899 cp $(SAMPDIR)/layout/Makefile.in $(DISTDIR)/samples/layout
900 cp $(SAMPDIR)/layout/*.cpp $(DISTDIR)/samples/layout
901 cp $(SAMPDIR)/layout/*.h $(DISTDIR)/samples/layout
902 mkdir $(DISTDIR)/samples/listctrl
903 cp $(SAMPDIR)/listctrl/Makefile.in $(DISTDIR)/samples/listctrl
904 cp $(SAMPDIR)/listctrl/*.cpp $(DISTDIR)/samples/listctrl
905 cp $(SAMPDIR)/listctrl/*.h $(DISTDIR)/samples/listctrl
906 cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl
907 mkdir $(DISTDIR)/samples/listctrl/bitmap
908 cp $(SAMPDIR)/listctrl/*.xpm $(DISTDIR)/samples/listctrl/bitmaps
909 mkdir $(DISTDIR)/samples/mdi
910 cp $(SAMPDIR)/mdi/Makefile.in $(DISTDIR)/samples/mdi
911 cp $(SAMPDIR)/mdi/*.cpp $(DISTDIR)/samples/mdi
912 cp $(SAMPDIR)/mdi/*.h $(DISTDIR)/samples/mdi
913 cp $(SAMPDIR)/mdi/*.xpm $(DISTDIR)/samples/mdi
914 mkdir $(DISTDIR)/samples/minifram
915 cp $(SAMPDIR)/minifram/Makefile.in $(DISTDIR)/samples/minifram
916 cp $(SAMPDIR)/minifram/*.cpp $(DISTDIR)/samples/minifram
917 cp $(SAMPDIR)/minifram/*.h $(DISTDIR)/samples/minifram
918 cp $(SAMPDIR)/minifram/*.xpm $(DISTDIR)/samples/minifram
919 mkdir $(DISTDIR)/samples/minifram/bitmap
920 cp $(SAMPDIR)/minifram/*.xpm $(DISTDIR)/samples/minifram/bitmaps
921 mkdir $(DISTDIR)/samples/minimal
922 cp $(SAMPDIR)/minimal/Makefile.in $(DISTDIR)/samples/minimal
923 cp $(SAMPDIR)/minimal/*.cpp $(DISTDIR)/samples/minimal
924 cp $(SAMPDIR)/minimal/*.xpm $(DISTDIR)/samples/minimal
f85afd4e
MB
925 mkdir $(DISTDIR)/samples/newgrid
926 cp $(SAMPDIR)/newgrid/Makefile.in $(DISTDIR)/samples/newgrid
927 cp $(SAMPDIR)/newgrid/*.cpp $(DISTDIR)/samples/newgrid
928 cp $(SAMPDIR)/newgrid/*.h $(DISTDIR)/samples/newgrid
641d87d8
RR
929 mkdir $(DISTDIR)/samples/notebook
930 cp $(SAMPDIR)/notebook/Makefile.in $(DISTDIR)/samples/notebook
931 cp $(SAMPDIR)/notebook/*.cpp $(DISTDIR)/samples/notebook
932 cp $(SAMPDIR)/notebook/*.h $(DISTDIR)/samples/notebook
79144b8a
RR
933 mkdir $(DISTDIR)/samples/png
934 cp $(SAMPDIR)/png/Makefile.in $(DISTDIR)/samples/png
935 cp $(SAMPDIR)/png/*.cpp $(DISTDIR)/samples/png
936 cp $(SAMPDIR)/png/*.h $(DISTDIR)/samples/png
937 cp $(SAMPDIR)/png/*.png $(DISTDIR)/samples/png
3fd528b9
RR
938 mkdir $(DISTDIR)/samples/resource
939 cp $(SAMPDIR)/resource/Makefile.in $(DISTDIR)/samples/resource
940 cp $(SAMPDIR)/resource/*.cpp $(DISTDIR)/samples/resource
941 cp $(SAMPDIR)/resource/*.h $(DISTDIR)/samples/resource
942 cp $(SAMPDIR)/resource/*.wxr $(DISTDIR)/samples/resource
943 mkdir $(DISTDIR)/samples/richedit
944 cp $(SAMPDIR)/richedit/Makefile.in $(DISTDIR)/samples/richedit
945 cp $(SAMPDIR)/richedit/*.cpp $(DISTDIR)/samples/richedit
946 cp $(SAMPDIR)/richedit/*.h $(DISTDIR)/samples/richedit
947 cp $(SAMPDIR)/richedit/*.xpm $(DISTDIR)/samples/richedit
948 cp $(SAMPDIR)/richedit/README $(DISTDIR)/samples/richedit
949 cp $(SAMPDIR)/richedit/TODO $(DISTDIR)/samples/richedit
641d87d8
RR
950 mkdir $(DISTDIR)/samples/proplist
951 cp $(SAMPDIR)/proplist/Makefile.in $(DISTDIR)/samples/proplist
952 cp $(SAMPDIR)/proplist/*.cpp $(DISTDIR)/samples/proplist
953 cp $(SAMPDIR)/proplist/*.h $(DISTDIR)/samples/proplist
954 mkdir $(DISTDIR)/samples/sashtest
955 cp $(SAMPDIR)/sashtest/Makefile.in $(DISTDIR)/samples/sashtest
956 cp $(SAMPDIR)/sashtest/*.cpp $(DISTDIR)/samples/sashtest
957 cp $(SAMPDIR)/sashtest/*.h $(DISTDIR)/samples/sashtest
958 mkdir $(DISTDIR)/samples/scroll
959 cp $(SAMPDIR)/scroll/Makefile.in $(DISTDIR)/samples/scroll
960 cp $(SAMPDIR)/scroll/*.cpp $(DISTDIR)/samples/scroll
961 mkdir $(DISTDIR)/samples/splitter
962 cp $(SAMPDIR)/splitter/Makefile.in $(DISTDIR)/samples/splitter
963 cp $(SAMPDIR)/splitter/*.cpp $(DISTDIR)/samples/splitter
964 mkdir $(DISTDIR)/samples/text
965 cp $(SAMPDIR)/text/Makefile.in $(DISTDIR)/samples/text
966 cp $(SAMPDIR)/text/*.cpp $(DISTDIR)/samples/text
967 cp $(SAMPDIR)/text/*.xpm $(DISTDIR)/samples/text
968 mkdir $(DISTDIR)/samples/thread
969 cp $(SAMPDIR)/thread/Makefile.in $(DISTDIR)/samples/thread
970 cp $(SAMPDIR)/thread/*.cpp $(DISTDIR)/samples/thread
971 mkdir $(DISTDIR)/samples/toolbar
972 cp $(SAMPDIR)/toolbar/Makefile.in $(DISTDIR)/samples/toolbar
973 cp $(SAMPDIR)/toolbar/*.cpp $(DISTDIR)/samples/toolbar
974 cp $(SAMPDIR)/toolbar/*.h $(DISTDIR)/samples/toolbar
975 cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar
976 mkdir $(DISTDIR)/samples/toolbar/bitmap
977 cp $(SAMPDIR)/toolbar/*.xpm $(DISTDIR)/samples/toolbar/bitmaps
978 mkdir $(DISTDIR)/samples/treectrl
979 cp $(SAMPDIR)/treectrl/Makefile.in $(DISTDIR)/samples/treectrl
980 cp $(SAMPDIR)/treectrl/*.cpp $(DISTDIR)/samples/treectrl
981 cp $(SAMPDIR)/treectrl/*.h $(DISTDIR)/samples/treectrl
982 cp $(SAMPDIR)/treectrl/*.xpm $(DISTDIR)/samples/treectrl
983 mkdir $(DISTDIR)/samples/typetest
984 cp $(SAMPDIR)/typetest/Makefile.in $(DISTDIR)/samples/typetest
985 cp $(SAMPDIR)/typetest/*.cpp $(DISTDIR)/samples/typetest
986 cp $(SAMPDIR)/typetest/*.h $(DISTDIR)/samples/typetest
987 cp $(SAMPDIR)/typetest/*.xpm $(DISTDIR)/samples/typetest
988 mkdir $(DISTDIR)/samples/validate
989 cp $(SAMPDIR)/validate/Makefile.in $(DISTDIR)/samples/validate
990 cp $(SAMPDIR)/validate/*.cpp $(DISTDIR)/samples/validate
991 cp $(SAMPDIR)/validate/*.h $(DISTDIR)/samples/validate
992 cp $(SAMPDIR)/validate/*.xpm $(DISTDIR)/samples/validate
993 mkdir $(DISTDIR)/samples/wizard
994 cp $(SAMPDIR)/wizard/Makefile.in $(DISTDIR)/samples/wizard
995 cp $(SAMPDIR)/wizard/*.cpp $(DISTDIR)/samples/wizard
996 cp $(SAMPDIR)/wizard/*.xpm $(DISTDIR)/samples/wizard
997 mkdir $(DISTDIR)/samples/wxpoem
998 cp $(SAMPDIR)/wxpoem/Makefile.in $(DISTDIR)/samples/wxpoem
999 cp $(SAMPDIR)/wxpoem/*.cpp $(DISTDIR)/samples/wxpoem
1000 cp $(SAMPDIR)/wxpoem/*.xpm $(DISTDIR)/samples/wxpoem
1001 cp $(SAMPDIR)/wxpoem/*.dat $(DISTDIR)/samples/wxpoem
1002 cp $(SAMPDIR)/wxpoem/*.txt $(DISTDIR)/samples/wxpoem
1003 mkdir $(DISTDIR)/samples/wxsocket
1004 cp $(SAMPDIR)/wxsocket/Makefile.in $(DISTDIR)/samples/wxsocket
1005 cp $(SAMPDIR)/wxsocket/*.cpp $(DISTDIR)/samples/wxsocket
1006 cp $(SAMPDIR)/wxsocket/*.xpm $(DISTDIR)/samples/wxsocket
1007
1008UTILS_DIST:
1009 mkdir $(DISTDIR)/utils
1010 cp $(UTILSDIR)/Makefile.in $(DISTDIR)/utils
c09ab26a 1011
641d87d8 1012 mkdir $(DISTDIR)/utils/wxMMedia2
641d87d8 1013 mkdir $(DISTDIR)/utils/wxMMedia2/lib
c09ab26a
RR
1014 mkdir $(DISTDIR)/utils/wxMMedia2/sample
1015 cp $(UTILSDIR)/wxMMedia2/Makefile.in $(DISTDIR)/utils/wxMMedia2
641d87d8
RR
1016 cp $(UTILSDIR)/wxMMedia2/lib/Makefile.in $(DISTDIR)/utils/wxMMedia2/lib
1017 cp $(UTILSDIR)/wxMMedia2/lib/*.h $(DISTDIR)/utils/wxMMedia2/lib
1018 cp $(UTILSDIR)/wxMMedia2/lib/*.cpp $(DISTDIR)/utils/wxMMedia2/lib
1019 cp $(UTILSDIR)/wxMMedia2/lib/*.def $(DISTDIR)/utils/wxMMedia2/lib
641d87d8
RR
1020 cp $(UTILSDIR)/wxMMedia2/sample/Makefile.in $(DISTDIR)/utils/wxMMedia2/sample
1021 cp $(UTILSDIR)/wxMMedia2/sample/*.cpp $(DISTDIR)/utils/wxMMedia2/sample
c09ab26a 1022
641d87d8 1023 mkdir $(DISTDIR)/utils/glcanvas
c09ab26a 1024 mkdir $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
641d87d8
RR
1025 cp $(UTILSDIR)/glcanvas/Makefile.in $(DISTDIR)/utils/glcanvas
1026 cp $(UTILSDIR)/glcanvas/docs/notes.txt $(DISTDIR)/utils/glcanvas/NOTES.txt
641d87d8
RR
1027 cp $(UTILSDIR)/glcanvas/$(TOOLKITDIR)/Makefile.in $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
1028 cp $(UTILSDIR)/glcanvas/$(TOOLKITDIR)/*.h $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
1029 cp $(UTILSDIR)/glcanvas/$(TOOLKITDIR)/*.cpp $(DISTDIR)/utils/glcanvas/$(TOOLKITDIR)
1030
c09ab26a
RR
1031 mkdir $(DISTDIR)/utils/ogl
1032 mkdir $(DISTDIR)/utils/ogl/src
1033 cp $(UTILSDIR)/ogl/Makefile.in $(DISTDIR)/utils/ogl
1034 cp $(UTILSDIR)/ogl/src/Makefile.in $(DISTDIR)/utils/ogl/src
1035 cp $(UTILSDIR)/ogl/src/*.h $(DISTDIR)/utils/ogl/src
1036 cp $(UTILSDIR)/ogl/src/*.cpp $(DISTDIR)/utils/ogl/src
1037
a6f3598d
RR
1038MISC_DIST:
1039 mkdir $(DISTDIR)/misc
1040 mkdir $(DISTDIR)/misc/afm
1041 cp $(MISCDIR)/afm/*.afm $(DISTDIR)/misc/afm
1042 mkdir $(DISTDIR)/misc/gs_afm
1043 cp $(MISCDIR)/gs_afm/*.afm $(DISTDIR)/misc/gs_afm
1044
1045dist: ALL_DIST @GUIDIST@ SAMPLES_DIST UTILS_DIST MISC_DIST
a4aad961 1046 cd _dist_dir; tar ch wx$(TOOLKIT) | gzip -f9 > $(WXARCHIVE); mv $(WXARCHIVE) ..
0b129e1a 1047 $(RM) -r _dist_dir
a4aad961 1048
f56b8330 1049clean:
0b129e1a 1050 $(RM) *.o
5586805b 1051 $(RM) *.d
0b129e1a
KB
1052 $(RM) parser.c
1053 $(RM) lexer.c
1054 $(RM) ./lib/*
f56b8330
RR
1055
1056cleanall: clean