aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMarco Palladino <marco@mashape.com>2015-11-09 10:41:29 -0800
committerMarco Palladino <marco@mashape.com>2015-11-09 10:41:29 -0800
commitc451d2262211af9331de5997a24d8ec4bacbef1e (patch)
tree671174dcc5898f12e798af456749a7ae259a94c1 /Makefile
parentdc4c9f1d2b51a72cbd66ddeff1a2880d6b99d57c (diff)
parent03617b9a8cede011d5dbd7009bf7dab00ba67806 (diff)
downloadlua_uuid-c451d2262211af9331de5997a24d8ec4bacbef1e.tar.gz
lua_uuid-c451d2262211af9331de5997a24d8ec4bacbef1e.tar.bz2
lua_uuid-c451d2262211af9331de5997a24d8ec4bacbef1e.zip
Merge pull request #1 from Mashape/feat/direct-function
feat: made the module return a function
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
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: