Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    rb8f6002 re68b3a8  
    2929
    3030# applies to both programs
    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
     31DEBUG_FLAGS =
    4632
     33BUILD_FLAGS = -g -Wall -Wno-unused-function -quiet @CFA_FLAGS@ -I.
    4734if !BUILD_DEBUG
    48 AM_CFLAGS += -nodebug
     35BUILD_FLAGS += -nodebug
    4936else
    5037if !BUILD_RELEASE
    51 AM_CFLAGS += -debug
     38BUILD_FLAGS += -debug
    5239else
    53 AM_CFLAGS += ${DEBUG_FLAGS}
     40BUILD_FLAGS += ${DEBUG_FLAGS}
    5441endif
    5542endif
    5643
    57 CC = ${abs_top_builddir}/src/driver/cfa
     44TEST_FLAGS = $(if $(test), 2> $(test), )
     45AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
     46CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/"
    5847
    5948.PHONY : list
     
    6150
    6251fstream_test_SOURCES = fstream_test.c
     52fstream_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
    6353
    6454avl_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
     55avl_test_CFLAGS = $(if $(test), 2>> $(test), ) ${BUILD_FLAGS}
    6556
    6657all-local :
     
    7970        @+${TEST_PY} --debug=${debug} -Iconcurrent
    8071
    81 % : %.c $(CC)
     72% : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@
    8273        $(COMPILE) $(abspath ${<}) -o ${@}
    8374
    84 declarationSpecifier: declarationSpecifier.c $(CC)
     75declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
    8576        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8677
    87 gccExtensions : gccExtensions.c $(CC)
     78gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
    8879        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8980
    90 extension : extension.c $(CC)
     81extension : extension.c @CFA_BINDIR@/@CFA_NAME@
    9182        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9283
    93 attributes : attributes.c $(CC)
     84attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
    9485        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9586
    96 functions: functions.c $(CC)
     87functions: functions.c @CFA_BINDIR@/@CFA_NAME@
    9788        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9889
    99 KRfunctions : KRfunctions.c $(CC)
     90KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
    10091        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    10192
    102 sched-ext-parse : sched-ext-parse.c $(CC)
     93sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
    10394        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    10495
    105 gmp : gmp.c $(CC)
     96gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
    10697        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
    10798
    108 completeTypeError : completeTypeError.c $(CC)
     99completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
    109100        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    110101
    111 typedefRedef-ERR1: typedefRedef.c $(CC)
     102typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
    112103        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    113104
    114 alloc-ERROR: alloc.c $(CC)
     105alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
    115106        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    116107
    117 fallthrough-ERROR: fallthrough.c $(CC)
     108fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
    118109        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    119110
    120 nested-types-ERR1: nested-types.c $(CC)
     111nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
    121112        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    122113
    123 nested-types-ERR2: nested-types.c $(CC)
     114nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
    124115        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    125116
    126117# Constructor/destructor tests
    127 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
     118raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
    128119        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    129120
    130 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
     121raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
    131122        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    132123
    133 raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
     124raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
    134125        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    135126
    136 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
     127raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
    137128        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    138129
    139130# Warnings
    140 warnings/self-assignment: warnings/self-assignment.c $(CC)
     131warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
    141132        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
    142133
    143134#builtins
    144 builtins/sync: builtins/sync.c $(CC)
     135builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
    145136        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracChangeset for help on using the changeset viewer.