diff options
Diffstat (limited to 'src/luac/Makefile')
| -rw-r--r-- | src/luac/Makefile | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/luac/Makefile b/src/luac/Makefile index 813393e4..195b5cc4 100644 --- a/src/luac/Makefile +++ b/src/luac/Makefile @@ -1,24 +1,28 @@ -# makefile for lua distribution (compiler) +# makefile for lua compiler LUA= ../.. include $(LUA)/config INCS= -I$(INC) $(EXTRA_INCS) -I.. -OBJS= dump.o luac.o print.o -SRCS= dump.c luac.c print.c luac.h print.h -T=$(BIN)/luac +OBJS= dump.o luac.o opcode.o opt.o print.o stubs.o +SRCS= dump.c luac.c opcode.c opt.c print.c stubs.c luac.h opcode.h + +T= $(BIN)/luac all: $T -$T: $(OBJS) +$T: $(OBJS) $(LIB)/liblua.a $(CC) -o $@ $(OBJS) -L$(LIB) -llua +$(LIB)/liblua.a: + cd ..; make + clean: rm -f $(OBJS) $T co: - co -f -M $(SRCS) + co -q -f -M $(SRCS) klean: clean rm -f $(SRCS) |
