]> git.lizzy.rs Git - metalua.git/blob - src/binlibs/Makefile
fixed the parsing of return statements: they wouldn't accept the semicolon in 'return;'
[metalua.git] / src / binlibs / Makefile
1 include ../config
2
3 all: libraries install
4 $(PLATFORM): all
5
6 SRC  = pluto.c rings.c bit.c
7
8 LIBS = pluto.$(LIBEXT) rings.$(LIBEXT) bit.$(LIBEXT)
9
10 ifeq ($(USE_READLINE), yes)
11 LIBS += editline.$(LIBEXT)
12 endif
13
14 libraries: $(LIBS)
15
16 install:   libraries
17         mkdir -p $(TARGET_LUA_CPATH)
18         cp $(LIBS) $(TARGET_LUA_CPATH)
19
20 clean:
21         -rm *.o *.$(LIBEXT)
22
23 ifeq ($(USE_READLINE), yes)
24 editline.$(LIBEXT): editline.$(OBJEXT)
25         $(MKLIB) -o $@ $+ $(LDFLAGS) -lhistory -lreadline
26 endif
27
28
29 pluto.$(LIBEXT): pluto/pluto.c pluto/pdep.c pluto/lzio.c
30         $(MKLIB) -o $@ $(LDFLAGS) -I ../$(LUA_VM_DIR) -I pluto $+
31
32 %.$(LIBEXT): %.$(OBJEXT)
33         $(MKLIB) -o $@ $+ $(LDFLAGS)
34
35 .PHONY: libraries install clean
36