aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: ee0b462c7b1053c15f795c10f81e90a0f3890402 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
target = ordinal

CC = cc
LEX = flex
CFLAGS = \
	-Wall -Wextra -Wpedantic -Werror \
	-O3 -march=native -mtune=native -pipe
LDLIBS = -lfl

all: ${target}
${target}: lex.yy.c
	${CC} ${CFLAGS} ${LDLIBS} -o $@ $<

lex.yy.c: main.l
	${LEX} $<

clean:
	rm -f ${target} lex.yy.c