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