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-20 20:26:17 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-11-20 20:26:17 -0800
commit6bdc3d17a7d0abfeeaa8708472fbbbcf83c847f1 (patch)
tree207f2e65ca4e1d8ee6ed4648a7fb66fa8c222317 /src/Makefile
parent38b21ef79bc16102d4d70dc81aba4708644bfcc4 (diff)
downloadteliva-6bdc3d17a7d0abfeeaa8708472fbbbcf83c847f1.tar.gz
inline luasocket
Just builds for now, isn't available yet to Lua code.
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/Makefile b/src/Makefile
index 2b970bd..c17467a 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -28,7 +28,8 @@ 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 lcurses/curses.o
+	loslib.o ltablib.o lstrlib.o loadlib.o linit.o \
+	lcurses/curses.o luasocket/socket.a
 
 LUA_T=	teliva
 LUA_O=	lua.o
@@ -58,7 +59,11 @@ $(LUA_T): $(LUA_O) $(LUA_A)
 $(LUAC_T): $(LUAC_O) $(LUA_A)
 	$(CC) -o $@ $(MYLDFLAGS) $(LUAC_O) $(LUA_A) $(LIBS)
 
+luasocket/socket.a:
+	make -C luasocket linux
+
 clean:
+	make -C luasocket clean
 	$(RM) $(ALL_T) $(ALL_O)
 
 depend: