CXX=g++
CXXFLAGS=-g

all: test
	gdb test > gdb.log
	bp2=`grep -i Breakpoint gdb.log | grep test01a.h | grep "line 4"` || exit 1; \
	echo $$bp2 | grep 0x0:; \
	if [ $$? = 0 ]; then exit 1; else true; fi

test: test01a.o test01b.o test01c.o
	$(CXX) $(CXXFLAGS) -o $@ $^

tar:
	tar cfz bug.tar.gz *.cpp *.h Makefile .gdbinit
