glr2.cc: put glr_state_set and glr_stack_item in unnamed namespace
[bison.git] / examples / c++ / Makefile
blob4742fa95cd6441e6fd948cd2b9344b3f504aafd8
1 # This Makefile is designed to be simple and readable. It does not
2 # aim at portability. It requires GNU Make.
4 BISON = bison
5 CXX = g++
6 CXXFLAGS =
7 PROGS = simple variant variant-11
9 simple: CXXFLAGS = -std=c++14
10 variant-11: CXXFLAGS = -std=c++11
12 all: $(PROGS)
14 %.cc %.hh %.html %.gv: %.yy
15 $(BISON) $(BISONFLAGS) --html --graph -o $*.cc $<
17 %: %.cc
18 $(CXX) $(CXXFLAGS) -o$@ $<
20 clean:
21 rm -f $(PROGS:=.cc) $(PROGS)