openbsd-ports/devel/luaalarm/patches/patch-Makefile
2007-06-04 19:39:59 +00:00

32 lines
676 B
Plaintext

$OpenBSD: patch-Makefile,v 1.3 2007/06/04 19:39:59 pedro Exp $
--- Makefile.orig Wed Oct 11 16:13:03 2006
+++ Makefile Mon Jun 4 21:01:57 2007
@@ -1,23 +1,23 @@
# makefile for alarm library for Lua
# change these to reflect your Lua installation
-LUA= /tmp/lhf/lua-5.0
+LUA= $(LOCALBASE)
LUAINC= $(LUA)/include
LUALIB= $(LUA)/lib
LUABIN= $(LUA)/bin
# no need to change anything below here
-CFLAGS= $(INCS) $(WARN) -O2 $G
+CFLAGS+= $(INCS) -fPIC -DPIC $G
WARN= -pedantic -Wall
INCS= -I$(LUAINC)
MYNAME= alarm
MYLIB= l$(MYNAME)
-T= $(MYLIB).so
+T= alarm.so
OBJS= $(MYLIB).o
TEST= test.lua
-all: test
+all: so
test: $T
$(LUABIN)/lua -l$(MYNAME) $(TEST)