Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (19 sloc) 0.559 kb
CC = gcc
SRCNAME = lketama.c
OBJNAME = lketama.o
LIBNAME = ketama.so
OMIT_FRAME_POINTER = -fomit-frame-pointer
CFLAGS = -I/usr/local/include/ -fPIC -O3 -Wall
LIBS = lketama
LFLAGS = -shared $(OMIT_FRAME_POINTER)
INSTALL_PATH = usr/local/lib/lua/5.1
all: $(LIBNAME)
$(OBJNAME): $(SRCNAME)
$(CC) -o $(OBJNAME) -c $(SRCNAME) $(CFLAGS)
$(LIBNAME): $(OBJNAME)
$(CC) -o $(LIBNAME) -shared $(OBJNAME) $(LFLAGS) -$(LIBS)
install: $(LIBNAME)
install -D -s $(LIBNAME) $(DESTDIR)/$(INSTALL_PATH)/$(LIBNAME)
clean:
rm -f $(LIBNAME) $(OBJNAME)
.PHONY: clean
Jump to Line
Something went wrong with that request. Please try again.