Changeset 1e995d6 for tests/Makefile.am


Ignore:
Timestamp:
Nov 16, 2018, 4:01:14 PM (3 years ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, no_list, persistent-indexer
Children:
3d99498
Parents:
80228a7
Message:

fix cfa-suffix problem in build

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r80228a7 r1e995d6  
    1111## Created On       : Sun May 31 09:08:15 2015
    1212## Last Modified By : Peter A. Buhr
    13 ## Last Modified On : Wed Nov  7 12:03:29 2018
    14 ## Update Count     : 59
     13## Last Modified On : Fri Nov 16 15:29:54 2018
     14## Update Count     : 65
    1515###############################################################################
    1616
     
    3838
    3939AM_CFLAGS += ${DEBUG_FLAGS} ${INSTALL_FLAGS} ${ARCH_FLAGS}
    40 
    4140CC = @CFACC@
    4241
     
    4443
    4544.PHONY: list .validate
    46 .INTERMEDIATE: .validate .validate.c
     45.INTERMEDIATE: .validate .validate.cfa
    4746EXTRA_PROGRAMS = fstream_test avl_test # build but do not install
    4847
     
    6463        @+${TEST_PY} --list ${concurrent}
    6564
    66 .validate: .validate.c
    67         $(COMPILE) .validate.c -fsyntax-only -Wall -Wextra -Werror
     65.validate: .validate.cfa
     66        $(CFACOMPILE) .validate.cfa -fsyntax-only -Wall -Wextra -Werror
    6867
    69 .validate.c:
     68.validate.cfa:
     69        @echo "int main() { return 0; }" > ${@}
     70
     71dummy_hack.c:
    7072        @echo "int main() { return 0; }" > ${@}
    7173
     
    7678
    7779# implicit rule so not all test require a rule
    78 % : %.c $(CC)
    79         $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     80% : %.c $(CFACC)
     81        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    8082
    81 declarationSpecifier: declarationSpecifier.cfa $(CC)
    82         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     83% : %.cfa $(CFACC)
     84        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    8385
    84 gccExtensions : gccExtensions.cfa $(CC)
    85         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     86declarationSpecifier: declarationSpecifier.cfa $(CFACC)
     87        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    8688
    87 extension : extension.cfa $(CC)
    88         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     89gccExtensions : gccExtensions.cfa $(CFACC)
     90        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    8991
    90 attributes : attributes.cfa $(CC)
    91         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     92extension : extension.cfa $(CFACC)
     93        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    9294
    93 functions: functions.cfa $(CC)
    94         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     95attributes : attributes.cfa $(CFACC)
     96        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    9597
    96 KRfunctions : KRfunctions.cfa $(CC)
    97         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     98functions: functions.cfa $(CFACC)
     99        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    98100
    99 sched-ext-parse : sched-ext-parse.c $(CC)
    100         $(PRETTY_PATH) $(COMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     101KRfunctions : KRfunctions.cfa $(CFACC)
     102        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    101103
    102 gmp : gmp.cfa $(CC)
    103         $(PRETTY_PATH) $(COMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     104sched-ext-parse : sched-ext-parse.c $(CFACC)
     105        $(PRETTY_PATH) $(CFACOMPILE) -CFA -XCFA -p $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     106
     107gmp : gmp.cfa $(CFACC)
     108        $(PRETTY_PATH) $(CFACOMPILE) -lgmp $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    104109
    105110#builtins
    106 builtins/sync: builtins/sync.c $(CC)
    107         $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
     111builtins/sync: builtins/sync.c $(CFACC)
     112        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
    108113
    109114#------------------------------------------------------------------------------
    110115
    111116#To make errors path independent we need to cd into the correct directories
    112 completeTypeError : completeTypeError.cfa $(CC)
    113         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     117completeTypeError : completeTypeError.cfa $(CFACC)
     118        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    114119
    115 typedefRedef-ERR1: typedefRedef.cfa $(CC)
    116         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     120typedefRedef-ERR1: typedefRedef.cfa $(CFACC)
     121        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    117122
    118 alloc-ERROR: alloc.cfa $(CC)
    119         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     123alloc-ERROR: alloc.cfa $(CFACC)
     124        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    120125
    121 fallthrough-ERROR: fallthrough.cfa $(CC)
    122         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     126fallthrough-ERROR: fallthrough.cfa $(CFACC)
     127        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    123128
    124 nested-types-ERR1: nested-types.cfa $(CC)
    125         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     129nested-types-ERR1: nested-types.cfa $(CFACC)
     130        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    126131
    127 nested-types-ERR2: nested-types.cfa $(CC)
    128         $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     132nested-types-ERR2: nested-types.cfa $(CFACC)
     133        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    129134
    130135# Constructor/destructor tests
    131 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CC)
    132         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     136raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CFACC)
     137        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    133138
    134 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CC)
    135         $(PRETTY_PATH) $(COMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     139raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CFACC)
     140        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    136141
    137 raii/memberCtors-ERR1: raii/memberCtors.c $(CC)
    138         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     142raii/memberCtors-ERR1: raii/memberCtors.c $(CFACC)
     143        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    139144
    140 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CC)
    141         $(PRETTY_PATH) $(COMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     145raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CFACC)
     146        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    142147
    143148# Warnings
    144 warnings/self-assignment: warnings/self-assignment.c $(CC)
    145         $(PRETTY_PATH) $(COMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
     149warnings/self-assignment: warnings/self-assignment.c $(CFACC)
     150        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note: See TracChangeset for help on using the changeset viewer.