shithub: mc

ref: abc7b8dce27323d49315f121a9ef33aff60e5b22
dir: /mk/lexyacc.mk/

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