diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 17 |
1 files changed, 17 insertions, 0 deletions
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 |