shithub: mc

ref: 06910883726c34ebc812b86e813d51442157400e
dir: /mk/lexyacc.mk/

View raw version
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