Ignore:
Timestamp:
Dec 15, 2016, 11:19:35 AM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
12d44bb
Parents:
c7800bfc
Message:

Implemented proper makefile rule for coroutine benchmark

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/examples/Makefile.am

    rc7800bfc r38a0a4d  
    1616
    1717# applies to both programs
    18 CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
     18CFLAGS =
     19AM_CFLAGS = -g -Wall -Wno-unused-function -O2
    1920CC = @CFA_BINDIR@/cfa
    2021
    21 noinst_PROGRAMS = fstream_test vector_test avl_test # build but do not install
     22noinst_PROGRAMS = fstream_test vector_test avl_test Bench # build but do not install
    2223fstream_test_SOURCES = fstream_test.c
    2324vector_test_SOURCES = vector_int.c array.c vector_test.c
    2425avl_test_SOURCES = avltree/avl_test.c avltree/avl0.c avltree/avl1.c avltree/avl2.c avltree/avl3.c avltree/avl4.c avltree/avl-private.c
     26
     27Bench : Bench.c
     28        @for ccflags in "-debug" "-nodebug"; do \
     29                echo ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt Bench.c;\
     30                ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt Bench.c;\
     31                ./a.out ; \
     32        done ; \
     33        rm -f ./a.out ;
Note: See TracChangeset for help on using the changeset viewer.