Changeset 107b01a for tests/Makefile.am


Ignore:
Timestamp:
Dec 19, 2018, 1:47:03 PM (3 years ago)
Author:
Thierry Delisle <tdelisle@…>
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:
84b4d607
Parents:
a2dbcff1
Message:

Several changes to the makefiles

  • change .c tests to .cfa
  • add require for libtool in configure
  • libtoolize to fix some warnings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • tests/Makefile.am

    ra2dbcff1 r107b01a  
    1616
    1717AUTOMAKE_OPTIONS = foreign    # do not require all the GNU file names
     18ACLOCAL_AMFLAGS  = -I automake
    1819
    1920include $(top_srcdir)/src/cfa.make
     
    4445.PHONY: list .validate
    4546.INTERMEDIATE: .validate .validate.cfa
    46 EXTRA_PROGRAMS = avl_test # build but do not install
     47EXTRA_PROGRAMS = avl_test .dummy_hack # build but do not install
    4748
    48 avl_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
     49avl_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
    4952
    5053#----------------------------------------------------------------------------------------------------------------
     
    6770        @echo "int main() { return 0; }" > ${@}
    6871
    69 dummy_hack.c:
     72# automake doesn't know we still need C rules so pretend like we have a C program
     73.dummy_hack.c:
    7074        @echo "int main() { return 0; }" > ${@}
    7175
     
    7680
    7781# implicit rule so not all test require a rule
    78 % : %.c $(CFACC)
    79         $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    80 
    8182% : %.cfa $(CFACC)
    8283        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
     
    107108
    108109#builtins
    109 builtins/sync: builtins/sync.c $(CFACC)
     110builtins/sync: builtins/sync.cfa $(CFACC)
    110111        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
    111112
     
    132133
    133134# Constructor/destructor tests
    134 raii/dtor-early-exit-ERR1: raii/dtor-early-exit.c $(CFACC)
     135raii/dtor-early-exit-ERR1: raii/dtor-early-exit.cfa $(CFACC)
    135136        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    136137
    137 raii/dtor-early-exit-ERR2: raii/dtor-early-exit.c $(CFACC)
     138raii/dtor-early-exit-ERR2: raii/dtor-early-exit.cfa $(CFACC)
    138139        $(PRETTY_PATH) $(CFACOMPILE) -DERR2 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    139140
    140 raii/memberCtors-ERR1: raii/memberCtors.c $(CFACC)
     141raii/memberCtors-ERR1: raii/memberCtors.cfa $(CFACC)
    141142        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    142143
    143 raii/ctor-autogen-ERR1: raii/ctor-autogen.c $(CFACC)
     144raii/ctor-autogen-ERR1: raii/ctor-autogen.cfa $(CFACC)
    144145        $(PRETTY_PATH) $(CFACOMPILE) -DERR1 $(shell realpath --relative-to=${srcdir} ${<}) -o $(abspath ${@})
    145146
    146147# Warnings
    147 warnings/self-assignment: warnings/self-assignment.c $(CFACC)
     148warnings/self-assignment: warnings/self-assignment.cfa $(CFACC)
    148149        $(PRETTY_PATH) $(CFACOMPILE) $(shell realpath --relative-to=${srcdir} ${<}) 2> $(abspath ${@}) -fsyntax-only
Note: See TracChangeset for help on using the changeset viewer.