From d43994ebc260ea0ad6cd82c929059a44f998a782 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Sun, 11 Jun 2017 22:50:09 +0100 Subject: Initial Commit --- Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..2f08bc7 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +P=ocml + +${P}: ${P}.tab.o lex.yy.o + gcc -o $@ $^ -lfl + +%.o: %.c ${P}.tab.h + gcc -c $^ + +${P}.tab.h: ${P}.y + bison -d ${P}.y + +lex.yy.c: ${P}.l + flex ${P}.l + +${P}.tab.c: ${P}.y + bison ${P}.y + +clean: + rm -f *.tab.* *.yy.* ${P} -- cgit v1.2.3