source: src/tests/Makefile.am @ 7fb69f6

aaron-thesisarm-ehcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 7fb69f6 was 7fb69f6, checked in by Thierry Delisle <tdelisle@…>, 5 years ago

Added configure variable for building cfa source in tree

  • Property mode set to 100644
File size: 3.6 KB
Line 
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
13## Last Modified On : Wed Jun  6 16:42:20 2018
14## Update Count     : 49
15###############################################################################
16
17
18debug=yes
19
20quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
21
22if BUILD_CONCURRENCY
23concurrent=
24else
25concurrent='-Econcurrent'
26endif
27
28TEST_PY = python ${srcdir}/test.py
29
30# applies to both programs
31AM_CFLAGS = $(if $(test), 2> $(test), ) \
32        -g \
33        -Wall \
34        -Wno-unused-function \
35        -quiet @CFA_FLAGS@ \
36        -DIN_DIR="${srcdir}/.in/" \
37        @BUILD_IN_TREE_FLAGS@
38
39if !BUILD_DEBUG
40AM_CFLAGS += -nodebug
41else
42if !BUILD_RELEASE
43AM_CFLAGS += -debug
44else
45AM_CFLAGS += ${DEBUG_FLAGS}
46endif
47endif
48
49CC = @CFACC@
50
51.PHONY : list
52EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
53
54fstream_test_SOURCES = fstream_test.c
55
56avl_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
57
58all-local :
59        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
60
61all-tests :
62        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
63
64clean-local :
65        rm -f ${EXTRA_PROGRAMS}
66
67list :
68        @+${TEST_PY} --list ${concurrent}
69
70concurrency :
71        @+${TEST_PY} --debug=${debug} -Iconcurrent
72
73% : %.c $(CC)
74        echo "Compiling"
75        $(COMPILE) ${<} -o ${@}
76
77/home/tdelisle/workspace/clean-cforall/main/build/../src/libcfa/stdlib:
78        echo "Caught"
79
80
81declarationSpecifier: declarationSpecifier.c $(CC)
82        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
83
84gccExtensions : gccExtensions.c $(CC)
85        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
86
87extension : extension.c $(CC)
88        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
89
90attributes : attributes.c $(CC)
91        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
92
93functions: functions.c $(CC)
94        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
95
96KRfunctions : KRfunctions.c $(CC)
97        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
98
99sched-ext-parse : sched-ext-parse.c $(CC)
100        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
101
102gmp : gmp.c $(CC)
103        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
104
105completeTypeError : completeTypeError.c $(CC)
106        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
107
108typedefRedef-ERR1: typedefRedef.c $(CC)
109        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
110
111alloc-ERROR: alloc.c $(CC)
112        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
113
114fallthrough-ERROR: fallthrough.c $(CC)
115        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
116
117nested-types-ERR1: nested-types.c $(CC)
118        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
119
120nested-types-ERR2: nested-types.c $(CC)
121        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
122
123# Constructor/destructor tests
124raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
125        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
126
127raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
128        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
129
130raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
131        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
132
133raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
134        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
135
136# Warnings
137warnings/self-assignment: warnings/self-assignment.c $(CC)
138        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
139
140#builtins
141builtins/sync: builtins/sync.c $(CC)
142        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracBrowser for help on using the repository browser.