# to make all lib and examples
# make -f Makefile-dotnet all
# to clean the build
# make -f Makefile-dotnet clean
# dotnetSDK >= 6 must be installed for this to work
# to run example execute on bin folder <example_name>.exe
# please remember to edit project the example trying to run
# and add the startup example
# example:
# <StartupObject>DBC_Examples_VB.HcaptchaRqdata</StartupObject>
# or we can use the comand line
# dotnet build DBC_Examples_VB.vbproj -p:StartupObject=DeathByCaptcha.Hcaptcha
# dotnet run --project DBC_Examples_VB.vbproj --no-build
# if we get the error *** missing separator., replace all startingh spaces with tabs



all: clean lib

clean:
	cd DeathByCaptcha; dotnet clean
	cd DBC_Examples; dotnet clean
	cd DBC_Examples_VB; dotnet clean
	exit

lib:
	cd DeathByCaptcha; dotnet clean; dotnet build
	exit
    
examples_cs:
	cd DBC_Examples; dotnet clean; dotnet build; dotnet run
	exit

examples_vb:
	cd DBC_Examples_VB; dotnet clean; dotnet build; dotnet run
	exit

examples_terminal_vb:
	cd DeathByCaptcha; dotnet clean; dotnet build
	cd DBC_Examples_VB; dotnet build DBC_Examples_VB.vbproj -p:StartupObject=DBC_Examples_VB.Funcaptcha
	cd DBC_Examples_VB; dotnet run --project DBC_Examples_VB.vbproj --no-build
	exit

examples_terminal_cs:
	cd DeathByCaptcha; dotnet clean; dotnet build
	cd DBC_Examples; dotnet build DBC_Examples.csproj -p:StartupObject=DeathByCaptcha.FuncaptchaExample
	cd DBC_Examples; dotnet run --project DBC_Examples.csproj --no-build
	exit
