????

Your IP : 18.117.229.144


Current Path : C:/opt/msys64/usr/share/doc/bison/examples/c/mfcalc/
Upload File :
Current File : C:/opt/msys64/usr/share/doc/bison/examples/c/mfcalc/Makefile

# This Makefile is designed to be simple and readable.  It does not
# aim at portability.  It requires GNU Make.

BASE = mfcalc
BISON = bison

all: $(BASE)

%.c %.html %.gv: %.y
	$(BISON) $(BISONFLAGS) --html --graph -o $*.c $<

%: %.c
	$(CC) $(CFLAGS) -o $@ $<

run: $(BASE)
	@echo "Type arithmetic expressions.  Quit with ctrl-d."
	./$<

clean:
	rm -f $(BASE) $(BASE).c $(BASE).html $(BASE).xml $(BASE).gv $(BASE).output