2005-06-05 00:48:10 +00:00
|
|
|
V= 2.0.1
|
2005-06-06 20:11:52 +00:00
|
|
|
CONFIG= ./config
|
2004-11-08 15:55:23 +00:00
|
|
|
|
2005-06-06 20:11:52 +00:00
|
|
|
include $(CONFIG)
|
2003-04-07 13:41:29 +00:00
|
|
|
|
2005-04-09 15:21:02 +00:00
|
|
|
OBJS= $(COMPAT_DIR)/compat-5.1.o src/luasql.o src/ls_$T.o
|
2004-11-08 15:55:23 +00:00
|
|
|
|
2003-12-01 16:13:13 +00:00
|
|
|
|
2005-04-09 15:21:02 +00:00
|
|
|
SRCS= src/luasql.h src/luasql.c \
|
|
|
|
src/ls_postgres.c \
|
|
|
|
src/ls_odbc.c \
|
|
|
|
src/ls_oci8.c \
|
|
|
|
src/ls_mysql.c \
|
|
|
|
src/ls_sqlite.c
|
2003-04-07 13:41:29 +00:00
|
|
|
|
|
|
|
AR= ar rcu
|
|
|
|
RANLIB= ranlib
|
|
|
|
|
2004-11-08 15:55:23 +00:00
|
|
|
|
2005-04-09 15:21:02 +00:00
|
|
|
lib: src/$(LIBNAME)
|
2004-11-09 13:15:17 +00:00
|
|
|
|
2005-04-09 15:21:02 +00:00
|
|
|
src/$(LIBNAME): $(OBJS)
|
2005-06-06 22:24:36 +00:00
|
|
|
export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) -o $@ $(LIB_OPTION) $(OBJS) $(DRIVER_LIBS)
|
2004-10-15 12:28:07 +00:00
|
|
|
|
2005-04-09 15:21:02 +00:00
|
|
|
$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
|
2004-10-15 12:28:07 +00:00
|
|
|
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
|
2003-04-07 13:41:29 +00:00
|
|
|
|
2004-11-08 15:55:23 +00:00
|
|
|
install:
|
2005-01-19 14:56:25 +00:00
|
|
|
mkdir -p $(LUA_LIBDIR)/luasql
|
2005-04-09 15:21:02 +00:00
|
|
|
cp src/$(LIBNAME) $(LUA_LIBDIR)/luasql
|
2005-06-27 17:01:03 +00:00
|
|
|
cd $(LUA_LIBDIR)/luasql; ln -f -s $(LIBNAME) $T.so
|
2003-05-26 11:28:31 +00:00
|
|
|
|
2004-11-26 12:29:08 +00:00
|
|
|
jdbc_driver:
|
2005-04-25 17:09:11 +00:00
|
|
|
cd src/jdbc; make $@
|
2004-11-25 16:06:08 +00:00
|
|
|
|
2003-04-07 13:41:29 +00:00
|
|
|
clean:
|
2005-06-05 00:48:10 +00:00
|
|
|
rm -f src/$(LIBNAME) src/*.o $(COMPAT_DIR)/compat-5.1.o
|
2005-04-25 17:09:11 +00:00
|
|
|
|
2005-06-27 17:01:03 +00:00
|
|
|
# $Id: Makefile,v 1.50 2005/06/27 17:01:03 tomas Exp $
|