######################## -*- 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 noinst_PROGRAMS = bench ctxswitch-coroutine ctxswitch-thread bench : @for ccflags in "-debug" "-nodebug"; do \ echo ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ ./a.out ; \ done ; \ rm -f ./a.out ; ctxswitch-coroutine: ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -nodebug -lrt -DN=10000000 CorCtxSwitch.c @for number in 1 2 3 4 5 6 7 8 9 10; do \ ./a.out ; \ done @rm -f ./a.out ctxswitch-thread: ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -nodebug -lrt -DN=10000000 ThrdCtxSwitch.c @for number in 1 2 3 4 5 6 7 8 9 10; do \ ./a.out ; \ done @rm -f ./a.out csv-data: @${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -nodebug -lrt -quiet -DN=10000000 csv-data.c @./a.out @rm -f ./a.out