summaryrefslogblamecommitdiff
path: root/test/Makefile
blob: 0a2eb36848a32d74987e3f988be8c6991c91806e (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                 
                          




                                        
                                                                                        
 
                               

                    




                                     


                                                  

           
                                                       
.PHONY: test1 test2 crashtest1 all allcrash clean
.NOTPARALLEL: all allcrash

CC := gcc-5
CXX := g++-5

PLUGIN = ../build/src/.libs/astdumper.so
CMD = ${CXX} -fplugin=${PLUGIN} -fplugin-arg-astdumper-command=${1} ${2} -o a.out 2>${3}

all: test1 test2 allcrash clean

allcrash: crashtest1

clean:
	@rm a.out 2>/dev/null || true

test1:
	$(call CMD,dump,test1.c,test1-01.txt)
test2:
	$(call CMD,smalldump,test1.c,test1-02.txt)

crashtest1:
	$(call CMD,dump,crashtest1.h,crashtest1-01.txt)