]>
Commit | Line | Data |
---|---|---|
ddf98968 VS |
1 | <?xml version="1.0" ?> |
2 | <makefile> | |
3 | ||
ddf98968 VS |
4 | <include file="common.bkl"/> |
5 | ||
6 | ||
7 | <!-- =============================================================== --> | |
8 | <!-- Template for wxWindows samples: --> | |
9 | <!-- =============================================================== --> | |
10 | ||
11 | <if cond="FORMAT=='autoconf'"> | |
12 | <set var="MACOSX_RESOURCES"> | |
13 | <if cond="TOOLKIT=='MAC'"> | |
71258947 | 14 | Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r |
ddf98968 VS |
15 | </if> |
16 | </set> | |
17 | </if> | |
cdc0282e VS |
18 | |
19 | <set var="DLLFLAG"> | |
20 | <if cond="SHARED=='1'">WXUSINGDLL</if> | |
21 | </set> | |
ddf98968 | 22 | |
4574209d | 23 | <template id="wx_sample_b" template="wx"> |
ddf98968 VS |
24 | <include>$(SRCDIR)</include> |
25 | <!-- Always link against the wxWin library in monolithic build: --> | |
26 | <sys-lib>$(WXLIB_MONO)</sys-lib> | |
27 | <ldflags>$(SAMPLES_RPATH_FLAG)</ldflags> | |
cdc0282e | 28 | <define>$(DLLFLAG)</define> |
4574209d VS |
29 | </template> |
30 | ||
31 | <template id="wx_sample" template="wx_sample_b"> | |
cdc0282e | 32 | <app-type>gui</app-type> |
ddf98968 VS |
33 | <mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res> |
34 | </template> | |
4574209d VS |
35 | |
36 | <template id="wx_sample_console" template="wx_sample_b"> | |
37 | <app-type>console</app-type> | |
38 | </template> | |
ddf98968 VS |
39 | |
40 | ||
41 | <!-- =============================================================== --> | |
42 | <!-- Support for samples data files: --> | |
43 | <!-- =============================================================== --> | |
44 | ||
45 | <define-rule name="wx-data" extends="copy-files"> | |
46 | <template> | |
47 | <dependency-of>all</dependency-of> | |
48 | <dstdir>$(BUILDDIR)</dstdir> | |
49 | <srcdir>$(SRCDIR)</srcdir> | |
50 | </template> | |
51 | <define-tag name="files"> | |
52 | <clean-files> | |
53 | $(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()])) | |
54 | </clean-files> | |
55 | </define-tag> | |
56 | </define-rule> | |
57 | ||
58 | </makefile> |