diff options
Diffstat (limited to 'main/lua-bitlib/Makefile')
-rw-r--r-- | main/lua-bitlib/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/main/lua-bitlib/Makefile b/main/lua-bitlib/Makefile new file mode 100644 index 0000000000..8450f9f482 --- /dev/null +++ b/main/lua-bitlib/Makefile @@ -0,0 +1,11 @@ + + +LUAVER = 5.1 + +LUAPC := lua$(LUAVER) +LUA_CFLAGS := $(shell pkg-config --cflags $(LUAPC)) + +$(LUAVER)/bit32.so: lbitlib.c + mkdir -p $(LUAVER) + $(CC) -I c-api $(CFLAGS) $(LUA_CFLAGS) -shared -fPIC $(LDFLAGS) -o $@ $< + |