about summary refs log tree commit diff stats
path: root/src/Makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-11-19 19:11:03 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-19 19:11:03 -0800
commitb43747ecef13a7cbe5eb5842d03d803165a473b3 (patch)
treedbecfd6324961dd4c1debfc3fb1128acf5794a55 /src/Makefile
parent9837d327f5617852167d82ed589c9342539072ac (diff)
downloadteliva-b43747ecef13a7cbe5eb5842d03d803165a473b3.tar.gz
inline lcurses maximally rather than minimally
Until now we had just the bare minimum bindings needed for the demos
built so far. Now we have all of lcurses building in place with minimal
changes.

The changes in this commit can run hanoi.lua when inlined into Lua 5.1,
but don't work with Teliva.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 1574be6..2b970bd 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,7 +28,7 @@ CORE_O=	lapi.o lcode.o ldebug.o ldo.o ldump.o lfunc.o lgc.o llex.o lmem.o \
 	lundump.o lvm.o lzio.o \
 	kilo.o
 LIB_O=	lauxlib.o lbaselib.o lcurseslib.o ldblib.o liolib.o lmathlib.o \
-	loslib.o ltablib.o lstrlib.o loadlib.o linit.o
+	loslib.o ltablib.o lstrlib.o loadlib.o linit.o lcurses/curses.o
 
 LUA_T=	teliva
 LUA_O=	lua.o
@@ -180,4 +180,8 @@ lzio.o: lzio.c lua.h luaconf.h llimits.h lmem.h lstate.h lobject.h ltm.h \
 print.o: print.c ldebug.h lstate.h lua.h luaconf.h lobject.h llimits.h \
   ltm.h lzio.h lmem.h lopcodes.h lundump.h
 
+lcurses/curses.o: lcurses/curses.c lcurses/window.c lcurses/chstr.c \
+  lcurses/_helpers.c lcurses/compat-5.2.c lcurses/compat-5.2.h \
+  lcurses/strlcpy.c
+
 # (end of Makefile)