summaryrefslogtreecommitdiff
path: root/src/luac/Makefile
blob: 813393e4e0a730c451782aed1834baa436ce4d7c (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
# makefile for lua distribution (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

all: $T

$T: $(OBJS)
	$(CC) -o $@ $(OBJS) -L$(LIB) -llua

clean:
	rm -f $(OBJS) $T

co:
	co -f -M $(SRCS)

klean:	clean
	rm -f $(SRCS)