# # Windows # Make file to build the Examples dbConnect API # Copyright (c) Johnathan Ingram 2003, jingram@roguware.org # ##################################################################### include ..\windows.conf IFLAGS = -I../include LFLAGS = ..\lib\libdbconnect.lib # TODO: Add driver_examples back once linking problem resolved all: basic_select basic_transaction basic_connection @echo "" @echo Add the .\lib directory to your PATH before running the examples @echo set PATH=...;{DBConnectHome}\lib @echo "" basic_select: basic_select.cpp $(CXX) /c basic_select.cpp $(CPPFLAGS) $(IFLAGS) /Fobasic_select.obj $(CXX) basic_select.obj $(CPPFLAGS) $(LFLAGS) /Febasic_select.exe basic_transaction: basic_transaction.cpp $(CXX) /c basic_transaction.cpp $(CPPFLAGS) $(IFLAGS) /Fobasic_transaction.obj $(CXX) basic_transaction.obj $(CPPFLAGS) $(LFLAGS) /Febasic_transaction.exe basic_connection: basic_connection.cpp $(CXX) /c basic_connection.cpp $(CPPFLAGS) $(IFLAGS) /Fobasic_connection.obj $(CXX) basic_connection.obj $(CPPFLAGS) $(LFLAGS) /Febasic_connection.exe driver_examples: (cd mysql & nmake /f Makefile.win) || exit 1 & cd .. (cd postgresql & nmake /f Makefile.win) || exit 1 & cd .. clean: @if exist *.obj del *.obj @if exist *.lib del *.lib @if exist *.exp del *.exp @if exist basic_select.exe del basic_select.exe @if exist basic_transaction.exe del basic_transaction.exe @if exist basic_connection.exe del basic_connection.exe (cd mysql & nmake /f Makefile.win clean) || exit 1 & cd .. (cd postgresql & nmake /f Makefile.win clean) || exit 1 & cd ..