diff options
author | Thibault Charbonnier <thibaultcha@me.com> | 2015-11-07 01:53:33 -0800 |
---|---|---|
committer | Thibault Charbonnier <thibaultcha@me.com> | 2015-11-07 02:02:03 -0800 |
commit | 03617b9a8cede011d5dbd7009bf7dab00ba67806 (patch) | |
tree | f2fbc2aab8f30bffdf8e2c3b6012de443e3d0274 /Makefile | |
parent | b1696f33dd7ae2b621ad8d04f1547df57731d6d0 (diff) | |
download | lua_uuid-03617b9a8cede011d5dbd7009bf7dab00ba67806.tar.gz lua_uuid-03617b9a8cede011d5dbd7009bf7dab00ba67806.tar.bz2 lua_uuid-03617b9a8cede011d5dbd7009bf7dab00ba67806.zip |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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: |