compile db sample conditionally only if odbc support was built
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@23991 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -147,6 +147,9 @@ __WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
|
||||
!if "$(WXUNIV)" == "1"
|
||||
__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
|
||||
!endif
|
||||
!if "$(USE_ODBC)" == "1"
|
||||
__dbtest___depname = $(OBJS)\dbtest.exe
|
||||
!endif
|
||||
|
||||
|
||||
all: $(OBJS)
|
||||
@@ -155,7 +158,7 @@ $(OBJS):
|
||||
|
||||
### Targets: ###
|
||||
|
||||
all: $(OBJS)\dbtest.exe
|
||||
all: $(__dbtest___depname)
|
||||
|
||||
$(OBJS)\dbtest_dbtest.obj: .\dbtest.cpp
|
||||
$(CXX) -q -c -P -o$@ $(DBTEST_CXXFLAGS) $**
|
||||
@@ -176,7 +179,9 @@ clean:
|
||||
-if exist $(OBJS)\dbtest.ilf del $(OBJS)\dbtest.ilf
|
||||
-if exist $(OBJS)\dbtest.ils del $(OBJS)\dbtest.ils
|
||||
|
||||
!if "$(USE_ODBC)" == "1"
|
||||
$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest.res
|
||||
ilink32 -Tpe -q $(LDFLAGS) -L$(BCCDIR)\lib $(__DEBUGINFO) -L$(LIBDIRNAME) -aa @&&|
|
||||
c0w32.obj $(DBTEST_OBJECTS),$@,, $(__WXLIB_ODBC_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) wxzlib$(WXDEBUGFLAG).lib wxregex$(WXDEBUGFLAG).lib wxexpat$(WXDEBUGFLAG).lib $(__UNICOWS_LIB_p) ole2w32.lib oleacc.lib import32.lib cw32mt$(__RUNTIME_LIBS_7).lib,, $(OBJS)\dbtest_dbtest.res
|
||||
|
|
||||
!endif
|
||||
|
Reference in New Issue
Block a user