Atualizacao dos nomes de arquivos no README.
Correcao no Makefile na geracao dos .DEF, acrescimo da opcao -ansi.
This commit is contained in:
parent
63f1287074
commit
9236fa645f
13
Makefile
13
Makefile
@ -1,4 +1,4 @@
|
||||
WARN= -Wall -Wmissing-prototypes -Wmissing-declarations
|
||||
WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi
|
||||
INCS= -I/usr/local/include/lua5 -I/usr/local/pgsql/include -Itomas/dblua_oci8/linux/include -I/home/oracle/OraHome1/rdbms/demo -I/home/oracle/OraHome1/rdbms/public
|
||||
LIBS_DIR= -L/usr/local/pgsql/lib -L../lua-5.0/lib -L/home/oracle/OraHome1/lib
|
||||
LIBS= -llua.5.0 -llualib.5.0 -lm -lz -ldl
|
||||
@ -35,11 +35,10 @@ OCI_LIB= libluasqloci8.$(VERSION).a
|
||||
OCI_SO= libluasqloci8.$(VERSION).so
|
||||
OCI_DLL= luasqloracle.$(VERSION).dll
|
||||
MYSQL_LIB= libluasqlmysql.$(VERSION).a
|
||||
MYSQL_SO= libluasqlmysql.$(VERSIOIN).so
|
||||
MYSQL_SO= libluasqlmysql.$(VERSION).so
|
||||
MYSQL_DLL= luasqlmysql.$(VERSION).dll
|
||||
|
||||
dist:
|
||||
#cd ..; tar -czf luasql-2.0.tar.gz $(SRCS)
|
||||
mkdir $(PKG);
|
||||
cp $(SRCS) $(PKG);
|
||||
tar -czf $(TAR_FILE) $(PKG);
|
||||
@ -54,21 +53,21 @@ pgmac: $(PG_LIB) $(PG_DYLIB)
|
||||
|
||||
odbcwin:
|
||||
sed -e "s/LIB_NAME/$(ODBC_DLL)/" -e "s/DRIVER/odbc/" loader.tmpl > odbc.lua
|
||||
sed -e "s/VERSION/$(VERSION)/" -e "s/DRIVER/odbc/" def.tmpl > odbc.def
|
||||
sed -e "s/VERSION_NUMBER/$(VERSION)/" -e "s/DRIVER/odbc/" def.tmpl > odbc.def
|
||||
|
||||
ocilinux: $(OCI_LIB) $(OCI_SO)
|
||||
sed -e "s/LIB_NAME/$(OCI_SO)/" -e "s/DRIVER/oracle/" loader.tmpl > oracle.lua
|
||||
|
||||
ociwin:
|
||||
sed -e "s/LIB_NAME/$(OCI_SO)/" -e "s/DRIVER/oracle/" loader.tmpl > oracle.lua
|
||||
sed -e "s/VERSION/$(VERSION)/" -e "s/DRIVER/oracle/" def.tmpl > oracle.def
|
||||
sed -e "s/VERSION_NUMBER/$(VERSION)/" -e "s/DRIVER/oracle/" def.tmpl > oracle.def
|
||||
|
||||
mysqllinux: $(MYSQL_LIB) $(MYSQL_SO)
|
||||
sed -e "s/LIB_NAME/$(MYSQL_SO)/" -e "s/DRIVER/mysql/" loader.tmpl > mysql.lua
|
||||
|
||||
mysqlwin:
|
||||
sed -e "s/LIB_NAME/$(MYSQL_SO)/" -e "s/DRIVER/mysql/" loader.tmpl > mysql.lua
|
||||
sed -e "s/VERSION/$(VERSION)/" -e "s/DRIVER/mysql/" def.tmpl > mysql.def
|
||||
sed -e "s/VERSION_NUMBER/$(VERSION)/" -e "s/DRIVER/mysql/" def.tmpl > mysql.def
|
||||
|
||||
$(PG_LIB): $(LS_OBJ) $(PG_OBJ)
|
||||
$(AR) $@ $(LS_OBJ) $(PG_OBJ)
|
||||
@ -95,4 +94,4 @@ $(MYSQL_SO): $(LS_OBJ) $(MYSQL_OBJ)
|
||||
gcc -o $@ -shared $(LS_OBJ) $(MYSQL_OBJ) $(LIBS_DIR) $(LIBS)
|
||||
|
||||
clean:
|
||||
rm -f $(LS_OBJ) $(ODBC_OBJ) $(PG_OBJ) $(OCI_OBJ) $(MY_OBJ) $(ODBC_LIB) $(ODBC_DLL) $(PG_LIB) $(PG_SO) $(PG_DYLIB) $(OCI_LIB) $(OCI_SO) $(MYSQL_LIB) $(MYSQL_SO) postgres.lua odbc.lua oracle.lua mysql.lua
|
||||
rm -f $(LS_OBJ) $(ODBC_OBJ) $(PG_OBJ) $(OCI_OBJ) $(MY_OBJ) $(ODBC_LIB) $(ODBC_DLL) $(PG_LIB) $(PG_SO) $(PG_DYLIB) $(OCI_LIB) $(OCI_SO) $(MYSQL_LIB) $(MYSQL_SO) postgres.lua odbc.lua oracle.lua mysql.lua postgres.def odbc.def oracle.def mysql.def
|
||||
|
16
README
16
README
@ -3,22 +3,20 @@ functionality available in any database manager.
|
||||
|
||||
Here goes a small description of the files in the distribution
|
||||
|
||||
def.tmpl -- .DEF template
|
||||
index.html -- Home page
|
||||
ls_odbc.c -- ODBC driver (source)
|
||||
ls_odbc.def -- ODBC driver (.def)
|
||||
ls_odbc.h -- ODBC driver (header)
|
||||
ls_pg.c -- PostgreSQL driver (source)
|
||||
ls_pg.def -- PostgreSQL driver (.def)
|
||||
ls_pg.h -- PostgreSQL driver (header)
|
||||
loader.tmpl -- Lua loader template
|
||||
ls_mysql.c -- MySQL driver
|
||||
ls_oci8.c -- Oracle OCI 8 driver
|
||||
ls_odbc.c -- ODBC driver
|
||||
ls_pg.c -- PostgreSQL driver
|
||||
lua.png -- Lua Logo
|
||||
luasql.c -- Common functions
|
||||
luasql.h -- Common definitions
|
||||
Makefile -- Makefile for Unix systems
|
||||
manual.html -- Reference manual
|
||||
odbc.tmpl -- ODBC loader template (.lua)
|
||||
performance.lua -- Performance test script
|
||||
postgres.tmpl -- PostgreSQL loader template (.lua)
|
||||
README -- This file
|
||||
test.lua -- Overall API test script
|
||||
|
||||
$Id: README,v 1.3 2003/05/05 10:06:34 tomas Exp $
|
||||
$Id: README,v 1.4 2003/10/24 11:03:51 tomas Exp $
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/usr/local/bin/lua
|
||||
|
||||
TOTAL_FIELDS = 40
|
||||
TOTAL_FIELDS = 400
|
||||
TOTAL_ROWS = 40
|
||||
|
||||
---------------------------------------------------------------------
|
||||
|
@ -1,5 +1,5 @@
|
||||
LIBRARY luasqlDRIVER.VERSION
|
||||
LIBRARY luasql_DRIVER.dll
|
||||
DESCRIPTION "LuaSQL driver for DRIVER"
|
||||
VERSION VERSION
|
||||
VERSION VERSION_NUMBER
|
||||
EXPORTS
|
||||
luasql_libopen_DRIVER
|
||||
|
Loading…
x
Reference in New Issue
Block a user