From ecfbc703dc930a20d56562451f4aa807175503e2 Mon Sep 17 00:00:00 2001 From: thing1 Date: Tue, 18 Feb 2025 22:00:20 +0000 Subject: init commit --- Makefile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..ea84791 --- /dev/null +++ b/Makefile @@ -0,0 +1,27 @@ +e: lex.yy.c y.tab.c qbe.o + cc lex.yy.c y.tab.c qbe.o -o eqbe + +lib.o: lib.c + cc lib.c -c -o lib.o + +qbe.o: qbe.c + cc qbe.c -c -o qbe.o + +lex.yy.c: y.tab.c e.l + lex e.l + +y.tab.c: e.y + yacc -d e.y + +clean: + rm -rf lex.yy.c y.tab.c y.tab.h eqbe *.o + +install: e lib.o + chmod +x ./e + cp e eqbe /usr/local/bin + cp lib.o /usr/local/share/ + +uninstall: + rm -rf /usr/local/bin/{e,eqbe} + rm -rf /usr/local/share/lib.o + -- cgit v1.2.3