diff options
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 |
