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

%.o: %.y
	yacc -dt -o$*.c $<
	$(CC) -c $(NECFLAGS) $*.c

%.o: %.l
	flex -o$*.c $<
	$(CC) -c $(NECFLAGS) $*.c