Imported from ../lua-3.2.tar.gz.
[lua.git] / src / luac / Makefile
blobe2950e6087ecddd79c19efacad469ddb002d18a9
1 # makefile for lua compiler
3 LUA= ../..
5 include $(LUA)/config
7 INCS= -I$(INC) $(EXTRA_INCS) -I..
8 OBJS= dump.o luac.o opcode.o opt.o print.o stubs.o test.o
9 SRCS= dump.c luac.c opcode.c opt.c print.c stubs.c test.c luac.h opcode.h
11 T= $(BIN)/luac
13 all: $T
15 $T: $(OBJS) $(LIB)/liblua.a
16 $(CC) -o $@ $(OBJS) -L$(LIB) -llua
18 $(LIB)/liblua.a:
19 cd ..; $(MAKE)
21 clean:
22 rm -f $(OBJS) $T
24 co:
25 co -q -f -M $(SRCS)
27 klean: clean
28 rm -f $(SRCS)