[ac93b228] | 1 | ######################## -*- Mode: Makefile-Automake -*- ###################### |
---|
| 2 | ## |
---|
| 3 | ## Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo |
---|
| 4 | ## |
---|
| 5 | ## The contents of this file are covered under the licence agreement in the |
---|
| 6 | ## file "LICENCE" distributed with Cforall. |
---|
| 7 | ## |
---|
| 8 | ## Makefile.am -- |
---|
| 9 | ## |
---|
| 10 | ## Author : Peter A. Buhr |
---|
| 11 | ## Created On : Sun May 31 09:08:15 2015 |
---|
| 12 | ## Last Modified By : Peter A. Buhr |
---|
| 13 | ## Last Modified On : Mon Jan 25 22:31:42 2016 |
---|
| 14 | ## Update Count : 25 |
---|
| 15 | ############################################################################### |
---|
| 16 | |
---|
| 17 | # applies to both programs |
---|
| 18 | CFLAGS = |
---|
| 19 | AM_CFLAGS = -g -Wall -Wno-unused-function -O2 |
---|
[df47e2f] | 20 | CC = @CFA_BINDIR@/@CFA_NAME@ |
---|
[ac93b228] | 21 | |
---|
[fab6ded] | 22 | noinst_PROGRAMS = bench$(EXEEXT) ctxswitch-coroutine$(EXEEXT) ctxswitch-thread$(EXEEXT) sched-int$(EXEEXT) monitor$(EXEEXT) csv-data$(EXEEXT) |
---|
[ac93b228] | 23 | |
---|
[fab6ded] | 24 | bench$(EXEEXT) : |
---|
[ac93b228] | 25 | @for ccflags in "-debug" "-nodebug"; do \ |
---|
[6db3e73] | 26 | echo ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -lrt bench.c;\ |
---|
[ac93b228] | 27 | ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt bench.c;\ |
---|
| 28 | ./a.out ; \ |
---|
| 29 | done ; \ |
---|
| 30 | rm -f ./a.out ; |
---|
| 31 | |
---|
[fab6ded] | 32 | ctxswitch-coroutine$(EXEEXT): |
---|
[af08051] | 33 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 CorCtxSwitch.c |
---|
[bfd15e8] | 34 | @rm -f .result.log |
---|
| 35 | @for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \ |
---|
| 36 | ./a.out | tee -a .result.log ; \ |
---|
[ac93b228] | 37 | done |
---|
[bfd15e8] | 38 | @./stat.py .result.log |
---|
| 39 | @rm -f a.out .result.log |
---|
[ac93b228] | 40 | |
---|
[fab6ded] | 41 | ctxswitch-thread$(EXEEXT): |
---|
[af08051] | 42 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 ThrdCtxSwitch.c |
---|
[bfd15e8] | 43 | @rm -f .result.log |
---|
| 44 | @for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \ |
---|
| 45 | ./a.out | tee -a .result.log ; \ |
---|
[ac93b228] | 46 | done |
---|
[bfd15e8] | 47 | @./stat.py .result.log |
---|
| 48 | @rm -f a.out .result.log |
---|
[ac93b228] | 49 | |
---|
[fab6ded] | 50 | sched-int$(EXEEXT): |
---|
[af08051] | 51 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 SchedInt.c |
---|
[bfd15e8] | 52 | @rm -f .result.log |
---|
| 53 | @for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \ |
---|
| 54 | ./a.out | tee -a .result.log ; \ |
---|
[42356f4] | 55 | done |
---|
[bfd15e8] | 56 | @./stat.py .result.log |
---|
| 57 | @rm -f a.out .result.log |
---|
[42356f4] | 58 | |
---|
[fab6ded] | 59 | monitor$(EXEEXT): |
---|
[af08051] | 60 | ${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -DN=50000000 Monitor.c |
---|
[bfd15e8] | 61 | @rm -f .result.log |
---|
| 62 | @for number in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20; do \ |
---|
| 63 | ./a.out | tee -a .result.log ; \ |
---|
[29137d3] | 64 | done |
---|
[bfd15e8] | 65 | @./stat.py .result.log |
---|
| 66 | @rm -f a.out .result.log |
---|
[29137d3] | 67 | |
---|
[fab6ded] | 68 | csv-data$(EXEEXT): |
---|
[af08051] | 69 | @${CC} ${AM_CFLAGS} ${CFLAGS} ${ccflags} @CFA_FLAGS@ -nodebug -lrt -quiet -DN=50000000 csv-data.c |
---|
[cf97ccb] | 70 | @./a.out |
---|
| 71 | @rm -f ./a.out |
---|