From 03617b9a8cede011d5dbd7009bf7dab00ba67806 Mon Sep 17 00:00:00 2001 From: Thibault Charbonnier Date: Sat, 7 Nov 2015 01:53:33 -0800 Subject: feat: made the module return a function - also add lua lib path to the .so creation to ensure compilation (generally lua header files are not in the standrard compiler's search paths) - remove boilerplate - bare minimum of tests additions --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 0b872e0..cb124b3 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ LUA ?= lua5.1 LUA_PC ?= lua5.1 +LUA_LIBS ?= $(shell pkg-config $(LUA_PC) --libs) LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags) CFLAGS ?= -O3 -Wall -Werror @@ -10,7 +11,7 @@ all: lua_uuid.so $(CC) -c $(CFLAGS) -fPIC $(LUA_CFLAGS) -o $@ $< lua_uuid.so: lua_uuid.o test/lua_uuid_test.lua - $(CC) -shared lua_uuid.o -o $@ + $(CC) -shared lua_uuid.o $(LUA_LIBS) -o $@ $(LUA) test/lua_uuid_test.lua clean: -- cgit v1.2.3-70-g09d2