######################## -*- 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 : Thu Jun 8 07:41:43 2017 ## Update Count : 44 ############################################################################### debug=yes quick_test=vector_test avl_test operators numericConstants expression enum array typeof cast dtor-early-exit init_once attributes if BUILD_CONCURRENCY concurrent = yes quick_test += coroutine thread monitor concurrent_test = coroutine thread monitor multi-monitor sched-int-barge sched-int-block sched-int-disjoint sched-int-wait sched-ext sched-ext-multi preempt else concurrent=no concurrent_test= endif # applies to both programs EXTRA_FLAGS = BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ ${EXTRA_FLAGS} TEST_FLAGS = $(if $(test), 2> .err/${@}.log, ) AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} CC = @CFA_BINDIR@/@CFA_NAME@ .PHONY : list EXTRA_PROGRAMS = fstream_test vector_test avl_test # build but do not install fstream_test_SOURCES = fstream_test.c fstream_test_CFLAGS = $(if $(test), 2>> .err/fstream_test.log, ) ${BUILD_FLAGS} vector_test_SOURCES = vector/vector_int.c vector/array.c vector/vector_test.c vector_test_CFLAGS = $(if $(test), 2>> .err/vector_test.log, ) ${BUILD_FLAGS} avl_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 avl_test_CFLAGS = $(if $(test), 2>> .err/avl_test.log, ) ${BUILD_FLAGS} all-local : @+python test.py --debug=${debug} --concurrent=${concurrent} ${quick_test} all-tests : @+python test.py --all --debug=${debug} --concurrent=${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program clean-local : rm -f ${EXTRA_PROGRAMS} list : @+python test.py --list --concurrent=${concurrent} concurrency : @+python test.py --debug=${debug} --concurrent=${concurrent} ${concurrent_test} .dummy : .dummy.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${BUILD_FLAGS} -XCFA -n ${<} -o ${@} #don't use CFLAGS, this rule is not a real test % : %.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} -o ${@} dtor-early-exit-ERR1: dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@} dtor-early-exit-ERR2: dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<} -o ${@} declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@} gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@} extension : extension.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@} attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@} KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p -XCFA -L ${<} -o ${@} gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -lgmp ${<} -o ${@} memberCtors-ERR1: memberCtors.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@} completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@ ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}