aboutsummaryrefslogtreecommitdiffstats
path: root/lualdap
diff options
context:
space:
mode:
authorTomas Guisasola <tomas@luaforge.net>2005-12-26 21:26:03 +0000
committerTomas Guisasola <tomas@luaforge.net>2005-12-26 21:26:03 +0000
commit3fe38dcf219c39fad3edee0be0c7902d104137c9 (patch)
tree9019677978269e3fc08e8c37c78d30cbc95c40c5 /lualdap
parentUpgrading to version 1.0.1. (diff)
downloadlualdap-3fe38dcf219c39fad3edee0be0c7902d104137c9.tar.xz
lualdap-3fe38dcf219c39fad3edee0be0c7902d104137c9.zip
Adding options for configuring directories and names for headers and libraries.
Diffstat (limited to 'lualdap')
-rwxr-xr-xlualdap/Makefile4
-rwxr-xr-xlualdap/config4
2 files changed, 5 insertions, 3 deletions
diff --git a/lualdap/Makefile b/lualdap/Makefile
index b2a2c4c..6b2b251 100755
--- a/lualdap/Makefile
+++ b/lualdap/Makefile
@@ -1,4 +1,4 @@
-# $Id: Makefile,v 1.27 2005-06-27 17:07:14 tomas Exp $
+# $Id: Makefile,v 1.28 2005-12-26 21:26:03 tomas Exp $
T= lualdap
V= 1.0
@@ -10,7 +10,7 @@ OBJS= src/lualdap.o $(COMPAT_DIR)/compat-5.1.o
src/$(LIBNAME): $(OBJS)
- export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) -lldap
+ export MACOSX_DEPLOYMENT_TARGET="10.3"; $(CC) $(CFLAGS) $(LIB_OPTION) -o src/$(LIBNAME) $(OBJS) $(OPENLDAP_LIB)
$(COMPAT_DIR)/compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
$(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
diff --git a/lualdap/config b/lualdap/config
index 5796c18..1aefa3a 100755
--- a/lualdap/config
+++ b/lualdap/config
@@ -5,6 +5,8 @@ LUA_LIBDIR= /usr/local/lib/lua/5.0
LUA_INC= /usr/local/include
# OpenLDAP includes directory
OPENLDAP_INC= /usr/local/include
+# OpenLDAP library (an optional directory can be specified with -L<dir>)
+OPENLDAP_LIB= -lldap
# OS dependent
LIB_OPTION= -shared #for Linux
@@ -19,4 +21,4 @@ INCS= -I$(LUA_INC) -I$(OPENLDAP_INC) -I$(COMPAT_DIR)
CFLAGS= $(WARN) $(INCS)
CC= gcc
-# $Id: config,v 1.3 2005-06-24 01:50:56 tomas Exp $
+# $Id: config,v 1.4 2005-12-26 21:26:03 tomas Exp $