###########################################################################
#
# FairCom Corporation makefile for c-treeACE Java Stored Procedure Tutorials
#
###########################################################################

# Directory in which tutorial source code is located
SRCDIR=..

# Interactive SQL utility
ISQL=../../../ctree.drivers/bin/isql

# User name
USR=ADMIN

# User password
PWD=ADMIN

# Database name
DBS=6597@localhost:ctreeSQL

ALL:
	@echo The java.sql.storedprocs tutorials are ready to run.
	@echo Type \'make run\' to run the tutorials.

run:
	@echo Running SP/T Tutorial 1 ...
	$(ISQL) -s$(SRCDIR)/SPTTutorial1.sql -u $(USR) -a $(PWD) $(DBS)
	@echo ''
	@echo ''
	@sleep 1
	@echo Running SP/T Tutorial 2 ...
	$(ISQL) -s$(SRCDIR)/SPTTutorial2.sql -u $(USR) -a $(PWD) $(DBS)
	@echo ''
	@echo ''
	@sleep 1
	@echo Running SP/T Tutorial 3 ...
	$(ISQL) -s$(SRCDIR)/SPTTutorial3.sql -u $(USR) -a $(PWD) $(DBS)
	@echo ''
	@echo ''
	@sleep 1
	@echo Running SP/T Tutorial 4 ...
	$(ISQL) -s$(SRCDIR)/SPTTutorial4.sql -u $(USR) -a $(PWD) $(DBS)

