5 <!-- Master bakefile for wxWindows -->
9 <set var=
"BUILDING_LIB">1</set>
11 <!-- common rules, names etc. for wx: -->
12 <include file=
"common.bkl"/>
14 <!-- list of files sorted into categories: -->
15 <include file=
"files.bkl"/>
17 <!-- wxWindows variant where everything is in one library: -->
18 <include file=
"monolithic.bkl"/>
19 <!-- ...and when there are multiple libraries: -->
20 <include file=
"multilib.bkl"/>
23 <!-- Samples target (not dependency of 'all'): -->
24 <!-- [ FIXME disabled; currently causes make install to go into samples ]
25 <subproject id="samples">
30 <if cond=
"FORMAT=='autoconf'">
31 <!-- "make install": -->
34 <files>wxwin.m4
</files>
35 <install-to>$(DATADIR)/aclocal
</install-to>
38 <data-files-tg id=
"install-afm" cond=
"USE_GUI=='1'">
39 <files>misc/afm/*.afm
</files>
40 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/afm
</install-to>
42 <data-files-tg id=
"install-gsafm" cond=
"USE_GUI=='1'">
43 <files>misc/gs_afm/*.afm
</files>
44 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/gs_afm
</install-to>
47 <action id=
"install-wxconfig">
48 <dependency-of>install
</dependency-of>
50 $(INSTALL_DIR) $(BINDIR)
51 $(INSTALL_PROGRAM) wx$(TOOLCHAIN_NAME)-config $(BINDIR)
52 (cd $(BINDIR)
&& rm -f wx-config
&& $(LN_S) wx$(TOOLCHAIN_NAME)-config wx-config)
57 <srcdir>$(BUILDDIR)
</srcdir>
58 <files>lib/wx/include/$(TOOLCHAIN_NAME)/wx/setup.h
</files>
59 <install-to>$(LIBDIR)/wx/include/$(TOOLCHAIN_NAME)/wx
</install-to>
63 <srcdir>$(SRCDIR)/include
</srcdir>
64 <files>$(ALL_HEADERS)
</files>
68 <!-- Mac OS X resources: -->
69 <set var=
"MACOS_R">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[
0]).r
</set>
70 <set var=
"MACOS_RSRC">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[
0]).rsrc
</set>
71 <action id=
"macos-res" cond=
"TOOLKIT=='MAC'">
72 <dependency-of>all
</dependency-of>
73 <set var=
"__targetname">$(MACOS_R)
</set>
75 $(RESCOMP) -d __UNIX__ -useDF $(top_srcdir)/src/mac/apprsrc.r $(top_srcdir)/src/mac/carbrsrc.r $(top_srcdir)/src/mac/corersrc.r -o $(MACOS_RSRC)
76 $(DEREZ) $(MACOS_RSRC) Carbon.r -useDF
>$(MACOS_R)
78 <clean-files>$(MACOS_RSRC) $(MACOS_R)
</clean-files>
80 <action id=
"macos-res-install" cond=
"TOOLKIT=='MAC'">
81 <dependency-of>install
</dependency-of>
82 <depends>macos-res
</depends>
84 $(INSTALL_DATA) $(MACOS_R) $(LIBDIR)
85 $(INSTALL_DATA) $(MACOS_RSRC) $(LIBDIR)
92 <!-- copy setup.h on Windows: -->
93 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MSW'">
95 <dir>$(LIBDIRNAME)
</dir>
97 <mkdir id=
"libdir_wx">
98 <depends>libdir
</depends>
99 <dir>$(LIBDIRNAME)/wx
</dir>
102 <copy-file-to-file id=
"msw/setup.h">
103 <src>$(SRCDIR)/include/wx/msw/setup0.h
</src>
104 <dst>$(SRCDIR)/include/wx/msw/setup.h
</dst>
106 <copy-file-to-file id=
"setup.h">
107 <depends>msw/setup.h
</depends>
108 <depends>libdir_wx
</depends>
109 <src>$(SRCDIR)/include/wx/msw/setup.h
</src>
110 <dst>$(LIBDIRNAME)/wx/setup.h
</dst>
113 <depends>setup.h
</depends>