Imported from ../lua-1.1.tar.gz.
[lua.git] / src / Makefile
blob7e833d4f5431aba55305a929538996c23ce7edc9
1 # makefile for lua
3 LIB= $(LUA)/lib
4 INC= $(LUA)/include
6 CC= gcc
7 CFLAGS= -g -Wall -O2 -I$(INC) $(DEFS)
8 DEFS= -DMAXCODE=64000 -DMAXCONSTANT=1024 -DMAXSYMBOL=1024 -DMAXARRAY=1024
10 OBJS= hash.o inout.o lex.o opcode.o table.o y.tab.o
11 SLIB= $(LIB)/liblua.a
12 DLIB= $(LIB)/liblua.so.1.1
14 libs: $(SLIB) $(DLIB)
16 $(SLIB): $(OBJS)
17 ar ruvl $@ $(OBJS)
18 ranlib $(SLIB)
20 $(DLIB): $(OBJS)
21 ld -o $@ $(OBJS)
23 clean:
24 rm -f $(OBJS) $(SLIB) $(DLIB)