aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2023-10-04 22:40:52 +0200
committerThomas Voss <mail@thomasvoss.com> 2023-10-04 22:40:52 +0200
commit79134b4395c8ad9280c1264e80c3b4f4c39e1780 (patch)
treea1ba0d59676271199dab93966f6e1aebf3ef816e
parent14349a88dd90fd7643b57bca83d8027d1a0224cb (diff)
Compile lexer with -f
-rw-r--r--Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3b60d78..b56c124 100644
--- a/Makefile
+++ b/Makefile
@@ -5,6 +5,7 @@ LEX = flex
CFLAGS = \
-Wall -Wextra -Wpedantic -Werror \
-O3 -march=native -mtune=native -pipe
+LFLAGS = -f
LDLIBS = -lfl
PREFIX = /usr/local
@@ -15,7 +16,7 @@ ${target}: lex.yy.c
${CC} ${CFLAGS} ${LDLIBS} -o $@ $<
lex.yy.c: main.l
- ${LEX} $<
+ ${LEX} ${LFLAGS} $<
install:
mkdir -p ${DPREFIX}/bin ${DPREFIX}/share/man/man1