$OpenBSD: patch-Makefile,v 1.3 2006/09/25 02:39:06 pedro Exp $
--- Makefile.orig	Fri Jun  2 07:53:38 2006
+++ Makefile	Sun Sep 24 18:43:50 2006
@@ -5,13 +5,13 @@
 # == CHANGE THE SETTINGS BELOW TO SUIT YOUR ENVIRONMENT =======================
 
 # Your platform. See PLATS for possible values.
-PLAT= none
+PLAT= bsd
 
 # Where to install. The installation starts in the src directory, so take care
 # if INSTALL_TOP is not an absolute path. (Man pages are installed from the
 # doc directory.)
 #
-INSTALL_TOP= /usr/local
+INSTALL_TOP= $(PREFIX)
 INSTALL_BIN= $(INSTALL_TOP)/bin
 INSTALL_INC= $(INSTALL_TOP)/include
 INSTALL_LIB= $(INSTALL_TOP)/lib
@@ -42,7 +42,7 @@ PLATS= aix ansi bsd generic linux macosx
 # What to install.
 TO_BIN= lua luac
 TO_INC= lua.h luaconf.h lualib.h lauxlib.h ../etc/lua.hpp
-TO_LIB= liblua.a
+TO_LIB= liblua.a liblua.so.5.1
 TO_MAN= lua.1 luac.1
 
 # Lua version and release.
