From 79134b4395c8ad9280c1264e80c3b4f4c39e1780 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 4 Oct 2023 22:40:52 +0200 Subject: Compile lexer with -f --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Makefile') 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 -- cgit v1.2.3