blob: cf372f88094166d97789926b018af6d1f59ef64f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
LUA ?= lua5.1
LUA_PC ?= lua5.1
LUA_LIBS ?= $(shell pkg-config $(LUA_PC) --libs)
LUA_CFLAGS = $(shell pkg-config $(LUA_PC) --cflags)
CFLAGS ?= -O2 -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 $(LUA_LIBS) -o $@
$(LUA) test/lua_uuid_test.lua
install: lua_uuid.so
cp lua_uuid.so $(INST_LIBDIR)
clean:
rm -f lua_uuid.so lua_uuid.o *.rock
|