AM_CPPFLAGS  =  -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wcast-align
AM_CPPFLAGS +=  -Wwrite-strings -Wmissing-declarations -Wno-long-long -Werror
AM_CPPFLAGS +=  -Wunused-variable -std=c++14 -D_XOPEN_SOURCE -O0 -g -I.
AM_CPPFLAGS +=  -fno-elide-constructors -Weffc++

lib_LTLIBRARIES :=	libods.la
libods_la_SOURCES :=	simplist.cc
libods_la_CPPFLAGS :=	$(AM_CPPFLAGS)

bin_PROGRAMS :=		ch01ex01 ch01ex03 ch01ex04 ch01ex05 ch01ex06
ch01ex01_SOURCES :=	ch01ex01.cc
ch01ex03_SOURCES :=	ch01ex03.cc
ch01ex04_SOURCES :=	ch01ex04.cc
ch01ex05_SOURCES :=	ch01ex05.cc
ch01ex06_SOURCES :=	ch01ex06.cc
ch01ex06_LDADD :=	.libs/libods.a