######################## -*- 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 ############################################################################### AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names ACLOCAL_AMFLAGS = -I automake include $(top_srcdir)/src/cfa.make repeats=10 max_time=600 preempt=10ul\`ms debug=-debug type=LONG REPEAT = $(abs_top_builddir)/tools/repeat WATCHDOG = $(abs_top_builddir)/tools/watchdog TIME = /usr/bin/time -f "%E" UPDATED_TYPE = $(shell $(srcdir)/update-type $(type)) BUILD_FLAGS = AM_CFAFLAGS = \ -g \ -Wall \ -Wno-unused-function \ -quiet \ -O2 \ -DPREEMPTION_RATE=$(preempt) \ -I$(abs_top_srcdir)/tests \ -I$(srcdir) \ -DTEST_$(shell cat .type | tr a-z A-Z) TESTS = block coroutine create disjoint enter enter3 processor stack wait yield # .INTERMEDIATE: $(TESTS) all-local: $(TESTS:=.run) runall : $(TESTS:=.run) @ echo "All programs terminated normally" watchall : $(TESTS:=.watch) @ echo "All programs terminated normally" compileall : $(TESTS) @ echo "Compiled" clean-local: rm -f $(TESTS) core* out.log .type % : %.cfa $(CFACC) $(UPDATED_TYPE) $(AM_V_CFA)$(CFACOMPILE) $(<) $(debug) -o $(@) %.run : % $(REPEAT) @ time $(REPEAT) -r out.log -i -s $(repeats) timeout $(max_time) ./$(<) @ rm $(<) @ echo -e "$(<): SUCCESS\n" %.watch : % $(WATCHDOG) @ time $(WATCHDOG} ./$(<) @ rm $(<) @ echo -e "$(<): SUCCESS\n" %.time : % $(REPEAT) @ $(REPEAT) -i -s -- $(repeats) $(TIME) -a -o times.log ./$(<) @ rm $(<) @ echo -e "$(<): SUCCESS\n" $(REPEAT): $(abs_top_builddir)/tools/Makefile @+make -C $(abs_top_builddir)/tools/ $(WATCHDOG): $(abs_top_builddir)/tools/Makefile @+make -C $(abs_top_builddir)/tools/