From b1696f33dd7ae2b621ad8d04f1547df57731d6d0 Mon Sep 17 00:00:00 2001 From: thefosk Date: Fri, 6 Nov 2015 21:22:07 -0800 Subject: 0.1-1 version --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0b872e0 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +LUA ?= lua5.1 +LUA_PC ?= lua5.1 +LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags) + +CFLAGS ?= -O3 -Wall -Werror + +all: lua_uuid.so + +%.o: %.c + $(CC) -c $(CFLAGS) -fPIC $(LUA_CFLAGS) -o $@ $< + +lua_uuid.so: lua_uuid.o test/lua_uuid_test.lua + $(CC) -shared lua_uuid.o -o $@ + $(LUA) test/lua_uuid_test.lua + +clean: + rm -f lua_uuid.so lua_uuid.o *.rock -- cgit v1.2.3-54-g00ecf