summaryrefslogtreecommitdiff
path: root/src/lua/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/lua/Makefile')
-rw-r--r--src/lua/Makefile9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lua/Makefile b/src/lua/Makefile
index 5b47161f..aa52832f 100644
--- a/src/lua/Makefile
+++ b/src/lua/Makefile
@@ -4,17 +4,16 @@ LUA= ../..
include $(LUA)/config
-EXTRA_DEFS= $(POSIX)
-
+EXTRA_DEFS= $(USERCONF)
OBJS= lua.o
SRCS= lua.c
T= $(BIN)/lua
-all: $T
+all: $T
-$T: $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
- $(CC) -o $@ $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS)
+$T: $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
+ $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB)
$(LIB)/liblua.a:
cd ..; $(MAKE)