######################## -*- Mode: Makefile-Automake -*- ###################### ## ## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo ## ## The contents of this file are covered under the licence agreement in the ## file "LICENCE" distributed with Cforall. ## ## Makefile.am -- ## ## Author : Thierry Delisle ## Created On : Fri Jun 16 10:57:34 2017 ## Last Modified By : ## Last Modified On : ## Update Count : 0 ############################################################################### repeats=10 max_time=600 preempt=1_000ul debug=-debug REPEAT = ${abs_top_srcdir}/tools/repeat TIME = /usr/bin/time -f "%E" BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -O2 -DPREEMPTION_RATE=${preempt} -DLONG_TEST CFLAGS = ${BUILD_FLAGS} CC = @CFA_BINDIR@/@CFA_NAME@ TESTS = block coroutine create disjoint enter enter3 processor stack wait yield .INTERMEDIATE: ${TESTS} all-local: ${TESTS:=.run} clean-local: rm -f ${TESTS} % : %.c ${CC} ${AM_V_GEN}${CC} ${CFLAGS} ${<} $(debug) -o ${@} %.run : % ${REPEAT} @ time ${REPEAT} -r out.log -i -s $(repeats) timeout ${max_time} ./${<} @ rm ${<} @ echo -e "${<}: SUCCESS\n" %.time : % ${REPEAT} @ ${REPEAT} -i -s -- $(repeats) $(TIME) -a -o times.log ./${<} @ rm ${<} @ echo -e "${<}: SUCCESS\n" ${REPEAT}: @+make -C ${abs_top_srcdir}/tools/