######################## -*- 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 : Peter A. Buhr ## Created On : Sun May 31 09:08:15 2015 ## Last Modified By : Peter A. Buhr ## Last Modified On : Mon Jan 25 22:31:42 2016 ## Update Count : 25 ############################################################################### # applies to both programs CFLAGS = AM_CFLAGS = -g -Wall -Wno-unused-function -O2 CC = @CFA_BINDIR@/@CFA_NAME@ TOOLSDIR = ${abs_top_srcdir}/tools/ REPEAT = ${TOOLSDIR}repeat STATS = ${TOOLSDIR}stat.py repeats = 30 .NOTPARALLEL: noinst_PROGRAMS = bench$(EXEEXT) : @for ccflags in "-debug" "-nodebug"; do \ echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\ ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ ./a.out ; \ done ; \ rm -f ./a.out ; csv-data$(EXEEXT): @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=50000000 csv-data.c @./a.out @rm -f ./a.out ## ========================================================================================================= ctxswitch$(EXEEXT): \ ctxswitch-pthread.run \ ctxswitch-cfa_coroutine.run \ ctxswitch-cfa_thread.run \ ctxswitch-upp_coroutine.run \ ctxswitch-upp_thread.run ctxswitch-cfa_coroutine$(EXEEXT): ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/cfa_cor.c ctxswitch-cfa_thread$(EXEEXT): ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/cfa_thrd.c ctxswitch-upp_coroutine$(EXEEXT): ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/upp_cor.cc ctxswitch-upp_thread$(EXEEXT): ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 ctxswitch/upp_thrd.cc ctxswitch-pthread$(EXEEXT): ${AM_V_CC}@BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=50000000 ctxswitch/pthreads.c ## ========================================================================================================= creation$(EXEEXT) :\ creation-pthread.run \ creation-cfa_coroutine.run \ creation-cfa_thread.run \ creation-upp_coroutine.run \ creation-upp_thread.run creation-cfa_coroutine$(EXEEXT): ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=500000000 creation/cfa_cor.c creation-cfa_thread$(EXEEXT): ${AM_V_CC}${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -I. -nodebug -lrt -quiet -DBENCH_N=10000000 creation/cfa_thrd.c creation-upp_coroutine$(EXEEXT): ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 creation/upp_cor.cc creation-upp_thread$(EXEEXT): ${AM_V_CC}u++ ${AM_CFLAGS} ${CFLAGS} ${ccflags} ${ccflags} -I. -nodebug -lrt -quiet -DBENCH_N=50000000 creation/upp_thrd.cc creation-pthread$(EXEEXT): ${AM_V_CC}@BACKEND_CC@ ${AM_CFLAGS} ${CFLAGS} ${ccflags} -I. -lrt -pthread -DBENCH_N=250000 creation/pthreads.c ## ========================================================================================================= sched-int$(EXEEXT): ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c monitor$(EXEEXT): ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c %.run : %$(EXEEXT) ${REPEAT} @rm -f .result.log @echo "------------------------------------------------------" @echo $< @${REPEAT} ${repeats} ./a.out | tee -a .result.log @${STATS} .result.log @echo "------------------------------------------------------" @rm -f a.out .result.log ${REPEAT} : @+make -C ${TOOLSDIR} repeat