# =========================================================================
#     This makefile was generated by
#     Bakefile 0.2.1 (http://bakefile.sourceforge.net)
#     Do not modify, all changes will be overwritten!
# =========================================================================


@MAKE_SET@

prefix = @prefix@
exec_prefix = @exec_prefix@
INSTALL = @INSTALL@
SHARED_LD_CXX = @SHARED_LD_CXX@
LIBEXT = @LIBEXT@
LIBPREFIX = @LIBPREFIX@
SO_SUFFIX = @SO_SUFFIX@
DLLIMP_SUFFIX = @DLLIMP_SUFFIX@
EXEEXT = @EXEEXT@
LN_S = @LN_S@
WINDRES = @WINDRES@
SETFILE = @SETFILE@
PIC_FLAG = @PIC_FLAG@
SONAME_FLAG = @SONAME_FLAG@
STRIP = @STRIP@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_DIR = @INSTALL_DIR@
BK_DEPS = @BK_DEPS@
srcdir = @srcdir@
top_builddir = @top_builddir@
libdir = @libdir@
includedir = @includedir@
DLLPREFIX = @DLLPREFIX@
LIBS = @LIBS@
AR = @AR@
AROPTIONS = @AROPTIONS@
RANLIB = @RANLIB@
CXX = @CXX@
CXXFLAGS = @CXXFLAGS@
CPPFLAGS = @CPPFLAGS@
LDFLAGS = @LDFLAGS@
WX_CXXFLAGS = @WX_CXXFLAGS@
WX_LIBS = @WX_LIBS@
SQLITE3_DIR = @SQLITE3_DIR@

### Variables: ###

DESTDIR = 
WXSQLITE3_LIB_CXXFLAGS = $(__WX_SHAREDDEFINE_p) -I$(srcdir)/include \
	$(__SQLITE3_DYNAMICLOAD_DEF_p) $(__SQLITE3_HAVE_METADATA_DEF_p) \
	$(__SQLITE3_HAVE_CODEC_DEF_p) $(__SQLITE3_HAVE_LOAD_EXTENSION_DEF_p) \
	-I$(SQLITE3_DIR)/include $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS)
WXSQLITE3_LIB_OBJECTS =  \
	wxsqlite3_lib_wxsqlite3.o
WXSQLITE3_DLL_CXXFLAGS = $(__WX_SHAREDDEFINE_p) -I$(srcdir)/include \
	-DWXMAKINGDLL_WXSQLITE3 $(__SQLITE3_DYNAMICLOAD_DEF_p) \
	$(__SQLITE3_HAVE_METADATA_DEF_p) $(__SQLITE3_HAVE_CODEC_DEF_p) \
	$(__SQLITE3_HAVE_LOAD_EXTENSION_DEF_p) -I$(SQLITE3_DIR)/include \
	$(PIC_FLAG) $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS)
WXSQLITE3_DLL_OBJECTS =  \
	wxsqlite3_dll_wxsqlite3.o
MINIMAL_CXXFLAGS = $(__WX_SHAREDDEFINE_p) -I$(srcdir)/include \
	-I$(SQLITE3_DIR)/include $(WX_CXXFLAGS) $(CPPFLAGS) $(CXXFLAGS)
MINIMAL_OBJECTS =  \
	minimal_minimal.o \
	$(__minimal___win32rc)

### Conditionally set variables: ###

@COND_DEPS_TRACKING_0@CXXC = $(CXX)
@COND_DEPS_TRACKING_1@CXXC = $(BK_DEPS) $(CXX)
@COND_WX_DEBUG_0_WX_UNICODE_1@WXLIBPOSTFIX = u
@COND_WX_DEBUG_1_WX_UNICODE_0@WXLIBPOSTFIX = d
@COND_WX_DEBUG_1_WX_UNICODE_1@WXLIBPOSTFIX = ud
@COND_WX_SHARED_0@__wxsqlite3_lib___depname = \
@COND_WX_SHARED_0@	./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(LIBEXT)
@COND_WX_SHARED_0@__install_wxsqlite3_lib___depname = install_wxsqlite3_lib
@COND_WX_SHARED_0@__uninstall_wxsqlite3_lib___depname = \
@COND_WX_SHARED_0@	uninstall_wxsqlite3_lib
@COND_WX_SHARED_1@__wxsqlite3_dll___depname = \
@COND_WX_SHARED_1@	./lib/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3)
@COND_WX_SHARED_1@__install_wxsqlite3_dll___depname = install_wxsqlite3_dll
@COND_WX_SHARED_1@__uninstall_wxsqlite3_dll___depname = \
@COND_WX_SHARED_1@	uninstall_wxsqlite3_dll
COND_PLATFORM_MACOSX_1___wxsqlite3_dll___macinstnamecmd = -install_name \
	$(libdir)/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2)
@COND_PLATFORM_MACOSX_1@__wxsqlite3_dll___macinstnamecmd = $(COND_PLATFORM_MACOSX_1___wxsqlite3_dll___macinstnamecmd)
@COND_PLATFORM_OS2_1@__wxsqlite3_dll___importlib = \
@COND_PLATFORM_OS2_1@	-import \
@COND_PLATFORM_OS2_1@	./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX)
COND_WINDOWS_IMPLIB_1___wxsqlite3_dll___importlib = \
	-Wl,--out-implib=./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX)
@COND_WINDOWS_IMPLIB_1@__wxsqlite3_dll___importlib = $(COND_WINDOWS_IMPLIB_1___wxsqlite3_dll___importlib)
@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@__wxsqlite3_dll___targetsuf2 \
@COND_PLATFORM_MACOSX_0_USE_SOVERSION_1@	= .$(SO_SUFFIX).0
@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@__wxsqlite3_dll___targetsuf2 \
@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@	= .0.$(SO_SUFFIX)
@COND_USE_SOVERSION_0@__wxsqlite3_dll___targetsuf2 = .$(SO_SUFFIX)
@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@__wxsqlite3_dll___targetsuf3 \
@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@	= \
@COND_PLATFORM_MACOSX_0_USE_SOVERCYGWIN_0_USE_SOVERSION_1@	.$(SO_SUFFIX).0.0.0
@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@__wxsqlite3_dll___targetsuf3 \
@COND_PLATFORM_MACOSX_1_USE_SOVERSION_1@	= .0.0.0.$(SO_SUFFIX)
@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@__wxsqlite3_dll___targetsuf3 \
@COND_USE_SOVERCYGWIN_1_USE_SOVERSION_1@	= -0.$(SO_SUFFIX)
@COND_USE_SOVERSION_0@__wxsqlite3_dll___targetsuf3 = .$(SO_SUFFIX)
COND_USE_SOVERLINUX_1___wxsqlite3_dll___soname_flags = \
	$(SONAME_FLAG)$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2)
@COND_USE_SOVERLINUX_1@__wxsqlite3_dll___soname_flags = $(COND_USE_SOVERLINUX_1___wxsqlite3_dll___soname_flags)
COND_USE_SOVERSOLARIS_1___wxsqlite3_dll___soname_flags = \
	$(SONAME_FLAG)$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3)
@COND_USE_SOVERSOLARIS_1@__wxsqlite3_dll___soname_flags = $(COND_USE_SOVERSOLARIS_1___wxsqlite3_dll___soname_flags)
COND_USE_SOSYMLINKS_1___wxsqlite3_dll___so_symlinks_cmd = (cd ./lib/; rm -f \
	$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2); \
	$(LN_S) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2); \
	$(LN_S) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2) \
	$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX))
@COND_USE_SOSYMLINKS_1@__wxsqlite3_dll___so_symlinks_cmd = $(COND_USE_SOSYMLINKS_1___wxsqlite3_dll___so_symlinks_cmd)
COND_USE_SOSYMLINKS_1___wxsqlite3_dll___so_symlinks_inst_cmd = rm -f \
	$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2); \
	$(LN_S) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2); \
	$(LN_S) \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2) \
	$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX)
@COND_USE_SOSYMLINKS_1@__wxsqlite3_dll___so_symlinks_inst_cmd = $(COND_USE_SOSYMLINKS_1___wxsqlite3_dll___so_symlinks_inst_cmd)
COND_USE_SOSYMLINKS_1___wxsqlite3_dll___so_symlinks_uninst_cmd = rm -f \
	$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2) \
	$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX)
@COND_USE_SOSYMLINKS_1@__wxsqlite3_dll___so_symlinks_uninst_cmd = $(COND_USE_SOSYMLINKS_1___wxsqlite3_dll___so_symlinks_uninst_cmd)
@COND_PLATFORM_MAC_1@__minimal___mac_setfilecmd = \
@COND_PLATFORM_MAC_1@	$(SETFILE) -t APPL ./samples/minimal$(EXEEXT)
@COND_WX_SHARED_1@__WX_SHAREDDEFINE_p_5 = --define WXUSINGDLL
@COND_PLATFORM_WIN32_1@__minimal___win32rc = minimal_minimal_rc.o
@COND_USE_DYNAMIC_SQLITE3_LOAD_0@__SQLITE3_DYNAMICLOAD_DEF_p \
@COND_USE_DYNAMIC_SQLITE3_LOAD_0@	= -DwxUSE_DYNAMIC_SQLITE3_LOAD=0
@COND_USE_DYNAMIC_SQLITE3_LOAD_1@__SQLITE3_DYNAMICLOAD_DEF_p \
@COND_USE_DYNAMIC_SQLITE3_LOAD_1@	= -DwxUSE_DYNAMIC_SQLITE3_LOAD=1
@COND_HAVE_METADATA_0@__SQLITE3_HAVE_METADATA_DEF_p = \
@COND_HAVE_METADATA_0@	-DWXSQLITE3_HAVE_METADATA=0
@COND_HAVE_METADATA_1@__SQLITE3_HAVE_METADATA_DEF_p = \
@COND_HAVE_METADATA_1@	-DWXSQLITE3_HAVE_METADATA=1
@COND_HAVE_CODEC_0@__SQLITE3_HAVE_CODEC_DEF_p = -DWXSQLITE3_HAVE_CODEC=0
@COND_HAVE_CODEC_1@__SQLITE3_HAVE_CODEC_DEF_p = -DWXSQLITE3_HAVE_CODEC=1
@COND_HAVE_LOAD_EXTENSION_0@__SQLITE3_HAVE_LOAD_EXTENSION_DEF_p \
@COND_HAVE_LOAD_EXTENSION_0@	= -DWXSQLITE3_HAVE_LOAD_EXTENSION=0
@COND_HAVE_LOAD_EXTENSION_1@__SQLITE3_HAVE_LOAD_EXTENSION_DEF_p \
@COND_HAVE_LOAD_EXTENSION_1@	= -DWXSQLITE3_HAVE_LOAD_EXTENSION=1
@COND_WX_SHARED_1@__WX_SHAREDDEFINE_p = -DWXUSINGDLL
@COND_USE_DYNAMIC_SQLITE3_LOAD_0@__SQLITE3_DEP_p = -lsqlite3

### Targets: ###

all: $(top_builddir)./lib $(top_builddir)./samples $(__wxsqlite3_lib___depname) $(__wxsqlite3_dll___depname) ./samples/minimal$(EXEEXT)

install: all install-wxheaders $(__install_wxsqlite3_lib___depname) $(__install_wxsqlite3_dll___depname)

uninstall: $(__uninstall_wxsqlite3_lib___depname) $(__uninstall_wxsqlite3_dll___depname)
	rm -f $(DESTDIR)$(includedir)/wx/wxsqlite3def.h \
	$(DESTDIR)$(includedir)/wx/wxsqlite3.h \
	$(DESTDIR)$(includedir)/wx/wxsqlite3dyn.h \
	$(DESTDIR)$(includedir)/wx/wxsqlite3opt.h
	rm -f $(libdir)/*wxsqlite3*

install-strip: install
	$(STRIP) $(DESTDIR)$(libdir)/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3)

clean: 
	rm -rf ./.deps ./.pch
	rm -f ./*.o
	rm -f ./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(LIBEXT)
	rm -f ./lib/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3)
	rm -f ./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX)
	rm -f ./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX) ./lib/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf2)
	rm -f ./samples/minimal$(EXEEXT)

distclean: clean
	rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile

tarball: 
	( cd . && tar -cvzf ../wxsqlite3.tar.gz --exclude=*.pdb --exclude=*.log --exclude=*.o* * )

zip: 
	( cd . && zip -r9 ../wxsqlite3.zip *  -x *.pdb -x *.log -x *.o* )

deepclean: 
	rm -f -r ./*.a
	rm -f -r ./*.lib
	rm -f -r ./*.pdb
	rm -f -r ./*.dll
	rm -f -r ./*.exp
	rm -f -r ./*.so*
	rm -f -r ./*.exe
	rm -f -r ./*.obj
	rm -f -r ./*.o
	rm -f -r ./*.log
	rm -f -r ./*.manifest*
	rm -f -r ./*.log
	rm -f -r ./.bakefile_gen.state
	rm -f -r ./*.pch
	rm -f -r ./*.ncb
	rm -f -r ./*.plg
	rm -f -r ./*.ncb
	rm -f -r ./*.aps
	rm -f -r ./*.suo
	rm -f -r ./*.user
	rm -f -r ./*.res
	rm -f -r ./*.il?
	rm -f -r ./*.tds
	rm -f -r ./*.idb
	rm -f -r ./*.map
	rm -rf ./autom4te.cache
	rm -rf ./.deps
	rm -f -r ./config.status
	rm -f -r ./config.log
	rm -f -r ./Makefile
	rm -f -r ./bk-deps
	rm -f -r ./*.a
	rm -f -r ./*.lib
	rm -f -r ./*.pdb
	rm -f -r ./*.dll
	rm -f -r ./*.exp
	rm -f -r ./*.so*
	rm -f -r ./*.exe
	rm -f -r ./*.obj
	rm -f -r ./*.o
	rm -f -r ./*.log
	rm -f -r ./*.manifest*
	rm -f -r ./*.log
	rm -f -r ./.bakefile_gen.state
	rm -f -r ./*.pch
	rm -f -r ./*.ncb
	rm -f -r ./*.plg
	rm -f -r ./*.ncb
	rm -f -r ./*.aps
	rm -f -r ./*.suo
	rm -f -r ./*.user
	rm -f -r ./*.res
	rm -f -r ./*.il?
	rm -f -r ./*.tds
	rm -f -r ./*.idb
	rm -f -r ./*.map
	rm -rf ./autom4te.cache
	rm -rf ./.deps
	rm -f -r ./config.status
	rm -f -r ./config.log
	rm -f -r ./Makefile
	rm -f -r ./bk-deps

docs: 
	( cd ./docs && doxygen )

cleandocs: 
	rm -rf ./docs/html

install-wxheaders: 
	$(INSTALL_DIR) $(DESTDIR)$(includedir)/wx
	(cd $(srcdir) ; $(INSTALL_DATA)  ./include/wx/*.h $(DESTDIR)$(includedir)/wx)

$(top_builddir)./lib: 
	@mkdir -p $(top_builddir)./lib

$(top_builddir)./samples: 
	@mkdir -p $(top_builddir)./samples

@COND_WX_SHARED_0@./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(LIBEXT): $(WXSQLITE3_LIB_OBJECTS)
@COND_WX_SHARED_0@	rm -f $@
@COND_WX_SHARED_0@	$(AR) $(AROPTIONS) $@ $(WXSQLITE3_LIB_OBJECTS)
@COND_WX_SHARED_0@	$(RANLIB) $@

@COND_WX_SHARED_0@install_wxsqlite3_lib: 
@COND_WX_SHARED_0@	$(INSTALL_DIR) $(DESTDIR)$(libdir)
@COND_WX_SHARED_0@	$(INSTALL_DATA) ./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(LIBEXT) $(DESTDIR)$(libdir)

@COND_WX_SHARED_0@uninstall_wxsqlite3_lib: 
@COND_WX_SHARED_0@	rm -f $(DESTDIR)$(libdir)/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(LIBEXT)

@COND_WX_SHARED_1@./lib/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3): $(WXSQLITE3_DLL_OBJECTS)
@COND_WX_SHARED_1@	$(SHARED_LD_CXX) $@ $(WXSQLITE3_DLL_OBJECTS) $(LDFLAGS)   -L./lib $(__wxsqlite3_dll___macinstnamecmd) $(__wxsqlite3_dll___importlib) $(__wxsqlite3_dll___soname_flags) -L$(SQLITE3_DIR)/lib  $(LIBS)  $(WX_LIBS) $(__SQLITE3_DEP_p)
@COND_WX_SHARED_1@	
@COND_WX_SHARED_1@	$(__wxsqlite3_dll___so_symlinks_cmd)

@COND_WX_SHARED_1@install_wxsqlite3_dll: 
@COND_WX_SHARED_1@	$(INSTALL_DIR) $(DESTDIR)$(libdir)
@COND_WX_SHARED_1@	$(INSTALL_DATA) ./lib/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX) $(DESTDIR)$(libdir)
@COND_WX_SHARED_1@	$(INSTALL_PROGRAM) ./lib/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3) $(DESTDIR)$(libdir)
@COND_WX_SHARED_1@	(cd $(DESTDIR)$(libdir) ; $(__wxsqlite3_dll___so_symlinks_inst_cmd))

@COND_WX_SHARED_1@uninstall_wxsqlite3_dll: 
@COND_WX_SHARED_1@	rm -f $(DESTDIR)$(libdir)/$(LIBPREFIX)wxsqlite3$(WXLIBPOSTFIX).$(DLLIMP_SUFFIX)
@COND_WX_SHARED_1@	rm -f $(DESTDIR)$(libdir)/$(DLLPREFIX)wxsqlite3$(WXLIBPOSTFIX)$(__wxsqlite3_dll___targetsuf3)
@COND_WX_SHARED_1@	(cd $(DESTDIR)$(libdir) ; $(__wxsqlite3_dll___so_symlinks_uninst_cmd))

./samples/minimal$(EXEEXT): $(MINIMAL_OBJECTS) $(__wxsqlite3_lib___depname) $(__minimal___win32rc)
	$(CXX) -o $@ $(MINIMAL_OBJECTS) -L./lib $(LDFLAGS)   -L./lib  -L$(SQLITE3_DIR)/lib  $(LIBS)  $(WX_LIBS) -lwxsqlite3$(WXLIBPOSTFIX) $(__SQLITE3_DEP_p)
	
	$(__minimal___mac_setfilecmd)

wxsqlite3_lib_wxsqlite3.o: $(srcdir)/./src/wxsqlite3.cpp
	$(CXXC) -c -o $@ $(WXSQLITE3_LIB_CXXFLAGS) $(srcdir)/./src/wxsqlite3.cpp

wxsqlite3_dll_wxsqlite3.o: $(srcdir)/./src/wxsqlite3.cpp
	$(CXXC) -c -o $@ $(WXSQLITE3_DLL_CXXFLAGS) $(srcdir)/./src/wxsqlite3.cpp

minimal_minimal.o: $(srcdir)/./samples/minimal.cpp
	$(CXXC) -c -o $@ $(MINIMAL_CXXFLAGS) $(srcdir)/./samples/minimal.cpp

minimal_minimal_rc.o: $(srcdir)/./samples/minimal.rc
	$(WINDRES) -i$< -o$@ $(__WX_SHAREDDEFINE_p_5) --include-dir $(srcdir)/include --include-dir ./samples


# Include dependency info, if present:
@IF_GNU_MAKE@-include .deps/*.d

.PHONY: all install uninstall clean distclean install_wxsqlite3_lib uninstall_wxsqlite3_lib install_wxsqlite3_dll uninstall_wxsqlite3_dll
