332baca2b391d800235d382c18c2f3ce816383d8
[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 #! include the code which parses filelist.txt file and initializes
11 #! %wxCommon, %wxGeneric, %wxHtml, %wxUnix and %wxGTK hashes.
12 IncludeTemplate("filelist.t");
13
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
23 $file =~ s/cp?p?$/\o/;
24 $project{"WXMSW_GENERICOBJS"} .= "src/generic/" . $file . " "
25 }
26
27 foreach $file (sort keys %wxGeneric) {
28 #! skip generic files not required for the wxGTK port
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 # my autoconf doesn't set this
206 #INSTALL_SCRIPT = @INSTALL_SCRIPT@
207 # maybe do an additional chmod if needed?
208 INSTALL_SCRIPT = @INSTALL@
209 transform = @program_transform_name@
210
211 NORMAL_INSTALL = :
212 PRE_INSTALL = :
213 POST_INSTALL = :
214 NORMAL_UNINSTALL = :
215 PRE_UNINSTALL = :
216 POST_UNINSTALL = :
217 build_alias = @build_alias@
218 build_triplet = @build@
219 host_alias = @host_alias@
220 host_triplet = @host@
221 target_alias = @target_alias@
222 target_triplet = @target@
223
224 ############################# Dirs #################################
225
226 WXDIR = $(top_srcdir)
227
228 # Subordinate library possibilities
229
230 SRCDIR = $(WXDIR)/src
231 GENDIR = $(WXDIR)/src/generic
232 COMMDIR = $(WXDIR)/src/common
233 HTMLDIR = $(WXDIR)/src/html
234 UNIXDIR = $(WXDIR)/src/unix
235 PNGDIR = $(WXDIR)/src/png
236 JPEGDIR = $(WXDIR)/src/jpeg
237 ZLIBDIR = $(WXDIR)/src/zlib
238 GTKDIR = $(WXDIR)/src/gtk
239 MOTIFDIR = $(WXDIR)/src/motif
240 MSWDIR = $(WXDIR)/src/msw
241 INCDIR = $(WXDIR)/include
242 SAMPDIR = $(WXDIR)/samples
243
244 DOCDIR = $(WXDIR)/docs
245
246 ########################## Archive name ###############################
247
248 WXARCHIVE = wx$(TOOLKIT)-$(WX_MAJOR_VERSION_NUMBER).$(WX_MINOR_VERSION_NUMBER).$(WX_RELEASE_NUMBER).tgz
249 DISTDIR = ./_dist_dir/wx$(TOOLKIT)
250
251 ############################## Files ##################################
252
253 WX_HEADERS = \
254 #$ ExpandList("WX_HEADERS");
255
256 GTK_HEADERS = \
257 #$ ExpandList("WXGTK_HEADERS");
258
259 MOTIF_HEADERS = \
260 #$ ExpandList("WXMOTIF_HEADERS");
261
262 MSW_HEADERS = \
263 #$ ExpandList("WXMSW_HEADERS");
264
265 UNIX_HEADERS = \
266 #$ ExpandList("WXUNIX_HEADERS");
267
268 GENERIC_HEADERS = \
269 #$ ExpandList("WXGENERIC_HEADERS");
270
271 PROTOCOL_HEADERS = \
272 #$ ExpandList("WXPROTOCOL_HEADERS");
273
274 HTML_HEADERS = \
275 #$ ExpandList("WXHTML_HEADERS");
276
277 GTK_GENERICOBJS = \
278 #$ ExpandList("WXGTK_GENERICOBJS");
279
280 GTK_COMMONOBJS = \
281 parser.o \
282 #$ ExpandList("WXGTK_COMMONOBJS");
283
284 GTK_GUIOBJS = \
285 #$ ExpandList("WXGTK_GUIOBJS");
286
287 MOTIF_GENERICOBJS = \
288 #$ ExpandList("WXMOTIF_GENERICOBJS");
289
290 MOTIF_COMMONOBJS = \
291 parser.o \
292 #$ ExpandList("WXMOTIF_COMMONOBJS");
293
294 MOTIF_GUIOBJS = \
295 src/motif/xmcombo/xmcombo.o \
296 #$ ExpandList("WXMOTIF_GUIOBJS");
297
298 MSW_GENERICOBJS = \
299 #$ ExpandList("WXMSW_GENERICOBJS");
300
301 MSW_COMMONOBJS = \
302 #$ ExpandList("WXMSW_COMMONOBJS");
303
304 MSW_GUIOBJS = \
305 #$ ExpandList("WXMSW_GUIOBJS");
306
307 HTMLOBJS = \
308 #$ ExpandList("WXHTMLOBJS");
309
310 UNIXOBJS = \
311 #$ ExpandList("WXUNIXOBJS");
312
313 ZLIBOBJS = \
314 src/zlib/adler32.o \
315 src/zlib/compress.o \
316 src/zlib/crc32.o \
317 src/zlib/gzio.o \
318 src/zlib/uncompr.o \
319 src/zlib/deflate.o \
320 src/zlib/trees.o \
321 src/zlib/zutil.o \
322 src/zlib/inflate.o \
323 src/zlib/infblock.o \
324 src/zlib/inftrees.o \
325 src/zlib/infcodes.o \
326 src/zlib/infutil.o \
327 src/zlib/inffast.o
328
329 PNGOBJS = \
330 src/png/png.o \
331 src/png/pngread.o \
332 src/png/pngrtran.o \
333 src/png/pngrutil.o \
334 src/png/pngpread.o \
335 src/png/pngtrans.o \
336 src/png/pngwrite.o \
337 src/png/pngwtran.o \
338 src/png/pngwutil.o \
339 src/png/pngerror.o \
340 src/png/pngmem.o \
341 src/png/pngwio.o \
342 src/png/pngrio.o \
343 src/png/pngget.o \
344 src/png/pngset.o
345
346
347 JPEGOBJS = \
348 src/jpeg/jcomapi.o \
349 src/jpeg/jutils.o \
350 src/jpeg/jerror.o \
351 src/jpeg/jmemmgr.o \
352 src/jpeg/jmemnobs.o \
353 src/jpeg/jcapimin.o \
354 src/jpeg/jcapistd.o \
355 src/jpeg/jctrans.o \
356 src/jpeg/jcparam.o \
357 src/jpeg/jdatadst.o \
358 src/jpeg/jcinit.o \
359 src/jpeg/jcmaster.o \
360 src/jpeg/jcmarker.o \
361 src/jpeg/jcmainct.o \
362 src/jpeg/jcprepct.o \
363 src/jpeg/jccoefct.o \
364 src/jpeg/jccolor.o \
365 src/jpeg/jcsample.o \
366 src/jpeg/jchuff.o \
367 src/jpeg/jcphuff.o \
368 src/jpeg/jcdctmgr.o \
369 src/jpeg/jfdctfst.o \
370 src/jpeg/jfdctflt.o \
371 src/jpeg/jfdctint.o \
372 src/jpeg/jdapimin.o \
373 src/jpeg/jdapistd.o \
374 src/jpeg/jdtrans.o \
375 src/jpeg/jdatasrc.o \
376 src/jpeg/jdmaster.o \
377 src/jpeg/jdinput.o \
378 src/jpeg/jdmarker.o \
379 src/jpeg/jdhuff.o \
380 src/jpeg/jdphuff.o \
381 src/jpeg/jdmainct.o \
382 src/jpeg/jdcoefct.o \
383 src/jpeg/jdpostct.o \
384 src/jpeg/jddctmgr.o \
385 src/jpeg/jidctfst.o \
386 src/jpeg/jidctflt.o \
387 src/jpeg/jidctint.o \
388 src/jpeg/jidctred.o \
389 src/jpeg/jdsample.o \
390 src/jpeg/jdcolor.o \
391 src/jpeg/jquant1.o \
392 src/jpeg/jquant2.o \
393 src/jpeg/jdmerge.o
394
395
396 OBJECTS = $(@GUIOBJS@) $(@COMMONOBJS@) $(@GENERICOBJS@) $(@UNIXOBJS@) $(HTMLOBJS) \
397 $(JPEGOBJS) $(PNGOBJS) $(ZLIBOBJS)
398
399 HEADERS = $(@GUIHEADERS@) $(HTML_HEADERS) $(UNIX_HEADERS) $(PROTOCOL_HEADERS) \
400 $(GENERIC_HEADERS) $(WX_HEADERS)
401
402 REQUIRED_DIRS = ./lib ./src ./src/common ./src/gtk ./src/motif ./src/msw \
403 ./src/generic ./src/unix ./src/motif/xmombo ./src/html \
404 ./src/zlib ./src/jpeg ./src/png
405
406 all: $(REQUIRED_DIRS) $(OBJECTS) @WX_TARGET_LIBRARY@ @WX_CREATE_LINKS@
407
408 $(REQUIRED_DIRS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
409 @mkdir -p ./lib
410 @mkdir -p ./src
411 @mkdir -p ./src/common
412 @mkdir -p ./src/msw
413 @mkdir -p ./src/gtk
414 @mkdir -p ./src/motif
415 @mkdir -p ./src/motif/xmcombo
416 @mkdir -p ./src/generic
417 @mkdir -p ./src/unix
418 @mkdir -p ./src/html
419 @mkdir -p ./src/png
420 @mkdir -p ./src/jpeg
421 @mkdir -p ./src/zlib
422
423 @WX_LIBRARY_NAME_STATIC@: $(OBJECTS)
424 $(AR) $(AROPTIONS) ./lib/$@ $(OBJECTS)
425 $(RANLIB) ./lib/$@
426
427 @WX_LIBRARY_NAME_SHARED@: $(OBJECTS)
428 $(SHARED_LD) ./lib/$@ $(OBJECTS) $(EXTRALIBS)
429
430 CREATE_LINKS: ./lib/@WX_TARGET_LIBRARY@
431 @if test -e ./lib/@WX_LIBRARY_LINK1@; then $(RM) ./lib/@WX_LIBRARY_LINK1@; fi
432 @if test -e ./lib/@WX_LIBRARY_LINK2@; then $(RM) ./lib/@WX_LIBRARY_LINK2@; fi
433 @if test -e ./lib/@WX_LIBRARY_LINK3@; then $(RM) ./lib/@WX_LIBRARY_LINK3@; fi
434 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK1@
435 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK2@
436 $(LN_S) @WX_TARGET_LIBRARY@ ./lib/@WX_LIBRARY_LINK3@
437
438 CREATE_INSTALLED_LINKS: $(libdir)/@WX_TARGET_LIBRARY@
439 @if test -e $(libdir)/@WX_LIBRARY_LINK1@; then $(RM) $(libdir)/@WX_LIBRARY_LINK1@; fi
440 @if test -e $(libdir)/@WX_LIBRARY_LINK2@; then $(RM) $(libdir)/@WX_LIBRARY_LINK2@; fi
441 @if test -e $(libdir)/@WX_LIBRARY_LINK3@; then $(RM) $(libdir)/@WX_LIBRARY_LINK3@; fi
442 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK1@
443 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK2@
444 $(LN_S) @WX_TARGET_LIBRARY@ $(libdir)/@WX_LIBRARY_LINK3@
445
446 $(OBJECTS): $(WXDIR)/include/wx/defs.h $(WXDIR)/include/wx/object.h $(WXDIR)/include/wx/setup.h
447
448 parser.o: parser.c lexer.c
449 $(CCLEX) -c $(CFLAGS) -o $@ parser.c
450
451 parser.c: $(COMMDIR)/parser.y lexer.c
452 $(YACC) $(COMMDIR)/parser.y
453 @sed -e "s;$(COMMDIR)/y.tab.c;parser.y;g" < y.tab.c | \
454 sed -e "s/BUFSIZ/5000/g" | \
455 sed -e "s/YYLMAX 200/YYLMAX 5000/g" | \
456 sed -e "s/yy/PROIO_yy/g" | \
457 sed -e "s/input/PROIO_input/g" | \
458 sed -e "s/unput/PROIO_unput/g" > parser.c
459 @$(RM) y.tab.c
460
461 lexer.c: $(COMMDIR)/lexer.l
462 $(LEX) $(COMMDIR)/lexer.l
463 @sed -e "s;$(COMMDIR)/lex.yy.c;lexer.l;g" < lex.yy.c | \
464 sed -e "s/yy/PROIO_yy/g" | \
465 sed -e "s/input/PROIO_input/g" | \
466 sed -e "s/unput/PROIO_unput/g" > lexer.c
467 @$(RM) lex.yy.c
468
469 preinstall: $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(top_builddir)/wx-config $(top_builddir)/setup.h
470 @echo " "
471 @echo " Installing wxWindows..."
472 @echo " "
473
474
475 $(INSTALL) -d $(prefix)
476 $(INSTALL) -d $(bindir)
477 $(INSTALL) -d $(libdir)
478
479 $(INSTALL_SCRIPT) $(top_builddir)/wx-config $(bindir)/wx-config
480 $(INSTALL_PROGRAM) $(top_builddir)/lib/@WX_TARGET_LIBRARY@ $(libdir)/@WX_TARGET_LIBRARY@
481
482 $(INSTALL) -d $(libdir)/wx
483 $(INSTALL) -d $(libdir)/wx/include
484 $(INSTALL) -d $(libdir)/wx/include/wx
485 $(INSTALL) -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@
486 $(INSTALL_DATA) $(top_builddir)/setup.h $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
487
488 $(INSTALL) -d $(includedir)/wx
489 $(INSTALL) -d $(includedir)/wx/msw
490 $(INSTALL) -d $(includedir)/wx/gtk
491 $(INSTALL) -d $(includedir)/wx/motif
492 $(INSTALL) -d $(includedir)/wx/html
493 $(INSTALL) -d $(includedir)/wx/protocol
494 $(INSTALL) -d $(includedir)/wx/unix
495 $(INSTALL) -d $(includedir)/wx/generic
496 @list='$(HEADERS)'; for p in $$list; do \
497 $(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p; \
498 echo "$(INSTALL_DATA) $(top_srcdir)/include/wx/$$p $(includedir)/wx/$$p"; \
499 done
500
501 write_message:
502 @echo " "
503 @echo " The installation of wxWindows is finished. On certain"
504 @echo " platforms (e.g. Linux, Solaris) you'll now have to run"
505 @echo " ldconfig if you installed a shared library."
506 @echo " "
507 @echo " wxWindows comes with no guarantees and doesn't claim"
508 @echo " to be suitable for any purpose."
509 @echo " "
510 @echo " Read the wxWindows Licence on licencing conditions."
511 @echo " "
512
513 install: preinstall @WX_CREATE_INSTALLED_LINKS@ write_message
514
515 uninstall:
516 @echo " "
517 @echo " Uninstalling wxWindows..."
518 @echo " "
519 @echo " Removing library..."
520 @$(RM) $(libdir)/@WX_TARGET_LIBRARY@
521 @$(RM) $(libdir)/@WX_LIBRARY_LINK1@
522 @$(RM) $(libdir)/@WX_LIBRARY_LINK2@
523 @$(RM) $(libdir)/@WX_LIBRARY_LINK3@
524 @echo " Removing helper files..."
525 @$(RM) $(libdir)/wx/include/wx/@TOOLKIT_DIR@/setup.h
526 @$(RM) $(bindir)/wx-config
527 @echo " Removing headers..."
528 @list='$(HEADERS)'; for p in $$list; do \
529 $(RM) $(includedir)/wx/$$p; \
530 done
531 @echo " Removing directories..."
532 @if test -d $(libdir)/wx/include/wx/@TOOLKIT_DIR@; then rmdir $(libdir)/wx/include/wx/@TOOLKIT_DIR@; fi
533 @if test -d $(libdir)/wx/include/wx; then rmdir $(libdir)/wx/include/wx; fi
534 @if test -d $(libdir)/wx/include; then rmdir $(libdir)/wx/include; fi
535 @if test -d $(libdir)/wx; then rmdir $(libdir)/wx; fi
536 @if test -d $(includedir)/wx/gtk; then rmdir $(includedir)/wx/gtk; fi
537 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/motif; fi
538 @if test -d $(includedir)/wx/motif; then rmdir $(includedir)/wx/msw; fi
539 @if test -d $(includedir)/wx/html; then rmdir $(includedir)/wx/html; fi
540 @if test -d $(includedir)/wx/unix; then rmdir $(includedir)/wx/unix; fi
541 @if test -d $(includedir)/wx/generic; then rmdir $(includedir)/wx/generic; fi
542 @if test -d $(includedir)/wx/protocol; then rmdir $(includedir)/wx/protocol; fi
543 @if test -d $(includedir)/wx; then rmdir $(includedir)/wx; fi
544
545 ALL_DIST:
546 mkdir _dist_dir
547 mkdir $(DISTDIR)
548 cp $(WXDIR)/wx$(TOOLKIT).spec $(DISTDIR)
549 cp $(WXDIR)/configure $(DISTDIR)
550 cp $(WXDIR)/config.sub $(DISTDIR)
551 cp $(WXDIR)/config.guess $(DISTDIR)
552 cp $(WXDIR)/install-sh $(DISTDIR)
553 cp $(WXDIR)/mkinstalldirs $(DISTDIR)
554 cp $(WXDIR)/wx-config.in $(DISTDIR)
555 cp $(WXDIR)/setup.h.in $(DISTDIR)
556 cp $(WXDIR)/Makefile.in $(DISTDIR)
557 cp $(DOCDIR)/lgpl.txt $(DISTDIR)/COPYING.LIB
558 cp $(DOCDIR)/licence.txt $(DISTDIR)/LICENCE.txt
559 cp $(DOCDIR)/symbols.txt $(DISTDIR)/SYMBOLS.txt
560 cp $(DOCDIR)/$(TOOLKITDIR)/install.txt $(DISTDIR)/INSTALL.txt
561 cp $(DOCDIR)/$(TOOLKITDIR)/changes.txt $(DISTDIR)/CHANGES.txt
562 cp $(DOCDIR)/$(TOOLKITDIR)/readme.txt $(DISTDIR)/README.txt
563 cp $(DOCDIR)/$(TOOLKITDIR)/todo.txt $(DISTDIR)/TODO.txt
564 mkdir $(DISTDIR)/include
565 mkdir $(DISTDIR)/include/wx
566 mkdir $(DISTDIR)/include/wx/$(TOOLKITDIR)
567 mkdir $(DISTDIR)/include/wx/generic
568 mkdir $(DISTDIR)/include/wx/html
569 mkdir $(DISTDIR)/include/wx/unix
570 mkdir $(DISTDIR)/include/wx/protocol
571 cp $(INCDIR)/wx/*.h $(DISTDIR)/include/wx
572 cp $(INCDIR)/wx/*.cpp $(DISTDIR)/include/wx
573 cp $(INCDIR)/wx/generic/*.h $(DISTDIR)/include/wx/generic
574 cp $(INCDIR)/wx/generic/*.xpm $(DISTDIR)/include/wx/generic
575 cp $(INCDIR)/wx/html/*.h $(DISTDIR)/include/wx/html
576 cp $(INCDIR)/wx/unix/*.h $(DISTDIR)/include/wx/unix
577 cp $(INCDIR)/wx/protocol/*.h $(DISTDIR)/include/wx/protocol
578 mkdir $(DISTDIR)/src
579 mkdir $(DISTDIR)/src/common
580 mkdir $(DISTDIR)/src/generic
581 mkdir $(DISTDIR)/src/html
582 mkdir $(DISTDIR)/src/html/bitmaps
583 mkdir $(DISTDIR)/src/$(TOOLKITDIR)
584 mkdir $(DISTDIR)/src/unix
585 mkdir $(DISTDIR)/src/png
586 mkdir $(DISTDIR)/src/jpeg
587 mkdir $(DISTDIR)/src/zlib
588 cp $(SRCDIR)/*.in $(DISTDIR)/src
589 cp $(COMMDIR)/*.cpp $(DISTDIR)/src/common
590 cp $(COMMDIR)/*.c $(DISTDIR)/src/common
591 cp $(COMMDIR)/*.inc $(DISTDIR)/src/common
592 cp $(COMMDIR)/*.l $(DISTDIR)/src/common
593 cp $(COMMDIR)/*.h $(DISTDIR)/src/common
594 cp $(COMMDIR)/*.y $(DISTDIR)/src/common
595 cp $(GENDIR)/*.cpp $(DISTDIR)/src/generic
596 cp $(HTMLDIR)/*.cpp $(DISTDIR)/src/html
597 cp $(HTMLDIR)/*.h $(DISTDIR)/src/html
598 cp $(HTMLDIR)/bitmaps/*.xpm $(DISTDIR)/src/html/bitmaps
599 cp $(UNIXDIR)/*.h $(DISTDIR)/src/unix
600 cp $(UNIXDIR)/*.c $(DISTDIR)/src/unix
601 cp $(UNIXDIR)/*.cpp $(DISTDIR)/src/unix
602 cp $(PNGDIR)/*.h $(DISTDIR)/src/png
603 cp $(PNGDIR)/*.c $(DISTDIR)/src/png
604 cp $(PNGDIR)/README $(DISTDIR)/src/png
605 cp $(ZLIBDIR)/*.h $(DISTDIR)/src/zlib
606 cp $(ZLIBDIR)/*.c $(DISTDIR)/src/zlib
607 cp $(ZLIBDIR)/README $(DISTDIR)/src/zlib
608 cp $(JPEGDIR)/*.h $(DISTDIR)/src/jpeg
609 cp $(JPEGDIR)/*.c $(DISTDIR)/src/jpeg
610 cp $(JPEGDIR)/README $(DISTDIR)/src/jpeg
611
612 GTK_DIST:
613 cp $(WXDIR)/wxGTK.spec $(DISTDIR)
614 cp $(INCDIR)/wx/gtk/*.h $(DISTDIR)/include/wx/gtk
615 cp $(INCDIR)/wx/gtk/*.xpm $(DISTDIR)/include/wx/gtk
616 cp $(GTKDIR)/*.cpp $(DISTDIR)/src/gtk
617 cp $(GTKDIR)/*.c $(DISTDIR)/src/gtk
618 cp $(GTKDIR)/*.xbm $(DISTDIR)/src/gtk
619
620 MOTIF_DIST:
621 cp $(WXDIR)/wxMOTIF.spec $(DISTDIR)
622 cp $(INCDIR)/wx/motif/*.h $(DISTDIR)/include/wx/motif
623 cp $(MOTIFDIR)/*.cpp $(DISTDIR)/src/motif
624 cp $(MOTIFDIR)/*.xbm $(DISTDIR)/src/motif
625 mkdir $(DISTDIR)/src/motif/xmcombo
626 cp $(MOTIFDIR)/xmcombo/*.c $(DISTDIR)/src/motif/xmcombo
627 cp $(MOTIFDIR)/xmcombo/*.h $(DISTDIR)/src/motif/xmcombo
628 cp $(MOTIFDIR)/xmcombo/copying.txt $(DISTDIR)/src/motif/xmcombo
629
630 MSW_DIST:
631 cp $(WXDIR)/wxWINE.spec $(DISTDIR)
632 cp $(INCDIR)/wx/msw/*.h $(DISTDIR)/include/wx/msw
633 cp $(INCDIR)/wx/msw/*.cur $(DISTDIR)/include/wx/msw
634 cp $(INCDIR)/wx/msw/*.ico $(DISTDIR)/include/wx/msw
635 cp $(INCDIR)/wx/msw/*.bmp $(DISTDIR)/include/wx/msw
636 cp $(INCDIR)/wx/msw/*.rc $(DISTDIR)/include/wx/msw
637 cp $(MSWDIR)/*.cpp $(DISTDIR)/src/msw
638 cp $(MSWDIR)/*.c $(DISTDIR)/src/msw
639 cp $(MSWDIR)/*.def $(DISTDIR)/src/msw
640 mkdir $(DISTDIR)/src/msw/ole
641 cp $(MSWDIR)/ole/*.cpp $(DISTDIR)/src/msw/ole
642
643 SAMPLES_DIST:
644 mkdir $(DISTDIR)/samples
645 cp $(SAMPDIR)/Makefile.in $(DISTDIR)/samples
646 mkdir $(DISTDIR)/samples/bombs
647 cp $(SAMPDIR)/bombs/Makefile.in $(DISTDIR)/samples/bombs
648 cp $(SAMPDIR)/bombs/*.cpp $(DISTDIR)/samples/bombs
649 cp $(SAMPDIR)/bombs/*.h $(DISTDIR)/samples/bombs
650 cp $(SAMPDIR)/bombs/*.xpm $(DISTDIR)/samples/bombs
651 cp $(SAMPDIR)/bombs/readme.txt $(DISTDIR)/samples/bombs
652 mkdir $(DISTDIR)/samples/caret
653 cp $(SAMPDIR)/caret/Makefile.in $(DISTDIR)/samples/caret
654 cp $(SAMPDIR)/caret/*.cpp $(DISTDIR)/samples/caret
655 cp $(SAMPDIR)/caret/*.xpm $(DISTDIR)/samples/caret
656 mkdir $(DISTDIR)/samples/config
657 cp $(SAMPDIR)/config/Makefile.in $(DISTDIR)/samples/config
658 cp $(SAMPDIR)/config/*.cpp $(DISTDIR)/samples/config
659 mkdir $(DISTDIR)/samples/controls
660 mkdir $(DISTDIR)/samples/controls/icons
661 cp $(SAMPDIR)/controls/Makefile.in $(DISTDIR)/samples/controls
662 cp $(SAMPDIR)/controls/*.cpp $(DISTDIR)/samples/controls
663 cp $(SAMPDIR)/controls/*.xpm $(DISTDIR)/samples/controls
664 cp $(SAMPDIR)/controls/icons/*.??? $(DISTDIR)/samples/controls/icons
665 mkdir $(DISTDIR)/samples/checklst
666 cp $(SAMPDIR)/checklst/Makefile.in $(DISTDIR)/samples/checklst
667 cp $(SAMPDIR)/checklst/*.cpp $(DISTDIR)/samples/checklst
668 cp $(SAMPDIR)/checklst/*.xpm $(DISTDIR)/samples/checklst
669 mkdir $(DISTDIR)/samples/checkls
670 cp $(SAMPDIR)/printing/Makefile.in $(DISTDIR)/samples/printing
671 cp $(SAMPDIR)/printing/*.cpp $(DISTDIR)/samples/printing
672 cp $(SAMPDIR)/printing/*.h $(DISTDIR)/samples/printing
673 cp $(SAMPDIR)/printing/*.xpm $(DISTDIR)/samples/printing
674 cp $(SAMPDIR)/printing/*.xbm $(DISTDIR)/samples/printing
675
676 dist: ALL_DIST @GUIDIST@ SAMPLES_DIST
677 cd _dist_dir; tar ch wx$(TOOLKIT) | gzip -f9 > $(WXARCHIVE); mv $(WXARCHIVE) ..
678 $(RM) -r _dist_dir
679
680 clean:
681 $(RM) ./src/msw/*.o
682 $(RM) ./src/gtk/*.o
683 $(RM) ./src/motif/*.o
684 $(RM) ./src/html/*.o
685 $(RM) ./src/common/*.o
686 $(RM) ./src/unix/*.o
687 $(RM) ./src/generic/*.o
688 $(RM) ./src/png/*.o
689 $(RM) ./src/jpeg/*.o
690 $(RM) ./src/zlib/*.o
691 $(RM) *.o
692 $(RM) parser.c
693 $(RM) lexer.c
694 $(RM) ./lib/*
695
696 cleanall: clean