dwww Home | Show directory contents | Find package

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

BASE = rpcalc
BISON = bison

all: $(BASE)

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

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

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

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

Generated by dwww version 1.15 on Fri May 24 09:07:18 CEST 2024.