######################## -*- 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 : Wed Jun 6 16:42:20 2018 ## Update Count : 49 ############################################################################### debug=yes quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes if BUILD_CONCURRENCY concurrent= else concurrent='-Econcurrent' endif TEST_PY = python ${srcdir}/test.py # applies to both programs DEBUG_FLAGS = BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I. if !BUILD_DEBUG BUILD_FLAGS += -nodebug else if !BUILD_RELEASE BUILD_FLAGS += -debug else BUILD_FLAGS += ${DEBUG_FLAGS} endif endif TEST_FLAGS = $(if $(test), 2> $(test), ) AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS} CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/" .PHONY : list EXTRA_PROGRAMS = fstream_test avl_test # build but do not install fstream_test_SOURCES = fstream_test.c fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${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>> $(test), ) ${BUILD_FLAGS} all-local : @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test} all-tests : @+${TEST_PY} --all --debug=${debug} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program clean-local : rm -f ${EXTRA_PROGRAMS} list : @+${TEST_PY} --list ${concurrent} concurrency : @+${TEST_PY} --debug=${debug} -Iconcurrent % : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) $(abspath ${<}) -o ${@} declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} extension : extension.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} functions: functions.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -lgmp $(abspath ${<}) -o ${@} completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} # Constructor/destructor tests raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} # Warnings warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only #builtins builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@ $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only