<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('xml')))</if>
</set>
<set var="WXLIB_ODBC">
- <if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('odbc')))</if>
+ <if cond="MONOLITHIC=='0' and USE_ODBC=='1'">
+ $(mk.evalExpr(wxwin.mkLibName('odbc')))
+ </if>
</set>
<set var="WXLIB_DBGRID">
<if cond="MONOLITHIC=='0'">$(mk.evalExpr(wxwin.mkLibName('dbgrid')))</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>
<if cond="FORMAT=='borland'">
<sys-lib>ole2w32</sys-lib>
</if>
- <if cond="FORMAT!='bcc'">
+ <if cond="FORMAT!='borland'">
<sys-lib>kernel32</sys-lib>
<sys-lib>user32</sys-lib>
<sys-lib>gdi32</sys-lib>
<sys-lib>winmm</sys-lib>
<sys-lib>shell32</sys-lib>
<sys-lib>comctl32</sys-lib>
- <sys-lib>odbc32</sys-lib>
<sys-lib>ole32</sys-lib>
<sys-lib>oleaut32</sys-lib>
<sys-lib>uuid</sys-lib>
<sys-lib>advapi32</sys-lib>
<sys-lib>wsock32</sys-lib>
</if>
- <if cond="FORMAT=='vc' or FORMAT=='bcc'">
+ <if cond="FORMAT=='msvc' or FORMAT=='msvc6prj' or FORMAT=='borland'">
<sys-lib>oleacc</sys-lib>
</if>
- </if>
+ <sys-lib>odbc32</sys-lib>
+ </if>
</template>
<define-tag name="msvc-headers" rules="dll,lib">
</if>
</define-tag>
+
+ <!-- A hack to keep autoconf happy (we pass CPPFLAGS that contain
+ {top_srcdir} from configure, poor bakefile can't know that
+ and won't output top_srcdir = @top_srcdir@ line): -->
+ <set var="VARS_DONT_ELIMINATE" append="1">top_srcdir</set>
+
+
</makefile>