Skip to content
This repository
tree: 75c4c52f13
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 45 lines (32 sloc) 0.901 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
# 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:
Something went wrong with that request. Please try again.