From ff0eee931d3918eedf1c125c58328e54b47a4994 Mon Sep 17 00:00:00 2001 From: thing1 Date: Sun, 30 Mar 2025 19:22:31 +0000 Subject: init --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3