diff options
| author | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-07-17 17:04:08 +0200 |
|---|---|---|
| committer | Mitja Felicijan <mitja.felicijan@gmail.com> | 2025-07-17 17:04:08 +0200 |
| commit | 22840a3551d6564ea271d4be6ef7b539d4eba409 (patch) | |
| tree | afc8b697bd5ea5aecd3617233a547db10a09c92e /c-embed-lua/Makefile | |
| parent | fccba39aa0c0060e7e17c4075963bf8a428536b1 (diff) | |
| download | probe-22840a3551d6564ea271d4be6ef7b539d4eba409.tar.gz | |
Added embedding Lua
Diffstat (limited to 'c-embed-lua/Makefile')
| -rw-r--r-- | c-embed-lua/Makefile | 14 |
1 files changed, 14 insertions, 0 deletions
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 |
