summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQuentin Carbonneaux2024-09-02 18:19:42 +0200
committerQuentin Carbonneaux2024-09-02 18:24:56 +0200
commit2456f6593694e83d036a79bebcc0c0c5922a9987 (patch)
tree3f8cf120dcb20982cd50847b201f3260717ec1d1
parent3bea0b61a5f24a00927bb26f9fa569d95c609fcf (diff)
add a MakefileHEADmaster
-rw-r--r--Makefile8
-rw-r--r--yacc.c3
2 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..0d9bd40
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,8 @@
+CFLAGS = -O2 -Wall -pedantic -std=c89
+
+all: yacc
+
+clean:
+ rm -f yacc
+
+.PHONY: all clean
diff --git a/yacc.c b/yacc.c
index 6de46fb..c75016e 100644
--- a/yacc.c
+++ b/yacc.c
@@ -1,5 +1,4 @@
-/*% clang --pedantic -std=c89 -g -Wall -Wextra % -o #
- * miniyacc - LALR(1) grammars for C
+/* miniyacc - LALR(1) grammars for C
* See LICENSE for copyright and license details.
*/
#include <assert.h>