blob: a11b1e60b0d7ceebbb0757a15dd7e30ed5433f42 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
.POSIX:
CC = cc
CFLAGS = -Wall -Wextra -Wpedantic -Werror \
-march=native -mtune=native -O3 -flto \
-pipe
ALL = ${CC} ${CFLAGS} ${CPPFLAGS} ${LDLIBS} ${LDFLAGS}
all:
flex -f -DYY_NO_INPUT --nounput puzzles.l
${ALL} -lfl -DPART1 -o puzzle-1 lex.yy.c
${ALL} -lfl -DPART2 -o puzzle-2 lex.yy.c
rm lex.yy.c
clean:
rm -f puzzle-[12]
|