diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2025-03-30 19:22:31 +0000 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2025-03-30 19:22:31 +0000 |
commit | ff0eee931d3918eedf1c125c58328e54b47a4994 (patch) | |
tree | a61c94e89ea76ef68c55a9fe387be0a1b56e8e3e /Makefile |
init
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3bd8729 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CFLAGS=-ggdb + +all: lisp + +lisp: lex eval + cc lex.o parse.o lisp.c eval.o types.o -o lisp ${CFLAGS} + +eval: eval.c + cc eval.c -c -o eval.o ${CFLAGS} + +lex: yacc lisp.lex + lex lisp.lex + cc lex.yy.c -c -o lex.o ${CFLAGS} + +yacc: types lisp.yacc + yacc -d lisp.yacc + cc y.tab.c -c -o parse.o ${CFLAGS} + +types: types.c + cc types.c -c -o types.o ${CFLAGS} + +clean: + rm -rf lex.yy.c y.tab.* lisp *.o |