summaryrefslogtreecommitdiffstats
path: root/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.in')
-rw-r--r--Makefile.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile.in b/Makefile.in
index bf4d53d..e374abe 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -43,7 +43,7 @@ endif
all: $(programs) lem.pc
libev.o: CFLAGS += -w
-lua/amalg.o: CFLAGS += -DLUA_USE_LINUX -DLUA_ROOT='"$(prefix)/"'
+lua.o: lua/luaconf.h
%.o: %.c
$E ' CC $@'
@@ -57,6 +57,13 @@ lem: $(objects)
$E ' CCLD $@'
$Q$(CC) $(CFLAGS) -fPIC -nostartfiles $(SHARED) $^ -o $@ $(LDFLAGS)
+lua/luaconf.h: lua/luaconf.h.in
+ $E ' SED > $@'
+ $Q$(SED) \
+ -e 's|@path@|$(lua_path)|' \
+ -e 's|@cpath@|$(lua_cpath)|' \
+ $< > $@
+
%.pc: %.pc.in
$E ' SED > $@'
$Q$(SED) \
@@ -102,4 +109,4 @@ lem-repl-install: lem-repl | $(bindir)
install: lem.pc-install $(headers:%=%-install) $(programs:%=%-install) $(scripts:%=%-install)
clean:
- rm -f $(programs) lem.pc *.o lua/*.o
+ rm -f lem lua/luaconf.h lem.pc *.o *.so