shithub: mc

ref: 8865ed9510427f9af64eeeaa18f8209c91aeb456
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