summaryrefslogtreecommitdiff
path: root/mk/lexyacc.mk
blob: ebd7b19c125fe9b922422fef457e26561dc31da4 (plain)
1
2
3
4
5
6
7
NECFLAGS = $(subst -Werror,,$(subst -Wall,,$(CFLAGS)))

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

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