Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 75c4c52f13
Fetching contributors…

Cannot retrieve contributors at this time

45 lines (32 sloc) 0.901 kB
# change these to reflect your Lua installation
# Default installation prefix
PREFIX=/home/leop/local
# System's libraries directory (where binary libraries are installed)
LUA_LIBDIR= $(PREFIX)/lib/lua/5.1
# System's lua directory (where Lua libraries are installed)
LUA_DIR= $(PREFIX)/share/lua/5.1
LUAINC= $(PREFIX)/include
LUALIB= $(PREFIX)/lib
LUABIN= $(PREFIX)/bin
CFLAGS= $(INCS) $(WARN)
WARN= -Wall
INCS= -I$(LUAINC)
LIBS=-lsyck -L$(LUALIB)
MYNAME=syck
OBJS= $(MYNAME).o
T= $(MYNAME).so
all: $T test
install:
cp -f ./syck.so $(LUA_LIBDIR)
cp -f ./yaml.lua $(LUA_DIR)
uninstall:
rm -f $(LUA_DIR)/yaml.lua
rm -f $(LUA_LIBDIR)/syck.so
test: $t
$(LUABIN)/lua test.lua
@echo "built and tested successfully. run make install to install, or just move the libs manually"
$T: $(OBJS)
$(CC) -o $@ -shared $(OBJS) $(LIBS)
clean:
rm -f $(OBJS) $T core core.* a.out test.dump
ready:
Jump to Line
Something went wrong with that request. Please try again.