2007-06-04 15:39:59 -04:00
|
|
|
$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)
|
2006-09-24 13:18:16 -04:00
|
|
|
LUAINC= $(LUA)/include
|
|
|
|
LUALIB= $(LUA)/lib
|
2007-06-04 15:39:59 -04:00
|
|
|
LUABIN= $(LUA)/bin
|
2006-01-25 18:32:13 -05:00
|
|
|
|
|
|
|
# no need to change anything below here
|
|
|
|
-CFLAGS= $(INCS) $(WARN) -O2 $G
|
2007-06-04 15:39:59 -04:00
|
|
|
+CFLAGS+= $(INCS) -fPIC -DPIC $G
|
|
|
|
WARN= -pedantic -Wall
|
|
|
|
INCS= -I$(LUAINC)
|
2006-01-25 18:32:13 -05:00
|
|
|
|
|
|
|
MYNAME= alarm
|
2007-06-04 15:39:59 -04:00
|
|
|
MYLIB= l$(MYNAME)
|
|
|
|
-T= $(MYLIB).so
|
|
|
|
+T= alarm.so
|
|
|
|
OBJS= $(MYLIB).o
|
|
|
|
TEST= test.lua
|
2006-01-25 18:32:13 -05:00
|
|
|
|
|
|
|
-all: test
|
2007-06-04 15:39:59 -04:00
|
|
|
+all: so
|
2006-01-25 18:32:13 -05:00
|
|
|
|
2007-06-04 15:39:59 -04:00
|
|
|
test: $T
|
|
|
|
$(LUABIN)/lua -l$(MYNAME) $(TEST)
|