@COND_WXUNIV_1@__WXUNIV_DEFINE_p = -D__WXUNIVERSAL__
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_1 = -d __WXUNIVERSAL__
@COND_WXUNIV_1@__WXUNIV_DEFINE_p_2 = --define __WXUNIVERSAL__
+@COND_USE_ODBC_1@__dbtest___depname = dbtest$(EXEEXT)
@COND_PLATFORM_MAC_1@__dbtest___mac_rezcmd = $(__MACOSX_RESOURCES_p_1)
@COND_PLATFORM_MAC_1@__dbtest___mac_setfilecmd = \
@COND_PLATFORM_MAC_1@ $(SETFILE) -a C dbtest$(EXEEXT)
### Targets: ###
-all: dbtest$(EXEEXT) $(__dbtest_bundle___depname)
+all: $(__dbtest___depname) $(__dbtest_bundle___depname)
clean:
rm -rf ./.deps ./.pch
rm -f dbtest$(EXEEXT)
rm -rf dbtest.app
-dbtest$(EXEEXT): $(DBTEST_OBJECTS) $(__dbtest___win32rc)
- $(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_ODBC_p) $(EXTRALIBS_ODBC) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS) $(EXTRALIBS_GUI)
- $(__dbtest___mac_rezcmd)
- $(__dbtest___mac_setfilecmd)
- $(__dbtest___os2_emxbindcmd)
- $(SAMPLES_RPATH_POSTLINK)
+@COND_USE_ODBC_1@dbtest$(EXEEXT): $(DBTEST_OBJECTS) $(__dbtest___win32rc)
+@COND_USE_ODBC_1@ $(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) -L$(LIBDIRNAME) $(LDFLAGS_GUI) $(SAMPLES_RPATH_FLAG) $(__WXLIB_ODBC_p) $(EXTRALIBS_ODBC) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) $(__LIB_ZLIB_p) $(__LIB_ODBC_p) $(__LIB_REGEX_p) $(__LIB_EXPAT_p) $(EXTRALIBS) $(EXTRALIBS_GUI)
+@COND_USE_ODBC_1@ $(__dbtest___mac_rezcmd)
+@COND_USE_ODBC_1@ $(__dbtest___mac_setfilecmd)
+@COND_USE_ODBC_1@ $(__dbtest___os2_emxbindcmd)
+@COND_USE_ODBC_1@ $(SAMPLES_RPATH_POSTLINK)
-dbtest.app/Contents/PkgInfo: dbtest$(EXEEXT) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
+dbtest.app/Contents/PkgInfo: $(__dbtest___depname) $(top_srcdir)/src/mac/Info.plist.in $(LIBDIRNAME)/libwx_$(TOOLCHAIN_NAME).1.rsrc $(top_srcdir)/src/mac/wxmac.icns
mkdir -p dbtest.app/Contents
mkdir -p dbtest.app/Contents/MacOS
mkdir -p dbtest.app/Contents/Resources
<include file="../../build/bakefiles/common_samples.bkl"/>
- <exe id="dbtest" template="wx_sample" template_append="wx_append">
+ <exe id="dbtest"
+ cond="USE_ODBC=='1'"
+ template="wx_sample" template_append="wx_append">
<sources>dbtest.cpp listdb.cpp</sources>
<wx-lib>odbc</wx-lib>
<wx-lib>core</wx-lib>
!if "$(WXUNIV)" == "1"
__WXUNIV_DEFINE_p_1 = -d__WXUNIVERSAL__
!endif
+!if "$(USE_ODBC)" == "1"
+__dbtest___depname = $(OBJS)\dbtest.exe
+!endif
all: $(OBJS)
### Targets: ###
-all: $(OBJS)\dbtest.exe
+all: $(__dbtest___depname)
$(OBJS)\dbtest_dbtest.obj: .\dbtest.cpp
$(CXX) -q -c -P -o$@ $(DBTEST_CXXFLAGS) $**
-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
ifeq ($(WXUNIV),1)
__WXUNIV_DEFINE_p_1 = --define __WXUNIVERSAL__
endif
+ifeq ($(USE_ODBC),1)
+__dbtest___depname = $(OBJS)\dbtest.exe
+endif
all: $(OBJS)
### Targets: ###
-all: $(OBJS)\dbtest.exe
+all: $(__dbtest___depname)
$(OBJS)\dbtest_dbtest.o: ./dbtest.cpp
$(CXX) -c -o $@ $(DBTEST_CXXFLAGS) $<
-if exist $(OBJS)\*.o del $(OBJS)\*.o
-if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
+ifeq ($(USE_ODBC),1)
$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest_rc.o
$(CXX) -o $@ $(DBTEST_OBJECTS) $(LDFLAGS) $(__DEBUGINFO) -mthreads -L$(LIBDIRNAME) -Wl,--subsystem,windows -mwindows $(__WXLIB_ODBC_p) $(__WXLIB_CORE_p) $(__WXLIB_BASE_p) $(__WXLIB_MONO_p) $(__LIB_TIFF_p) $(__LIB_JPEG_p) $(__LIB_PNG_p) -lwxzlib$(WXDEBUGFLAG) -lwxregex$(WXDEBUGFLAG) -lwxexpat$(WXDEBUGFLAG) $(__UNICOWS_LIB_p) -lkernel32 -luser32 -lgdi32 -lcomdlg32 -lwinspool -lwinmm -lshell32 -lcomctl32 -lodbc32 -lole32 -loleaut32 -luuid -lrpcrt4 -ladvapi32 -lwsock32
+endif
.PHONY: all clean
!if "$(DEBUG_RUNTIME_LIBS)" == "default"
____DEBUGRUNTIME_2_p_1 = $(____DEBUGINFO_2_p_1)
!endif
+!if "$(USE_ODBC)" == "1"
+__dbtest___depname = $(OBJS)\dbtest.exe
+!endif
all: $(OBJS)
### Targets: ###
-all: $(OBJS)\dbtest.exe
+all: $(__dbtest___depname)
$(OBJS)\dbtest_dbtest.obj: .\dbtest.cpp
$(CXX) /c /nologo /TP /Fo$@ $(DBTEST_CXXFLAGS) $**
-if exist $(OBJS)\dbtest.ilk del $(OBJS)\dbtest.ilk
-if exist $(OBJS)\dbtest.pdb del $(OBJS)\dbtest.pdb
+!if "$(USE_ODBC)" == "1"
$(OBJS)\dbtest.exe: $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest.res
link /NOLOGO /OUT:$@ $(LDFLAGS) $(__DEBUGINFO_1) /LIBPATH:$(LIBDIRNAME) /SUBSYSTEM:WINDOWS @<<
$(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) kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib oleacc.lib
<<
+!endif
!ifeq WXUNIV 1
__WXUNIV_DEFINE_p = -d__WXUNIVERSAL__
!endif
+__dbtest___depname =
+!ifeq USE_ODBC 1
+__dbtest___depname = $(OBJS)\dbtest.exe
+!endif
### Variables: ###
### Targets: ###
-all : .SYMBOLIC $(OBJS)\dbtest.exe
+all : .SYMBOLIC $(__dbtest___depname)
$(OBJS)\dbtest_dbtest.obj : .AUTODEPEND .\dbtest.cpp
$(CXX) -zq -fo=$^@ $(DBTEST_CXXFLAGS) $<
-if exist $(OBJS)\*.ilk del $(OBJS)\*.ilk
-if exist $(OBJS)\dbtest.exe del $(OBJS)\dbtest.exe
+!ifeq USE_ODBC 1
$(OBJS)\dbtest.exe : $(DBTEST_OBJECTS) $(OBJS)\dbtest_dbtest.res
@%create $(OBJS)\dbtest.lbc
@%append $(OBJS)\dbtest.lbc option quiet
@for %i in ( $(__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 kernel32.lib user32.lib gdi32.lib comdlg32.lib winspool.lib winmm.lib shell32.lib comctl32.lib odbc32.lib ole32.lib oleaut32.lib uuid.lib rpcrt4.lib advapi32.lib wsock32.lib ) do @%append $(OBJS)\dbtest.lbc library %i
@%append $(OBJS)\dbtest.lbc option resource=$(OBJS)\dbtest_dbtest.res
wlink @$(OBJS)\dbtest.lbc
+!endif