Skip to content

Commit 0edc203

Browse files
committed
Windows special casing
1 parent 45de380 commit 0edc203

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Makefile

+6-1
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,15 @@ debug : CFLAGS+=-g -fsanitize=address -Wall -Wno-unused-function
1515
debug : LDLIBS+=-lasan
1616
debug : all
1717

18+
flex := flex
19+
ifeq ($(shell uname), Windows)
20+
flex := win_flex
21+
endif
22+
1823
# Rule to automatically run flex to create .c files from .lex.
1924
.SUFFIXES: .lex
2025
.lex.c:
21-
flex -o $@ $<
26+
$(flex) -o $@ $<
2227

2328
# Utility targets are "PHONY" so they'll run even if a file exists
2429
# with the same name.

0 commit comments

Comments
 (0)