Changeset b8f6002 for src/tests/Makefile.am
- Timestamp:
- Jul 25, 2018, 4:44:25 PM (6 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer, pthread-emulation, qualifiedEnum
- Children:
- 56de5932
- Parents:
- 857638d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/tests/Makefile.am
r857638d rb8f6002 29 29 30 30 # applies to both programs 31 DEBUG_FLAGS = 31 AM_CFLAGS = $(if $(test), 2> $(test), ) \ 32 -XCFA \ 33 -t \ 34 -B${abs_top_builddir}/src/driver \ 35 -g \ 36 -Wall \ 37 -Wno-unused-function \ 38 -quiet @CFA_FLAGS@ \ 39 -I. \ 40 -DIN_DIR="${srcdir}/.in/" \ 41 -L${abs_top_builddir}/src/libcfa \ 42 -I${abs_top_srcdir}/src/libcfa \ 43 -I${abs_top_srcdir}/src/libcfa/containers \ 44 -I${abs_top_srcdir}/src/libcfa/concurrency \ 45 -I${abs_top_srcdir}/src/libcfa/stdhdr 32 46 33 BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I. -DIN_DIR="${srcdir}/.in/"34 47 if !BUILD_DEBUG 35 BUILD_FLAGS += -nodebug48 AM_CFLAGS += -nodebug 36 49 else 37 50 if !BUILD_RELEASE 38 BUILD_FLAGS += -debug51 AM_CFLAGS += -debug 39 52 else 40 BUILD_FLAGS += ${DEBUG_FLAGS}53 AM_CFLAGS += ${DEBUG_FLAGS} 41 54 endif 42 55 endif 43 56 44 TEST_FLAGS = $(if $(test), 2> $(test), )45 AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}46 57 CC = ${abs_top_builddir}/src/driver/cfa 47 58 … … 50 61 51 62 fstream_test_SOURCES = fstream_test.c 52 fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}53 63 54 64 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 55 avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}56 65 57 66 all-local : … … 70 79 @+${TEST_PY} --debug=${debug} -Iconcurrent 71 80 72 % : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@81 % : %.c $(CC) 73 82 $(COMPILE) $(abspath ${<}) -o ${@} 74 83 75 declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@84 declarationSpecifier: declarationSpecifier.c $(CC) 76 85 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 77 86 78 gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@87 gccExtensions : gccExtensions.c $(CC) 79 88 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 80 89 81 extension : extension.c @CFA_BINDIR@/@CFA_NAME@90 extension : extension.c $(CC) 82 91 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 83 92 84 attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@93 attributes : attributes.c $(CC) 85 94 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 86 95 87 functions: functions.c @CFA_BINDIR@/@CFA_NAME@96 functions: functions.c $(CC) 88 97 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 89 98 90 KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@99 KRfunctions : KRfunctions.c $(CC) 91 100 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 92 101 93 sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@102 sched-ext-parse : sched-ext-parse.c $(CC) 94 103 $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@} 95 104 96 gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@105 gmp : gmp.c $(CC) 97 106 $(COMPILE) -lgmp $(abspath ${<}) -o ${@} 98 107 99 completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@108 completeTypeError : completeTypeError.c $(CC) 100 109 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 101 110 102 typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@111 typedefRedef-ERR1: typedefRedef.c $(CC) 103 112 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 104 113 105 alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@114 alloc-ERROR: alloc.c $(CC) 106 115 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 107 116 108 fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@117 fallthrough-ERROR: fallthrough.c $(CC) 109 118 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 110 119 111 nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@120 nested-types-ERR1: nested-types.c $(CC) 112 121 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 113 122 114 nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@123 nested-types-ERR2: nested-types.c $(CC) 115 124 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 116 125 117 126 # Constructor/destructor tests 118 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@127 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC) 119 128 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 120 129 121 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@130 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC) 122 131 $(COMPILE) -DERR2 $(abspath ${<}) -o ${@} 123 132 124 raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@133 raii/memberCtors-ERR1: raii/memberCtors.c $(CC) 125 134 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 126 135 127 raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@136 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC) 128 137 $(COMPILE) -DERR1 $(abspath ${<}) -o ${@} 129 138 130 139 # Warnings 131 warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@140 warnings/self-assignment: warnings/self-assignment.c $(CC) 132 141 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only 133 142 134 143 #builtins 135 builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@144 builtins/sync: builtins/sync.c $(CC) 136 145 $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracChangeset
for help on using the changeset viewer.