1 # This Makefile is designed to be simple and readable. It does not
2 # aim at portability. It requires GNU Make.
7 PROGS
= simple variant variant-11
9 simple
: CXXFLAGS
= -std
=c
++14
10 variant-11
: CXXFLAGS
= -std
=c
++11
14 %.
cc %.hh
%.html
%.gv
: %.yy
15 $(BISON
) $(BISONFLAGS
) --html
--graph
-o
$*.
cc $<
18 $(CXX
) $(CXXFLAGS
) -o
$@
$<
21 rm -f
$(PROGS
:=.
cc) $(PROGS
)