Changeset 7009b9b for tests/Makefile.am
- Timestamp:
- Sep 12, 2019, 3:56:27 PM (5 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 15f9c8e
- Parents:
- 31d8f4d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/Makefile.am
r31d8f4d r7009b9b 89 89 90 90 # Use for all tests, make sure the path are correct and all flags are added 91 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) -c$(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g'))91 CFACOMPILETEST=$(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) $($(shell echo "${@}_FLAGS" | sed 's/-\|\//_/g')) 92 92 93 93 # Use for tests that either generate an executable, print directly to stdout or the make command is expected to fail … … 99 99 #---------------------------------------------------------------------------------------------------------------- 100 100 101 is_ascii = $(shell file ) 102 101 103 # implicit rule so not all test require a rule 102 104 % : %.cfa $(CFACCBIN) 103 $(CFACOMPILETEST) - o $(abspath ${@}).o105 $(CFACOMPILETEST) -c -o $(abspath ${@}).o 104 106 $(CFACC) $(abspath ${@}).o -o $(abspath ${@}) 105 107 108 # @ if [[ "$(shell file $(abspath ${@}).o)" == *"ASCII text"* ]]; then echo "mv $(abspath ${@}).o $(abspath ${@})"; mv $(abspath ${@}).o $(abspath ${@}); else echo "$(CFACC) $(abspath ${@}).o -o $(abspath ${@});"; $(CFACC) $(abspath ${@}).o -o $(abspath ${@}); fi 109 110 declarationSpecifier gccExtensions extension attributes functions KRfunctions : % : %.cfa $(CFACCBIN) 111 $(CFACOMPILETEST) -CFA -XCFA -p -o $(abspath ${@}).o 112 mv $(abspath ${@}).o $(abspath ${@}) 106 113 107 114 % : %.cpp
Note: See TracChangeset
for help on using the changeset viewer.