aboutsummaryrefslogtreecommitdiffstats
path: root/lualdap/Makefile
diff options
context:
space:
mode:
authorTomas Guisasola <tomas@luaforge.net>2003-09-01 19:01:07 +0000
committerTomas Guisasola <tomas@luaforge.net>2003-09-01 19:01:07 +0000
commitc422c0d106a621e001cd6e6d7feeac1b73be8363 (patch)
treeb08a75692dfc2ab56254cb8c731c048273e033fb /lualdap/Makefile
parentAcrescimo de testes dos metodos modify e search. (diff)
downloadlualdap-c422c0d106a621e001cd6e6d7feeac1b73be8363.tar.xz
lualdap-c422c0d106a621e001cd6e6d7feeac1b73be8363.zip
Substituicao do arquivo lualdap.lua pelo loader.tmpl generico.
Atualizacao do Makefile para corresponder a substituicao acima.
Diffstat (limited to 'lualdap/Makefile')
-rwxr-xr-xlualdap/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/lualdap/Makefile b/lualdap/Makefile
index 413563a..21bbc82 100755
--- a/lualdap/Makefile
+++ b/lualdap/Makefile
@@ -2,14 +2,14 @@ WARN= -Wall -Wmissing-prototypes -Wmissing-declarations
INCS= -I/usr/local/include/lua5
LIBS_DIR=
LIBS= -llua.5.0 -llualib.5.0 -lm -lldap -ldl
-CFLAGS= $(MYCFLAGS) $(WARN) $(INCS) $(DEFS)
+CFLAGS= -g $(MYCFLAGS) $(WARN) $(INCS) $(DEFS)
VERSION= 1.0a
PKG= lualdap-$(VERSION)
TAR_FILE= $(PKG).tar.gz
ZIP_FILE= $(PKG).zip
SRCS= README Makefile \
- lualdap.c lualdap.lua \
+ lualdap.c loader.tmpl \
test.lua \
index.html manual.html lua.png
@@ -35,11 +35,13 @@ lib: $(LIB)
$(RANLIB) $@
so: $(SO)
- $(SO): $(OBJ)
+$(SO): $(OBJ)
+ sed -e "s/LIB_NAME/$(SO)/" loader.tmpl > lualdap.lua
gcc -o $@ -shared $(OBJ) $(LIBS_DIR) $(LIBS)
dylib: $(DYLIB)
$(DYLIB): $(OBJ)
+ sed -e "s/LIB_NAME/$(DYLIB)/" loader.tmpl > lualdap.lua
gcc -o $@ -dynamiclib $(OBJ) $(LIBS_DIR) $(LIBS)
clean: