head	1.12;
access;
symbols;
locks; strict;
comment	@# @;


1.12
date	2000.01.14.17.47.03;	author tdarugar;	state Exp;
branches;
next	1.11;

1.11
date	2000.01.13.01.53.33;	author tdarugar;	state Exp;
branches;
next	1.10;

1.10
date	99.05.17.23.02.27;	author tdarugar;	state Exp;
branches;
next	1.9;

1.9
date	99.05.17.22.20.43;	author tdarugar;	state Exp;
branches;
next	1.8;

1.8
date	98.05.26.23.37.13;	author tdarugar;	state Exp;
branches;
next	1.7;

1.7
date	98.05.21.04.57.00;	author tdarugar;	state Exp;
branches;
next	1.6;

1.6
date	98.01.15.01.00.05;	author tdarugar;	state Exp;
branches;
next	1.5;

1.5
date	98.01.15.00.05.31;	author tdarugar;	state Exp;
branches;
next	1.4;

1.4
date	97.10.27.02.37.54;	author tdarugar;	state Exp;
branches;
next	1.3;

1.3
date	97.10.27.02.21.26;	author tdarugar;	state Exp;
branches;
next	1.2;

1.2
date	97.10.24.16.46.39;	author tdarugar;	state Exp;
branches;
next	1.1;

1.1
date	97.10.22.21.39.59;	author tdarugar;	state Exp;
branches;
next	;


desc
@@


1.12
log
@changed spaces to tab in make all line.
@
text
@# --------------------------------------------------------
# Tcl-GDBI Makefile
#
# Getting this to work:
# Edit section II to suite your needs.
# Find your operating system from section III, uncomment it,
# comment out the other operating systems, and modify the
# paths as necessary.
# Then type
#	make clean ; make
#
# $Id: Makefile,v 1.11 2000/01/13 01:53:33 tdarugar Exp tdarugar $
# --------------------------------------------------------


# --------------------------------------------------------
# Section I:
SRC 	   = sql-mysql.cc sql.cc sql-manager.cc
OBJ_DIR  = obj
OBJS	   = $(SRC:%.cc=$(OBJ_DIR)/%.o)
# --------------------------------------------------------

# -- Configurable parameters: ----------------------------
# Section II:
CC	= g++
LD	= g++
FLAGS	= -Wall
# include the path to your libmysqlclient as one of the -L's
LD_FLAGS = -L/usr/lib/mysql -L/usr/local/mysql/lib \
	-L/usr/lib -lmysqlclient
# include path to mysql includes
INCLUDE  = -I/usr/local/include -I/usr/include/mysql -I/usr/local/mysql/include

# --------------------------------------------------------
# Section III


# --------------------------------------------------------
# Linux:
EXTRA_FLAGS    = -fPIC 
EXTRA_LD_FLAGS = -shared -lgcc
# On some versions of linux you might need to add the following to
# EXTRA_FLAGS and EXTRA_LD_FLAGS:
# -u __divdi3  -u __moddi3

# --------------------------------------------------------
# Solaris:
#EXTRA_FLAGS    = -fPIC -shared
#EXTRA_LD_FLAGS = -L/usr/local/mysql -lnsl -lsocket -shared
#LD	= ld
# You will need to modify the following paths to your libmysqlclient.so
# and libgcc.a
#EXTRA_LINKS = /usr/local/mysql/lib/libmysqlclient.a \
#        /opt/GCC2721/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2.1/libgcc.a

# --------------------------------------------------------
# FreeBSD:
# CC     = cc
# EXTRA_LD_FLAGS = -lg++ -lstdc++ -lm -lgcc_pic

# --------------------------------------------------------
# You shouldn't need to modify anything below this line.
# 

CURDATE = `date +%y%m%d`

.SUFFIXES:	.o .cc

all:	sql.so

$(OBJ_DIR)/%.o: %.cc
	$(CC) -c $(INCLUDE) $(EXTRA_FLAGS) $(FLAGS) -o $@@ $<

sql.so:	$(OBJS)
	$(LD) $(OBJS) $(EXTRA_LINKS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so

clean:
	@@ rm -f *~ $(OBJ_DIR)/*.o sql.so
	@@ echo "Cleaned"
@


1.11
log
@Added -Wall , all: sql.so
@
text
@d12 1
a12 1
# $Id: Makefile,v 1.10 1999/05/17 23:02:27 tdarugar Exp tdarugar $
d69 1
a69 1
all:    sql.so
@


1.10
log
@Removed make tar.
@
text
@d12 1
a12 1
# $Id: Makefile,v 1.9 1999/05/17 22:20:43 tdarugar Exp tdarugar $
d27 1
a27 1
FLAGS	=
d68 2
@


1.9
log
@Modified Makefile to work on Solaris.
@
text
@d12 1
a12 1
# $Id$
a73 4

tar:	sql.so
	@@rm $(OBJ_DIR)/*
	tar zcvf tcl-sql-$(CURDATE).tgz *.txt *.html *.tcl Makefile $(OBJ_DIR) sql1.0/* docs/* *.h *.cc *.so tests/*
@


1.8
log
@Added *.tcl to tar target.
@
text
@d1 17
d20 12
a31 3
FLAGS    = -g
LD_FLAGS = -lgcc -L/usr/lib/mysql -L/usr/lib \
	-L/usr/local/mysql/lib -lmysqlclient
a32 2
OBJS	   = $(SRC:%.cc=$(OBJ_DIR)/%.o)
CC	     = g++
d34 5
d41 1
a41 1
EXTRA_LD_FLAGS = -shared
d46 1
d48 7
a54 4
#CC       = CC
#EXTRA_FLAGS    = -KPIC -shared
#EXTRA_LD_FLAGS = -L/opt/FSFgcc/lib/gcc-lib/sparc-sun-solaris2.5/2.7.2 \
#	-lnsl -lsocket -shared
d56 1
d61 4
d73 1
a73 1
	$(CC) $(OBJS) $(LD_FLAGS) $(EXTRA_LD_FLAGS) -o sql.so
@


1.7
log
@Added two extra possible flags.
@
text
@d39 1
a39 1
	tar zcvf tcl-sql-$(CURDATE).tgz *.txt *.html Makefile $(OBJ_DIR) sql1.0/* docs/* *.h *.cc *.so tests/*
@


1.6
log
@Needed to add the mysqlclient library in the link stage.
@
text
@d13 3
@


1.5
log
@Apparently added some stuff for Solaris, etc.
@
text
@d5 1
a5 1
	-L/usr/local/mysql/lib
@


1.4
log
@Removed 'h' from the tar command.
@
text
@d3 4
a6 3
FLAGS    = -fPIC -g
LD_FLAGS = -lmysqlclient -lgcc -L/usr/lib/mysql -L/usr/lib -shared
INCLUDE  = -I /usr/local/include -I /usr/include/mysql
d10 14
d29 1
a29 1
	$(CC) -c $(INCLUDE) $(FLAGS) -o $@@ $<
d32 1
a32 1
	$(CC) $(OBJS) $(LD_FLAGS) -o sql.so
@


1.3
log
@Added README, LICENSE, etc to tar.
@
text
@d20 2
a21 1
	tar zcvhf tcl-sql-$(CURDATE).tgz *.txt *.html Makefile sql1.0/* docs/* *.h *.cc *.so tests/*
@


1.2
log
@Added tar making code.
@
text
@d20 1
a20 1
	tar zcvhf tcl-sql-$(CURDATE).tgz sql1.0/* docs/* *.h *.cc *.so tests/*
@


1.1
log
@Initial revision
@
text
@d9 2
d18 3
@
