2003-06-23 15:50:43 -04:00
|
|
|
<?xml version="1.0" ?>
|
2003-07-06 17:51:34 -04:00
|
|
|
<!-- $Id$ -->
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<makefile>
|
|
|
|
|
|
|
|
<include file="common.bkl"/>
|
2003-07-06 17:51:34 -04:00
|
|
|
<set var="file_common_samples_included">1</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Template for wxWindows samples: -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<if cond="FORMAT=='autoconf'">
|
|
|
|
<set var="MACOSX_RESOURCES">
|
|
|
|
<if cond="TOOLKIT=='MAC'">
|
2003-06-30 14:44:43 -04:00
|
|
|
Carbon.r $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).$(WXSOVERSION[0]).r
|
2003-06-23 15:50:43 -04:00
|
|
|
</if>
|
|
|
|
</set>
|
|
|
|
</if>
|
2003-06-27 15:22:12 -04:00
|
|
|
|
|
|
|
<set var="DLLFLAG">
|
|
|
|
<if cond="SHARED=='1'">WXUSINGDLL</if>
|
|
|
|
</set>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
2003-07-20 18:00:40 -04:00
|
|
|
<template id="wx_util_b" template="wx">
|
2003-06-23 15:50:43 -04:00
|
|
|
<include>$(SRCDIR)</include>
|
2003-06-27 15:22:12 -04:00
|
|
|
<define>$(DLLFLAG)</define>
|
2003-07-01 17:50:34 -04:00
|
|
|
</template>
|
|
|
|
|
2003-07-20 18:00:40 -04:00
|
|
|
<template id="wx_util" template="wx_util_b">
|
2003-06-27 15:22:12 -04:00
|
|
|
<app-type>gui</app-type>
|
2003-06-23 15:50:43 -04:00
|
|
|
<mac-res cond="FORMAT=='autoconf'">$(MACOSX_RESOURCES)</mac-res>
|
|
|
|
</template>
|
2003-07-01 17:50:34 -04:00
|
|
|
|
2003-07-20 18:00:40 -04:00
|
|
|
<template id="wx_util_console" template="wx_util_b">
|
2003-07-01 17:50:34 -04:00
|
|
|
<app-type>console</app-type>
|
|
|
|
</template>
|
2003-07-20 18:00:40 -04:00
|
|
|
|
|
|
|
<template id="wx_sample" template="wx_util">
|
|
|
|
<ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
|
|
|
|
</template>
|
|
|
|
<template id="wx_sample_console" template="wx_util_console">
|
|
|
|
<ldflags>$(SAMPLES_RPATH_FLAG)</ldflags>
|
|
|
|
</template>
|
2003-06-23 15:50:43 -04:00
|
|
|
|
|
|
|
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
<!-- Support for samples data files: -->
|
|
|
|
<!-- =============================================================== -->
|
|
|
|
|
|
|
|
<define-rule name="wx-data" extends="copy-files">
|
|
|
|
<template>
|
|
|
|
<dependency-of>all</dependency-of>
|
|
|
|
<dstdir>$(BUILDDIR)</dstdir>
|
|
|
|
<srcdir>$(SRCDIR)</srcdir>
|
|
|
|
</template>
|
2003-07-06 17:51:34 -04:00
|
|
|
|
|
|
|
<!--
|
|
|
|
VS - FIXME:
|
|
|
|
Don't clean the files because it would wipe out sources files if
|
|
|
|
BUILDDIR==SRCDIR. This is same behaviour as in the old build system,
|
|
|
|
but it would be better to delete the files during "make clean" if
|
|
|
|
BUILDDIR!=SRCDIR.
|
|
|
|
|
2003-06-23 15:50:43 -04:00
|
|
|
<define-tag name="files">
|
|
|
|
<clean-files>
|
|
|
|
$(' '.join(['$(BUILDDIR)$(DIRSEP)%s'%x for x in value.split()]))
|
|
|
|
</clean-files>
|
|
|
|
</define-tag>
|
2003-07-06 17:51:34 -04:00
|
|
|
-->
|
2003-06-23 15:50:43 -04:00
|
|
|
</define-rule>
|
|
|
|
|
|
|
|
</makefile>
|