| [ef7d253] | 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
|
|---|
| [2248dc7] | 13 | ## Last Modified On : Wed Jun 6 16:42:20 2018
|
|---|
| 14 | ## Update Count : 49
|
|---|
| [ef7d253] | 15 | ###############################################################################
|
|---|
| 16 |
|
|---|
| [f85bc15] | 17 |
|
|---|
| [cc640aad] | 18 | debug=yes
|
|---|
| 19 |
|
|---|
| [5cacf74] | 20 | quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
|
|---|
| [be65cca] | 21 |
|
|---|
| 22 | if BUILD_CONCURRENCY
|
|---|
| [0ad0c55] | 23 | concurrent=
|
|---|
| [be65cca] | 24 | else
|
|---|
| [0ad0c55] | 25 | concurrent='-Econcurrent'
|
|---|
| [be65cca] | 26 | endif
|
|---|
| 27 |
|
|---|
| [f85bc15] | 28 | TEST_PY = python ${srcdir}/test.py
|
|---|
| 29 |
|
|---|
| [ef7d253] | 30 | # applies to both programs
|
|---|
| [b5f9829] | 31 | DEBUG_FLAGS =
|
|---|
| [7c03d6d] | 32 |
|
|---|
| [934d200] | 33 | BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I.
|
|---|
| [b5f9829] | 34 | if !BUILD_DEBUG
|
|---|
| 35 | BUILD_FLAGS += -nodebug
|
|---|
| 36 | else
|
|---|
| 37 | if !BUILD_RELEASE
|
|---|
| 38 | BUILD_FLAGS += -debug
|
|---|
| 39 | else
|
|---|
| [7c03d6d] | 40 | BUILD_FLAGS += ${DEBUG_FLAGS}
|
|---|
| [b5f9829] | 41 | endif
|
|---|
| 42 | endif
|
|---|
| 43 |
|
|---|
| [0ad0c55] | 44 | TEST_FLAGS = $(if $(test), 2> $(test), )
|
|---|
| [44f44617] | 45 | AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
|
|---|
| [e68b3a8] | 46 | CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/"
|
|---|
| [ef7d253] | 47 |
|
|---|
| [927e9ce] | 48 | .PHONY : list
|
|---|
| [293377c] | 49 | EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
|
|---|
| [927e9ce] | 50 |
|
|---|
| [e68b3a8] | 51 | fstream_test_SOURCES = fstream_test.c
|
|---|
| [0ad0c55] | 52 | fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
|
|---|
| [44f44617] | 53 |
|
|---|
| [e68b3a8] | 54 | 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
|
|---|
| [0ad0c55] | 55 | avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
|
|---|
| [a0dcd2e] | 56 |
|
|---|
| [927e9ce] | 57 | all-local :
|
|---|
| [f85bc15] | 58 | @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
|
|---|
| [df42128] | 59 |
|
|---|
| 60 | all-tests :
|
|---|
| [f85bc15] | 61 | @+${TEST_PY} --all --debug=${debug} ${concurrent} # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
|
|---|
| [927e9ce] | 62 |
|
|---|
| 63 | clean-local :
|
|---|
| [a6dd5b0] | 64 | rm -f ${EXTRA_PROGRAMS}
|
|---|
| [927e9ce] | 65 |
|
|---|
| 66 | list :
|
|---|
| [f85bc15] | 67 | @+${TEST_PY} --list ${concurrent}
|
|---|
| [927e9ce] | 68 |
|
|---|
| [026a0f5] | 69 | concurrency :
|
|---|
| [f85bc15] | 70 | @+${TEST_PY} --debug=${debug} -Iconcurrent
|
|---|
| [026a0f5] | 71 |
|
|---|
| [f85bc15] | 72 | % : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 73 | $(COMPILE) $(abspath ${<}) -o ${@}
|
|---|
| [8f8af30] | 74 |
|
|---|
| 75 | declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 76 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [950f7a7] | 77 |
|
|---|
| [8f8af30] | 78 | gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 79 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [d9b499c] | 80 |
|
|---|
| [8f8af30] | 81 | extension : extension.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 82 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [d9b499c] | 83 |
|
|---|
| [8f8af30] | 84 | attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 85 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [481115f] | 86 |
|
|---|
| 87 | functions: functions.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 88 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [c0aa336] | 89 |
|
|---|
| [8f8af30] | 90 | KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 91 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [3a5131ed] | 92 |
|
|---|
| [a843067] | 93 | sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 94 | $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
|
|---|
| [a843067] | 95 |
|
|---|
| [8f8af30] | 96 | gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 97 | $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
|
|---|
| [4c8f86b3] | 98 |
|
|---|
| [80e8582] | 99 | completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 100 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [486341f] | 101 |
|
|---|
| [80e8582] | 102 | typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 103 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [b93a3de] | 104 |
|
|---|
| [80e8582] | 105 | alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 106 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [70529dc] | 107 |
|
|---|
| [e2c70ab] | 108 | fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 109 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [e2c70ab] | 110 |
|
|---|
| [49e1275] | 111 | nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 112 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [49e1275] | 113 |
|
|---|
| 114 | nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 115 | $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
|
|---|
| [49e1275] | 116 |
|
|---|
| [80e8582] | 117 | # Constructor/destructor tests
|
|---|
| 118 | raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 119 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [cdbfab0] | 120 |
|
|---|
| [80e8582] | 121 | raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 122 | $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
|
|---|
| [80e8582] | 123 |
|
|---|
| 124 | raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 125 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [80e8582] | 126 |
|
|---|
| 127 | raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 128 | $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
|
|---|
| [80e8582] | 129 |
|
|---|
| [1feb535f] | 130 | # Warnings
|
|---|
| [6bc76537] | 131 | warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 132 | $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
|
|---|
| [13073be] | 133 |
|
|---|
| 134 | #builtins
|
|---|
| 135 | builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
|
|---|
| [e68b3a8] | 136 | $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
|
|---|