summaryrefslogtreecommitdiff
path: root/databases/tcl-fbsql/files
diff options
context:
space:
mode:
authorbouyer <bouyer>2003-03-07 16:17:49 +0000
committerbouyer <bouyer>2003-03-07 16:17:49 +0000
commite7d4ca87813c04395508afde5d1de489596d29de (patch)
tree09c769ac12d208b8439b7bf9996c88c016687bc8 /databases/tcl-fbsql/files
parent8f7a844db5057ae05a580482b5bc1fb8bebef7ac (diff)
downloadpkgsrc-e7d4ca87813c04395508afde5d1de489596d29de.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