aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-04 21:41:42 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-04 21:41:42 +0200
commit9f298a2098fa244ac763bc4d22ccf3fb7c9760bb (patch)
tree9fc48d68e2bc7f89a0172bc8bb3aa1479c036f1f /Makefile
Genesis commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile18
1 files changed, 18 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ee0b462
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,18 @@
+target = ordinal
+
+CC = cc
+LEX = flex
+CFLAGS = \
+ -Wall -Wextra -Wpedantic -Werror \
+ -O3 -march=native -mtune=native -pipe
+LDLIBS = -lfl
+
+all: ${target}
+${target}: lex.yy.c
+ ${CC} ${CFLAGS} ${LDLIBS} -o $@ $<
+
+lex.yy.c: main.l
+ ${LEX} $<
+
+clean:
+ rm -f ${target} lex.yy.c