Changeset 38a0a4d for src/examples


Ignore:
Timestamp:
Dec 15, 2016, 11:19:35 AM (8 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

Location:
src/examples
Files:
2 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 ;
  • src/examples/Makefile.in

    rc7800bfc r38a0a4d  
    3939host_triplet = @host@
    4040noinst_PROGRAMS = fstream_test$(EXEEXT) vector_test$(EXEEXT) \
    41         avl_test$(EXEEXT)
     41        avl_test$(EXEEXT) Bench$(EXEEXT)
    4242subdir = src/examples
    4343DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
     
    5151CONFIG_CLEAN_VPATH_FILES =
    5252PROGRAMS = $(noinst_PROGRAMS)
     53Bench_SOURCES = Bench.c
     54Bench_OBJECTS = Bench.$(OBJEXT)
     55Bench_LDADD = $(LDADD)
    5356am_avl_test_OBJECTS = avl_test.$(OBJEXT) avl0.$(OBJEXT) avl1.$(OBJEXT) \
    5457        avl2.$(OBJEXT) avl3.$(OBJEXT) avl4.$(OBJEXT) \
     
    8689am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
    8790am__v_GEN_0 = @echo "  GEN   " $@;
    88 SOURCES = $(avl_test_SOURCES) $(fstream_test_SOURCES) \
     91SOURCES = Bench.c $(avl_test_SOURCES) $(fstream_test_SOURCES) \
    8992        $(vector_test_SOURCES)
    90 DIST_SOURCES = $(avl_test_SOURCES) $(fstream_test_SOURCES) \
     93DIST_SOURCES = Bench.c $(avl_test_SOURCES) $(fstream_test_SOURCES) \
    9194        $(vector_test_SOURCES)
    9295ETAGS = etags
     
    115118
    116119# applies to both programs
    117 CFLAGS = -g -Wall -Wno-unused-function # TEMPORARY: does not build with -O2
     120CFLAGS =
    118121CPP = @CPP@
    119122CPPFLAGS = @CPPFLAGS@
     
    213216top_builddir = @top_builddir@
    214217top_srcdir = @top_srcdir@
     218AM_CFLAGS = -g -Wall -Wno-unused-function -O2
    215219fstream_test_SOURCES = fstream_test.c
    216220vector_test_SOURCES = vector_int.c array.c vector_test.c
     
    269273        -rm -f *.tab.c
    270274
     275@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/Bench.Po@am__quote@
    271276@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/array.Po@am__quote@
    272277@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/avl-private.Po@am__quote@
     
    594599
    595600
     601Bench : Bench.c
     602        @for ccflags in "-debug" "-nodebug"; do \
     603                echo ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt Bench.c;\
     604                ${CC} ${AM_CFLAGS} ${CFLAGS} $${ccflags} -lrt Bench.c;\
     605                ./a.out ; \
     606        done ; \
     607        rm -f ./a.out ;
     608
    596609# Tell versions [3.59,3.63) of GNU make to not export all variables.
    597610# Otherwise a system limit (for SysV at least) may be exceeded.
Note: See TracChangeset for help on using the changeset viewer.