2005-06-05 00:48:10 +00:00
|
|
|
# Driver (leave uncommented ONLY the line with the name of the driver)
|
|
|
|
#T= mysql
|
|
|
|
#T= oci8
|
|
|
|
#T= odbc
|
|
|
|
T= postgres
|
|
|
|
#T= sqlite
|
|
|
|
|
|
|
|
# Installation directories
|
|
|
|
# System's libraries directory (where binary libraries are installed)
|
|
|
|
LUA_LIBDIR= /usr/local/lib/lua/5.0
|
|
|
|
# System's lua directory (where Lua libraries are installed)
|
|
|
|
LUA_DIR= /usr/local/share/lua/5.0
|
|
|
|
# Lua includes directory
|
|
|
|
LUA_INC= /usr/local/include/lua5
|
|
|
|
|
|
|
|
# OS dependent
|
|
|
|
LIB_OPTION= -shared #for Linux
|
|
|
|
#LIB_OPTION= -bundle -undefined dynamic_lookup #for MacOS X
|
|
|
|
|
|
|
|
LIBNAME= lib$T-$V.so
|
|
|
|
COMPAT_DIR= ../compat/src
|
|
|
|
|
|
|
|
# Compilation parameters
|
|
|
|
# Driver specific
|
|
|
|
######## MySQL
|
|
|
|
#DRIVER_LIBS= -L/usr/local/mysql/lib -lmysqlclient -lz
|
|
|
|
#DRIVER_INCS= -I/usr/local/mysql/include
|
|
|
|
######## Oracle OCI8
|
|
|
|
#DRIVER_LIBS= -L/home/oracle/OraHome1/lib -lz -lclntsh
|
|
|
|
#DRIVER_INCS= -I/home/oracle/OraHome1/rdbms/demo -I/home/oracle/OraHome1/rdbms/public
|
|
|
|
######## PostgreSQL
|
|
|
|
DRIVER_LIBS= -L/usr/local/pgsql/lib -lpq
|
|
|
|
DRIVER_INCS= -I/usr/local/pgsql/include
|
|
|
|
######## SQLite
|
|
|
|
#DRIVER_LIBS= -lsqlite
|
|
|
|
#DRIVER_INCS=
|
|
|
|
|
|
|
|
WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi
|
|
|
|
INCS= -I$(LUA_INC)
|
|
|
|
CFLAGS= -O2 $(WARN) -I$(COMPAT_DIR) $(DRIVER_INCS) $(INCS) $(DEFS)
|
|
|
|
CC= gcc
|
|
|
|
|
2005-06-10 17:38:40 +00:00
|
|
|
# $Id: config,v 1.2 2005/06/10 17:38:40 tomas Exp $
|