summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--lua-posixtz.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4370b38..b5405a3 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
LUALIBS := -llua
-TARGETS := posixtz posixtz.so
+TARGETS := posixtz core.so
all: $(TARGETS)
clean:
@@ -9,6 +9,6 @@ clean:
posixtz: main.c posixtz.c
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^
-posixtz.so: lua-posixtz.c posixtz.c
+core.so: lua-posixtz.c posixtz.c
$(CC) -fPIC $(CFLAGS) $(LDFLAGS) $(LUALIBS) -shared -o $@ $^
diff --git a/lua-posixtz.c b/lua-posixtz.c
index 0754f97..a641ac6 100644
--- a/lua-posixtz.c
+++ b/lua-posixtz.c
@@ -20,7 +20,7 @@ static const luaL_reg R[] =
};
-LUALIB_API int luaopen_posixtz(lua_State *L)
+LUALIB_API int luaopen_posixtz_core(lua_State *L)
{
luaL_register(L,MYNAME,R);
return 1;