diff options
Diffstat (limited to 'src/lua/Makefile')
| -rw-r--r-- | src/lua/Makefile | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lua/Makefile b/src/lua/Makefile new file mode 100644 index 00000000..1ec83706 --- /dev/null +++ b/src/lua/Makefile @@ -0,0 +1,32 @@ +# makefile for lua interpreter + +LUA= ../.. + +include $(LUA)/config + +EXTRA_DEFS= $(POSIX) + +OBJS= lua.o +SRCS= lua.c + +T= $(BIN)/lua + +all: $T + +$T: $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a + $(CC) -o $@ $(OBJS) -L$(LIB) -llua -llualib -lm + +$(LIB)/liblua.a: + cd ..; make + +$(LIB)/liblualib.a: + cd ../lib; make + +clean: + rm -f $(OBJS) $T + +co: + co -q -f -M $(SRCS) + +klean: clean + rm -f $(SRCS) |
