We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 45de380 commit 0edc203Copy full SHA for 0edc203
Makefile
@@ -15,10 +15,15 @@ debug : CFLAGS+=-g -fsanitize=address -Wall -Wno-unused-function
15
debug : LDLIBS+=-lasan
16
debug : all
17
18
+flex := flex
19
+ifeq ($(shell uname), Windows)
20
+ flex := win_flex
21
+endif
22
+
23
# Rule to automatically run flex to create .c files from .lex.
24
.SUFFIXES: .lex
25
.lex.c:
- flex -o $@ $<
26
+ $(flex) -o $@ $<
27
28
# Utility targets are "PHONY" so they'll run even if a file exists
29
# with the same name.
0 commit comments