summaryrefslogtreecommitdiff
path: root/mk/lexyacc.mk
blob: b8a8d6cad02e3d6bb04bbaa5002db33ca8f3f6ef (plain)
1
2
3
4
5
6
7
8
9
.SUFFIXES:

NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))

%.h %.c: %.y
	yacc -d -o$*.c $<

%.c: %.l
	flex -o$*.c $<