From 3fe38dcf219c39fad3edee0be0c7902d104137c9 Mon Sep 17 00:00:00 2001 From: Tomas Guisasola Date: Mon, 26 Dec 2005 21:26:03 +0000 Subject: Adding options for configuring directories and names for headers and libraries. --- lualdap/Makefile | 4 ++-- lualdap/config | 4 +++- 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) +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 $ -- cgit v1.2.3-59-g8ed1b