Ignore:
Timestamp:
Jul 25, 2018, 6:23:58 PM (8 years ago)
Author:
Peter A. Buhr <pabuhr@…>
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:
a95c117, f0b3f51
Parents:
40a7d9c (diff), e89f4b1 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'master' of plg2:software/cfa/cfa-cc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/tests/Makefile.am

    r40a7d9c r91788fa  
    1515###############################################################################
    1616
     17
    1718debug=yes
    1819
     
    2425concurrent='-Econcurrent'
    2526endif
     27
     28TEST_PY = python ${srcdir}/test.py
    2629
    2730# applies to both programs
     
    4144TEST_FLAGS = $(if $(test), 2> $(test), )
    4245AM_CFLAGS = ${TEST_FLAGS} ${BUILD_FLAGS}
    43 CC = @CFA_BINDIR@/@CFA_NAME@
     46CC = ${abs_top_builddir}/src/driver/cfa -DIN_DIR="${srcdir}/.in/"
    4447
    4548.PHONY : list
     
    5356
    5457all-local :
    55         @+python test.py --debug=${debug} ${concurrent} ${quick_test}
     58        @+${TEST_PY} --debug=${debug} ${concurrent} ${quick_test}
    5659
    5760all-tests :
    58         @+python test.py --all --debug=${debug} ${concurrent}           # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
     61        @+${TEST_PY} --all --debug=${debug} ${concurrent}               # '@' => do not echo command (SILENT), '+' => allows recursive make from within python program
    5962
    6063clean-local :
     
    6265
    6366list :
    64         @+python test.py --list ${concurrent}
     67        @+${TEST_PY} --list ${concurrent}
    6568
    6669concurrency :
    67         @+python test.py --debug=${debug} -Iconcurrent
     70        @+${TEST_PY} --debug=${debug} -Iconcurrent
    6871
    69 .dummy : .dummy.c @CFA_BINDIR@/@CFA_NAME@
    70         ${CC} ${BUILD_FLAGS} -XCFA -n ${<} -o ${@}                              #don't use CFLAGS, this rule is not a real test
    71 
    72 
    73 % : %.c @CFA_BINDIR@/@CFA_NAME@
    74         ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} -o ${@}
     72% : ${srcdir}/%.c @CFA_BINDIR@/@CFA_NAME@
     73        $(COMPILE) $(abspath ${<}) -o ${@}
    7574
    7675declarationSpecifier: declarationSpecifier.c @CFA_BINDIR@/@CFA_NAME@
    77         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     76        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    7877
    7978gccExtensions : gccExtensions.c @CFA_BINDIR@/@CFA_NAME@
    80         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     79        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8180
    8281extension : extension.c @CFA_BINDIR@/@CFA_NAME@
    83         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     82        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8483
    8584attributes : attributes.c @CFA_BINDIR@/@CFA_NAME@
    86         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     85        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    8786
    8887functions: functions.c @CFA_BINDIR@/@CFA_NAME@
    89         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     88        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9089
    9190KRfunctions : KRfunctions.c @CFA_BINDIR@/@CFA_NAME@
    92         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     91        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9392
    9493sched-ext-parse : sched-ext-parse.c @CFA_BINDIR@/@CFA_NAME@
    95         ${CC} ${AM_CFLAGS} ${CFLAGS} -CFA -XCFA -p ${<} -o ${@}
     94        $(COMPILE) -CFA -XCFA -p $(abspath ${<}) -o ${@}
    9695
    9796gmp : gmp.c @CFA_BINDIR@/@CFA_NAME@
    98         ${CC} ${AM_CFLAGS} ${CFLAGS} -lgmp ${<} -o ${@}
     97        $(COMPILE) -lgmp $(abspath ${<}) -o ${@}
    9998
    10099completeTypeError : completeTypeError.c @CFA_BINDIR@/@CFA_NAME@
    101         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     100        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    102101
    103102typedefRedef-ERR1: typedefRedef.c @CFA_BINDIR@/@CFA_NAME@
    104         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     103        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    105104
    106105alloc-ERROR: alloc.c @CFA_BINDIR@/@CFA_NAME@
    107         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     106        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    108107
    109108fallthrough-ERROR: fallthrough.c @CFA_BINDIR@/@CFA_NAME@
    110         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     109        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    111110
    112111nested-types-ERR1: nested-types.c @CFA_BINDIR@/@CFA_NAME@
    113         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     112        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    114113
    115114nested-types-ERR2: nested-types.c @CFA_BINDIR@/@CFA_NAME@
    116         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<} -o ${@}
     115        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    117116
    118117# Constructor/destructor tests
    119118raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
    120         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     119        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    121120
    122121raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c @CFA_BINDIR@/@CFA_NAME@
    123         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR2 ${<} -o ${@}
     122        $(COMPILE) -DERR2 $(abspath ${<}) -o ${@}
    124123
    125124raii/memberCtors-ERR1: raii/memberCtors.c @CFA_BINDIR@/@CFA_NAME@
    126         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     125        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    127126
    128127raii/ctor-autogen-ERR1: raii/ctor-autogen.c @CFA_BINDIR@/@CFA_NAME@
    129         ${CC} ${AM_CFLAGS} ${CFLAGS} -DERR1 ${<} -o ${@}
     128        $(COMPILE) -DERR1 $(abspath ${<}) -o ${@}
    130129
    131130# Warnings
    132131warnings/self-assignment: warnings/self-assignment.c @CFA_BINDIR@/@CFA_NAME@
    133         ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} 2> ${@} -fsyntax-only
     132        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
    134133
    135134#builtins
    136135builtins/sync: builtins/sync.c @CFA_BINDIR@/@CFA_NAME@
    137         ${CC} ${AM_CFLAGS} ${CFLAGS} ${<} 2> ${@} -fsyntax-only
     136        $(COMPILE) $(abspath ${<}) 2> ${@} -fsyntax-only
Note: See TracChangeset for help on using the changeset viewer.