Imported from ../lua-4.0.1.tar.gz.
[lua.git] / src / lib / Makefile
blob081b886721c8a67d4a1995dac6e6ce648261aa6f
1 # makefile for Lua standard library
3 LUA= ../..
5 include $(LUA)/config
7 # actually only used in liolib.c
8 EXTRA_DEFS= $(POPEN)
10 OBJS= lauxlib.o lbaselib.o ldblib.o liolib.o lmathlib.o lstrlib.o
11 SRCS= lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c lstrlib.c
13 T= $(LIB)/liblualib.a
15 all: $T
17 $T: $(OBJS)
18 $(AR) $@ $(OBJS)
19 $(RANLIB) $@
21 clean:
22 rm -f $(OBJS) $T
24 co:
25 co -q -f -M $(SRCS)
27 klean: clean
28 rm -f $(SRCS)