head	1.5;
access;
symbols;
locks
	hroberts:1.5; strict;
comment	@# @;


1.5
date	98.03.24.05.47.01;	author hroberts;	state Exp;
branches;
next	1.4;

1.4
date	98.03.24.04.12.36;	author hroberts;	state Exp;
branches;
next	1.3;

1.3
date	98.03.22.06.56.26;	author hroberts;	state Exp;
branches;
next	1.2;

1.2
date	98.03.19.07.29.45;	author hroberts;	state Exp;
branches;
next	1.1;

1.1
date	98.03.19.05.08.24;	author hroberts;	state Exp;
branches;
next	;


desc
@@


1.5
log
@.
@
text
@# uncomment -one- of the following to indicate which sql engine you are using.
# also, make sure to indicate where to find either the mysql or msql libs 
# and includes below
DB_TYPE = -DGH_SQL_MYSQL
#DB_TYPE = -DGH_SQL_MSQL

# uncomment edit the following to lines to point to the appropriate 
# directories
MYSQL_INCLUDE = -I/usr/local/mysql/include 
MYSQL_LIB = -L/usr/local/mysql/lib/mysql -lmysqlclient

# uncomment and edit the following to lines to point to the appropriate 
# directories
#MSQL_INCLUDE = -I/usr/local/Hughes/include 
#MSQL_LIB = -L/usr/local/Hughes/lib/ -lmsql

# the following should be fine on most systems.
CC = gcc
CFLAGS = -g -Wall -O2 $(DB_TYPE)
INC = $(MYSQL_INCLUDE) $(MSQL_INCLUDE)
LIBS = -lguile $(MYSQL_LIB) $(MSQL_LIB)

EXEC = squile
OBJS = squile.o sql.o sql_imp.o	

squile:	$(OBJS)
	$(CC) $(CFLAGS) $(INC) -o $(EXEC) $(OBJS) $(LIBS)

sql.o: sql.c sql_imp.h
	$(CC) $(CFLAGS) $(INC) -c sql.c

sql_imp.o: sql_imp.c
	$(CC) $(CFLAGS) $(INC) -c sql_imp.c

squile.o: squile.c sql.h
	$(CC) $(CFLAGS) $(INC) -c squile.c


clean:
	rm -f $(OBJS) $(EXEC) *~ core

archive:
	ci -l -m. *.[ch] Makefile README

dist:
	(make clean; cd ..; tar cvf squile.tar squile; gzip squile.tar)@


1.4
log
@.
@
text
@d1 15
a15 15
# uncomment -one- of the following to indicate which sql engine you are using
#DB_TYPE = -DGH_SQL_MYSQL
DB_TYPE = -DGH_SQL_MSQL

# edit the following to lines to point to the appropriate directories
#MYSQL_INCLUDE = -I/usr/local/mysql/include 
#MYSQL_LIB = -L/usr/local/mysql/lib/mysql -lmysqlclient

# edit the following to lines to point to the appropriate directories
MSQL_INCLUDE = -I/usr/local/Hughes/include 
MSQL_LIB = -L/usr/local/Hughes/lib/ -lmsql

# if you wanna use readline to read the input for guile, uncomment this line
USE_READLINE = -DGH_MYSQL_USE_READLINE
READLINE_LIB = -lreadline
d19 1
a19 1
CFLAGS = -g -Wall -O2 $(USE_READLINE) $(DB_TYPE)
d21 1
a21 1
LIBS = -lguile $(READLINE_LIB) $(MYSQL_LIB) $(MSQL_LIB)
d40 1
a40 1
	rm -f $(OBJS) $(EXEC) core
d44 3
@


1.3
log
@.
@
text
@d2 2
a3 2
DB_TYPE = -DGH_SQL_MYSQL
#DB_TYPE = -DGH_SQL_MSQL
d6 2
a7 2
MYSQL_INCLUDE = -I/usr/local/mysql/include 
MYSQL_LIB = -L/usr/local/mysql/lib/mysql -lmysqlclient
d10 2
a11 2
#MSQL_INCLUDE = -I/usr/local/Hughes/include 
#MSQL_LIB = -L/usr/local/Hughes/lib/ -lmsql
@


1.2
log
@.
@
text
@d1 3
d6 6
a11 2
MYSQL_INCLUDE_PATH = -I/usr/local/mysql/include 
MYSQL_LIB_PATH = -L/usr/local/mysql/lib/mysql
d19 3
a21 3
CFLAGS = -g -Wall -O2 $(USE_READLINE)
INC = $(MYSQL_INCLUDE_PATH)
LIBS = -lguile $(READLINE_LIB) $(MYSQL_LIB_PATH) -lmysqlclient
d24 1
a24 4
OBJS = squile.o sql.o

squile.o: squile.c
	$(CC) $(CFLAGS) $(INC) -c squile.c
d29 1
a29 1
sql.o: sql.c
d31 7
@


1.1
log
@.
@
text
@d1 10
d12 3
a14 3
CFLAGS = -g -Wall
INC = -I/usr/local/mysql/include 
LIBS = -lguile -lreadline -L/usr/local/mysql/lib/mysql -lmysqlclient
d19 3
a24 3
squile.o: squile.c
	$(CC) $(CFLAGS) $(INC) -c squile.c

d32 1
a32 1
	ci -l -m. *.[ch] Makefile
@
