--- src/Makefile.orig	2008-01-19 22:37:58.000000000 +0300
+++ src/Makefile	2008-08-22 19:08:36.560448176 +0400
@@ -35,8 +35,10 @@
 LUAC_T=	luac
 LUAC_O=	luac.o print.o
 
+LUA_SO=	liblua.so.5.1
+
 ALL_O= $(CORE_O) $(LIB_O) $(LUA_O) $(LUAC_O)
-ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T)
+ALL_T= $(LUA_A) $(LUA_T) $(LUAC_T) $(LUA_SO)
 ALL_A= $(LUA_A)
 
 default: $(PLAT)
@@ -57,6 +59,9 @@
 $(LUAC_T): $(LUAC_O) $(LUA_A)
 	$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
 
+$(LUA_SO): $(CORE_O) $(LIB_O)
+	$(CC) -o $@ -shared $(MYLDFLAGS) $(CORE_O) $(LIB_O)
+
 clean:
 	$(RM) $(ALL_T) $(ALL_O)
 
