summaryrefslogtreecommitdiffhomepage
path: root/contrib/luacurses/src/Makefile
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-31 11:14:47 +0000
committerSteven Barth <steven@midlink.org>2008-08-31 11:14:47 +0000
commit36c76090638e80d1cb9ad2dd060aae65976f24c8 (patch)
treeeacc03904f5b6d649e71975dbfacd836fbb149ed /contrib/luacurses/src/Makefile
parentf28422324d9f8aa6ac0af58dca431fa466e8b183 (diff)
Add luacurses to contrib
Diffstat (limited to 'contrib/luacurses/src/Makefile')
-rw-r--r--contrib/luacurses/src/Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/contrib/luacurses/src/Makefile b/contrib/luacurses/src/Makefile
new file mode 100644
index 0000000000..1dd108f497
--- /dev/null
+++ b/contrib/luacurses/src/Makefile
@@ -0,0 +1,15 @@
+
+SRC=src/curses.c src/luacurses.c
+INCLUDE=/usr/include/lua5.1
+CFLAGS=-shared -ansi -Wall -O2 -I$(INCLUDE) -fpic
+
+all: lib/curses.so
+
+lib/curses.so: $(SRC)
+ if ! [ -d lib ]; then mkdir lib; fi
+ gcc $(CFLAGS) -o lib/curses.so $(SRC)
+
+clean:
+ rm -Rf lib
+
+