<set var="CFG_NAME_PART">
$(PORTNAME)$(WXUNIVNAME)$(WXUNICODEFLAG)$(WXDEBUGFLAG)$(WXDLLFLAG)$(CFG)
</set>
- <set var="OBJS" make_var="1">$(COMPILER)_$(CFG_NAME_PART)</set>
+ <set var="OBJS" make_var="1">
+ <if cond="FORMAT!='cbuilderx'">$(COMPILER)_$(CFG_NAME_PART)</if>
+ <!-- FIXME: waiting for removal after CBX has better ../ dirs
+ support -->
+ <if cond="FORMAT=='cbuilderx'">build_cbx_$(CFG_NAME_PART)</if>
+ </set>
+
<set var="BUILDDIR">$(OBJS)</set>
</if>
<define>$(WXUNIV_DEFINE)</define>
<define>$(DEBUG_DEFINE)</define>
<define>$(UNICODE_DEFINE)</define>
- <include>$(TOP_SRCDIR)include</include>
+ <!-- this include is added by configure, we need to put other
+ includes before it: -->
+ <include cond="FORMAT!='autoconf'">$(TOP_SRCDIR)include</include>
<lib-path>$(LIBDIRNAME)</lib-path>
<include cond="FORMAT!='autoconf'">$(SETUPHDIR)</include>
<warnings>max</warnings>
<!-- system libraries on windows: -->
<if cond="FORMAT!='autoconf'">
<sys-lib>$(UNICOWS_LIB)</sys-lib>
- <if cond="COMPILER=='bcc'">
+ <if cond="FORMAT=='borland'">
<sys-lib>ole2w32</sys-lib>
</if>
- <if cond="COMPILER!='bcc'">
+ <if cond="FORMAT!='borland'">
<sys-lib>kernel32</sys-lib>
<sys-lib>user32</sys-lib>
<sys-lib>gdi32</sys-lib>
<sys-lib>advapi32</sys-lib>
<sys-lib>wsock32</sys-lib>
</if>
- <if cond="COMPILER=='vc' or COMPILER=='bcc'">
+ <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
<sys-lib>oleacc</sys-lib>
</if>
- </if>
+ </if>
</template>
<define-tag name="msvc-headers" rules="dll,lib">