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

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

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