source: tests/Makefile.am @ 28582b2

ADTaaron-thesisarm-ehast-experimentalcleanup-dtorsdeferred_resndemanglerenumforall-pointer-decayjacob/cs343-translationjenkins-sandboxnew-astnew-ast-unique-exprno_listpersistent-indexerpthread-emulationqualifiedEnum
Last change on this file since 28582b2 was 28582b2, checked in by Thierry Delisle <tdelisle@…>, 6 years ago

Better handling of missing configurations

  • Property mode set to 100644
File size: 4.1 KB
RevLine 
[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]18debug=yes
19
[5cacf74]20quick_test=avl_test operators numericConstants expression enum array typeof cast raii/dtor-early-exit raii/init_once attributes
[be65cca]21
[0ad0c55]22concurrent=
[be65cca]23
[f85bc15]24TEST_PY = python ${srcdir}/test.py
25
[ef7d253]26# applies to both programs
[b8f6002]27AM_CFLAGS = $(if $(test), 2> $(test), ) \
28        -g \
29        -Wall \
30        -Wno-unused-function \
31        -quiet @CFA_FLAGS@ \
32        -DIN_DIR="${srcdir}/.in/" \
[7fb69f6]33        @BUILD_IN_TREE_FLAGS@
[7c03d6d]34
[b8f6002]35AM_CFLAGS += ${DEBUG_FLAGS}
[b5f9829]36
[50697b0]37CC = @CFACC@
[ef7d253]38
[28582b2]39.PHONY: list .validate
40.INTERMEDIATE: .validate .validate.c
[293377c]41EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
[927e9ce]42
[e68b3a8]43fstream_test_SOURCES = fstream_test.c
[44f44617]44
[e68b3a8]45avl_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
[a0dcd2e]46
[927e9ce]47all-local :
[f85bc15]48        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
[df42128]49
50all-tests :
[f85bc15]51        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
[927e9ce]52
53clean-local :
[a6dd5b0]54        rm -f ${EXTRA_PROGRAMS}
[927e9ce]55
56list :
[f85bc15]57        @+${TEST_PY} --list ${concurrent}
[927e9ce]58
[28582b2]59.validate: .validate.c
60        @$(COMPILE) .validate.c -fsyntax-only
61
62.validate.c:
63        @echo "int main() { return 0; }" > ${@}
64
[026a0f5]65concurrency :
[f85bc15]66        @+${TEST_PY} --debug=${debug} -Iconcurrent
[026a0f5]67
[4f18de3]68# SKULLDUGGERY like libcfa/Makefile.am prevent extensionless headers from being generated
[a4248de1]69# however, here it is more complicated because it must match the dependencies based on how
70# they are generated by gcc
[bf71cfd]71headers = $(shell find $(top_srcdir)/libcfa/src -type f ! -name "*.*")
72headers_real = $(shell realpath --relative-to=$(top_srcdir)/libcfa/src $(headers))
[a4248de1]73headers_deps = $(addprefix %/, $(headers_real))
[4f18de3]74$(headers_deps) :
75        echo "Dummy rule, should never be called"
76
[a4248de1]77# %/stdlib:
78#       echo "Dummy rule, should never be called"
79
[4f18de3]80# implicit rule so not all test require a rule
[b8f6002]81% : %.c $(CC)
[e68b3a8]82        $(COMPILE) $(abspath ${<}) -o ${@}
[8f8af30]83
[b8f6002]84declarationSpecifier: declarationSpecifier.c $(CC)
[e68b3a8]85        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[950f7a7]86
[b8f6002]87gccExtensions : gccExtensions.c $(CC)
[e68b3a8]88        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[d9b499c]89
[b8f6002]90extension : extension.c $(CC)
[e68b3a8]91        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[d9b499c]92
[b8f6002]93attributes : attributes.c $(CC)
[e68b3a8]94        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[481115f]95
[b8f6002]96functions: functions.c $(CC)
[e68b3a8]97        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[c0aa336]98
[b8f6002]99KRfunctions : KRfunctions.c $(CC)
[e68b3a8]100        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[3a5131ed]101
[b8f6002]102sched-ext-parse : sched-ext-parse.c $(CC)
[e68b3a8]103        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
[a843067]104
[b8f6002]105gmp : gmp.c $(CC)
[e68b3a8]106        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
[4c8f86b3]107
[b8f6002]108completeTypeError : completeTypeError.c $(CC)
[e68b3a8]109        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[486341f]110
[b8f6002]111typedefRedef-ERR1: typedefRedef.c $(CC)
[e68b3a8]112        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[b93a3de]113
[b8f6002]114alloc-ERROR: alloc.c $(CC)
[e68b3a8]115        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[70529dc]116
[b8f6002]117fallthrough-ERROR: fallthrough.c $(CC)
[e68b3a8]118        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[e2c70ab]119
[b8f6002]120nested-types-ERR1: nested-types.c $(CC)
[e68b3a8]121        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[49e1275]122
[b8f6002]123nested-types-ERR2: nested-types.c $(CC)
[e68b3a8]124        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
[49e1275]125
[80e8582]126# Constructor/destructor tests
[b8f6002]127raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
[e68b3a8]128        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[cdbfab0]129
[b8f6002]130raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
[e68b3a8]131        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
[80e8582]132
[b8f6002]133raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
[e68b3a8]134        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[80e8582]135
[b8f6002]136raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
[e68b3a8]137        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
[80e8582]138
[1feb535f]139# Warnings
[b8f6002]140warnings/self-assignment: warnings/self-assignment.c $(CC)
[e68b3a8]141        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
[13073be]142
143#builtins
[b8f6002]144builtins/sync: builtins/sync.c $(CC)
[e68b3a8]145        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracBrowser for help on using the repository browser.