From 22840a3551d6564ea271d4be6ef7b539d4eba409 Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Thu, 17 Jul 2025 17:04:08 +0200 Subject: Added embedding Lua --- c-embed-lua/Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 c-embed-lua/Makefile (limited to 'c-embed-lua/Makefile') diff --git a/c-embed-lua/Makefile b/c-embed-lua/Makefile new file mode 100644 index 0000000..c9c699d --- /dev/null +++ b/c-embed-lua/Makefile @@ -0,0 +1,14 @@ +all: lua hi.h main + +lua: + cd lua-5.4.8 && make + +hi.h: hi.lua + xxd -n hi -i hi.lua > hi.h + +main: main.c hi.h + clang -I./lua-5.4.8/src -Wall -Werror -Wpedantic -o main main.c -lm ./lua-5.4.8/src/liblua.a + +clean: + -rm main + cd lua-5.4.8 && make clean -- cgit v1.2.3