From 9f298a2098fa244ac763bc4d22ccf3fb7c9760bb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Oct 2023 21:41:42 +0200 Subject: Genesis commit --- Makefile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Makefile (limited to 'Makefile') 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 -- cgit v1.2.3