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"/>
21 <!-- OpenGL canvas is built as separate library in both cases: -->
22 <include file=
"opengl.bkl"/>
25 <!-- Samples target (not dependency of 'all'): -->
26 <!-- [ FIXME disabled; currently causes make install to go into samples ]
27 <subproject id="samples">
32 <if cond=
"FORMAT=='autoconf'">
33 <!-- "make install": -->
36 <files>wxwin.m4
</files>
37 <install-to>$(DATADIR)/aclocal
</install-to>
40 <data-files-tg id=
"install-afm" cond=
"USE_GUI=='1'">
41 <files>misc/afm/*.afm
</files>
42 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/afm
</install-to>
44 <data-files-tg id=
"install-gsafm" cond=
"USE_GUI=='1'">
45 <files>misc/gs_afm/*.afm
</files>
46 <install-to>$(DATADIR)/wx/$(WXVER_MAJOR).$(WXVER_MINOR)/gs_afm
</install-to>
49 <action id=
"install-wxconfig">
50 <dependency-of>install
</dependency-of>
52 $(INSTALL_DIR) $(BINDIR)
53 $(INSTALL_PROGRAM) wx$(TOOLCHAIN_NAME)-config $(BINDIR)
54 (cd $(BINDIR)
&& rm -f wx-config
&& $(LN_S) wx$(TOOLCHAIN_NAME)-config wx-config)
59 <srcdir>$(BUILDDIR)
</srcdir>
60 <files>lib/wx/include/$(TOOLCHAIN_NAME)/wx/setup.h
</files>
61 <install-to>$(LIBDIR)/wx/include/$(TOOLCHAIN_NAME)/wx
</install-to>
65 <srcdir>$(SRCDIR)/include
</srcdir>
66 <files>$(ALL_HEADERS)
</files>
70 <!-- Mac OS X resources: -->
71 <set var=
"MACOS_R">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[
0]).r
</set>
72 <set var=
"MACOS_RSRC">lib/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[
0]).rsrc
</set>
73 <action id=
"macos-res" cond=
"TOOLKIT=='MAC'">
74 <dependency-of>all
</dependency-of>
75 <set var=
"__targetname">$(MACOS_R)
</set>
77 $(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)
78 $(DEREZ) $(MACOS_RSRC) Carbon.r -useDF
>$(MACOS_R)
80 <clean-files>$(MACOS_RSRC) $(MACOS_R)
</clean-files>
82 <action id=
"macos-res-install" cond=
"TOOLKIT=='MAC'">
83 <dependency-of>install
</dependency-of>
84 <depends>macos-res
</depends>
86 $(INSTALL_DATA) $(MACOS_R) $(LIBDIR)
87 $(INSTALL_DATA) $(MACOS_RSRC) $(LIBDIR)
94 <!-- copy setup.h on Windows: -->
95 <if cond=
"FORMAT!='autoconf' and TOOLKIT=='MSW'">
97 <dir>$(LIBDIRNAME)
</dir>
99 <mkdir id=
"libdir_wx">
100 <depends>libdir
</depends>
101 <dir>$(LIBDIRNAME)/wx
</dir>
104 <copy-file-to-file id=
"msw/setup.h">
105 <src>$(SRCDIR)/include/wx/msw/setup0.h
</src>
106 <dst>$(SRCDIR)/include/wx/msw/setup.h
</dst>
108 <copy-file-to-file id=
"setup.h">
109 <depends>msw/setup.h
</depends>
110 <depends>libdir_wx
</depends>
111 <src>$(SRCDIR)/include/wx/msw/setup.h
</src>
112 <dst>$(LIBDIRNAME)/wx/setup.h
</dst>
115 <depends>setup.h
</depends>