# Makefile

TARGETS=\
	10-init-list \
	11-auto-vartype \
	12-init-list-ctor \
	13-init-list-ctor-double \
	14-init-list-function \
	15-init-list-template \
	16-not-a-cast \
	17-init-list-aux \
	18-init-c \
	19-init-precedence \
	19b-initlist-funcargs \
	20-leaking \
	22-teuer \
	23-autoptr \
	25-fract-normal \
	26-fract-rvalrefs \
	27-matrix \
	28-uptr \
	29-rvalues-final \
	40-functor-local \
	41-functor-anonym \
	42-decltype \
	43-alt-func-syntax \
	50-constexpr \
	60-vartempl-check \
	61-vartempl-tuple \
	62-vartempl-pure \
	75-ctors \
	81-unicode \
	84-chrono \
	85-ratio \
	86-random \
	87-threading \
		01-basic-check

# not yet supported in gcc:
#	80-regex \     <<- link error
#	76-lift \
#	88-async \
#

# is supposed to fail:
#	21-faulting
# this would segfault:
#	78-delegthrow

FAILS:=\
	51-constexpr2 \
	f52-constexpr \
	f64-talias \
	f79-deleg \
	f76-lift \
	f77-memberinit \
	f82-userlit

################################################################################

CXX=$(HOME)/gcc/inst/bin/g++
CXXFLAGS:=-std=gnu++0x -Wall -Wextra $(CXXFLAGS)

################################################################################


all: $(TARGETS) index.html
fails: $(FAILS)

check: all
	for i in $(TARGETS) ; do \
		./$$i ;\
	done

index.html: src-format.py
	./src-format.py *.cpp > index.html

clean:
	rm -f *.o $(TARGETS) $(FAILS) index.html

.PHONY: index.html
