summaryrefslogtreecommitdiffhomepage
path: root/contrib/luacurses/src/Makefile
diff options
context:
space:
mode:
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
+
+