summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorthing1 <thing1@seacrossedlovers.xyz>2025-02-18 22:00:20 +0000
committerthing1 <thing1@seacrossedlovers.xyz>2025-02-18 22:00:20 +0000
commitecfbc703dc930a20d56562451f4aa807175503e2 (patch)
tree7c1dd2742363625f59e4d9f7ba62a8d9594cd463 /Makefile
init commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile27
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
+