aboutsummaryrefslogtreecommitdiffstats
path: root/lualdap/Makefile
diff options
context:
space:
mode:
authorTomas Guisasola <tomas@luaforge.net>2004-10-15 15:28:09 +0000
committerTomas Guisasola <tomas@luaforge.net>2004-10-15 15:28:09 +0000
commit4464cd205813c369b5036b755e3505406a13399c (patch)
treee5d95be4e68c6178d909ad8376219f053ffd9004 /lualdap/Makefile
parentAtualizacao da documentacao sobre instalacao (proposta de pacotes de Lua 5.1) (diff)
downloadlualdap-4464cd205813c369b5036b755e3505406a13399c.tar.xz
lualdap-4464cd205813c369b5036b755e3505406a13399c.zip
Adaptacao para o uso dos arquivos compat-5.1.[c,h].
Diffstat (limited to 'lualdap/Makefile')
-rwxr-xr-xlualdap/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/lualdap/Makefile b/lualdap/Makefile
index c0abdf6..b105368 100755
--- a/lualdap/Makefile
+++ b/lualdap/Makefile
@@ -1,5 +1,6 @@
+COMPAT_DIR= ../compat
WARN= -Wall -Wmissing-prototypes -Wmissing-declarations -ansi
-INCS= -I/usr/local/include/lua5
+INCS= -I/usr/local/include/lua5 -I$(COMPAT_DIR)
LIBS_DIR=
LIBS= -llua -llualib -lm -lldap -ldl
CFLAGS= -g $(MYCFLAGS) $(WARN) $(INCS) $(DEFS)
@@ -17,7 +18,7 @@ SRCS= README Makefile \
AR= ar rcu
RANLIB= ranlib
-OBJ= lualdap.o
+OBJ= lualdap.o compat-5.1.o
LIB= liblualdap$(VERSION).a
SO= liblualdap$(VERSION).so
DYLIB= liblualdap$(VERSION).dylib
@@ -46,5 +47,8 @@ $(DYLIB): $(OBJ)
#gcc -o $@ -dynamiclib $(OBJ) $(LIBS_DIR) $(LIBS)
libtool -dynamic -compatibility_version $V -current_version $V -o $@ $(OBJ) $(LIBS_DIR) $(LIBS) -lcc_dynamic -lc
+compat-5.1.o: $(COMPAT_DIR)/compat-5.1.c
+ $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c
+
clean:
rm -f $(OBJ) $(LIB) $(SO) $(DYLIB) $(DLL) $(TAR_FILE) $(ZIP_FILE)