summaryrefslogtreecommitdiff
path: root/src/luac/Makefile
blob: 195b5cc4daa9472187db904f951dd8590b93bb8e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# makefile for lua compiler

LUA= ../..

include $(LUA)/config

INCS= -I$(INC) $(EXTRA_INCS) -I..
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) $(LIB)/liblua.a
	$(CC) -o $@ $(OBJS) -L$(LIB) -llua

$(LIB)/liblua.a:
	cd ..; make

clean:
	rm -f $(OBJS) $T

co:
	co -q -f -M $(SRCS)

klean:	clean
	rm -f $(SRCS)