summaryrefslogtreecommitdiff
path: root/databases/tcl-fbsql/files
diff options
context:
space:
mode:
authorbouyer <bouyer@pkgsrc.org>2003-03-07 16:17:49 +0000
committerbouyer <bouyer@pkgsrc.org>2003-03-07 16:17:49 +0000
commit500d079d1edfd8684fd4a8cae4079178bbe85de2 (patch)
tree09c769ac12d208b8439b7bf9996c88c016687bc8 /databases/tcl-fbsql/files
parentc5b9bc391ca14fe13dd352dceefffd8dc5f0cece (diff)
downloadpkgsrc-500d079d1edfd8684fd4a8cae4079178bbe85de2.tar.gz
Import of tcl-fbsql 1.05, a Tcl interface module to MySQL.
Diffstat (limited to 'databases/tcl-fbsql/files')
-rw-r--r--databases/tcl-fbsql/files/Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/databases/tcl-fbsql/files/Makefile b/databases/tcl-fbsql/files/Makefile
new file mode 100644
index 00000000000..0cfe1e287ef
--- /dev/null
+++ b/databases/tcl-fbsql/files/Makefile
@@ -0,0 +1,18 @@
+MYSQLLIBDIR = ${PREFIX}/lib/mysql
+MYSQLINCDIR = ${PREFIX}/include/mysql
+
+PIC = -fPIC
+INCLUDES = -I${PREFIX}/include/tcl -I$(MYSQLINCDIR)
+CFLAGS += -Wall $(PIC) $(INCLUDES)
+
+LDFLAGS = -lz $(MYSQLLIBDIR)/libmysqlclient.la
+
+all: fbsql.so
+
+fbsql.lo: fbsql.c
+ $(LIBTOOL) --mode=compile ${CC} ${CFLAGS} -c fbsql.c
+fbsql.so: fbsql.lo
+ $(LIBTOOL) --mode=link ${CC} -shared -o $@ fbsql.lo $(LDFLAGS)
+
+clean:
+ -rm -f core *.o fbsql.so