Replace round() with floor(), I don't know if it's the right thing to do but at least...
[metze/wireshark/wip.git] / plugins / lua / lua-5.0.2 / src / luac / Makefile
1 # makefile for Lua compiler
2
3 LUA= ../..
4
5 include $(LUA)/config
6
7 INCS= -I$(INC) -I.. $(EXTRA_INCS)
8 OBJS= luac.o print.o lopcodes.o
9 SRCS= luac.c print.c
10
11 T= $(BIN)/luac
12
13 all:    $T
14
15 $T:     $(OBJS) $(LIB)/liblua.a $(LIB)/liblualib.a
16         $(CC) -o $@ $(MYLDFLAGS) $(OBJS) -L$(LIB) -llua -llualib $(EXTRA_LIBS) $(DLLIB)
17
18 # print.c needs opcode names from lopcodes.c
19 lopcodes.o:     ../lopcodes.c ../lopcodes.h
20         $(CC) -o $@ -c $(CFLAGS) -DLUA_OPNAMES ../lopcodes.c
21
22 $(LIB)/liblua.a:
23         cd ..; $(MAKE)
24
25 $(LIB)/liblualib.a:
26         cd ../lib; $(MAKE)
27
28 clean:
29         rm -f $(OBJS) $T
30
31 co:
32         co -q -f -M $(SRCS)
33
34 klean:  clean
35         rm -f $(SRCS)