diff options
author | thing1 <thing1@seacrossedlovers.xyz> | 2025-02-18 22:00:20 +0000 |
---|---|---|
committer | thing1 <thing1@seacrossedlovers.xyz> | 2025-02-18 22:00:20 +0000 |
commit | ecfbc703dc930a20d56562451f4aa807175503e2 (patch) | |
tree | 7c1dd2742363625f59e4d9f7ba62a8d9594cd463 /Makefile |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 27 |
1 files changed, 27 insertions, 0 deletions
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 + |