Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    r107b01a r3d99498  
    1616
    1717AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
    18 ACLOCAL_AMFLAGS  = -I automake
    1918
    2019include $(top_srcdir)/src/cfa.make
     
    4544.PHONY: list .validate
    4645.INTERMEDIATE: .validate .validate.cfa
    47 EXTRA_PROGRAMS = avl_test .dummy_hack # build but do not install
     46EXTRA_PROGRAMS = avl_test # build but do not install
    4847
    49 avl_test_SOURCES = avltree/avl_test.cfa avltree/avl0.cfa avltree/avl1.cfa avltree/avl2.cfa avltree/avl3.cfa avltree/avl4.cfa avltree/avl-private.cfa
    50 # automake doesn't know we still need C rules so pretend like we have a C program
    51 _dummy_hack_SOURCES = .dummy_hack.c
     48avl_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
    5249
    5350#----------------------------------------------------------------------------------------------------------------
     
    7067        @echo "int main() { return 0; }" > ${@}
    7168
    72 # automake doesn't know we still need C rules so pretend like we have a C program
    73 .dummy_hack.c:
     69dummy_hack.c:
    7470        @echo "int main() { return 0; }" > ${@}
    7571
     
    8076
    8177# implicit rule so not all test require a rule
     78% : %.c $(CFACC)
     79        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     80
    8281% : %.cfa $(CFACC)
    8382        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     
    108107
    109108#builtins
    110 builtins/sync: builtins/sync.cfa $(CFACC)
     109builtins/sync: builtins/sync.c $(CFACC)
    111110        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
    112111
     
    133132
    134133# Constructor/destructor tests
    135 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC)
     134raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CFACC)
    136135        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    137136
    138 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC)
     137raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CFACC)
    139138        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    140139
    141 raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC)
     140raii/memberCtors-ERR1: raii/memberCtors.c $(CFACC)
    142141        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    143142
    144 raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC)
     143raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CFACC)
    145144        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    146145
    147146# Warnings
    148 warnings/self-assignment: warnings/self-assignment.cfa $(CFACC)
     147warnings/self-assignment: warnings/self-assignment.c $(CFACC)
    149148        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note: See TracChangeset for help on using the changeset viewer.