diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
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 |