shithub: mc

ref: 2bad0c45ccc1489cbba946ee04787e9f9a48eff8
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