aboutsummaryrefslogblamecommitdiff
path: root/test/Makefile
blob: 209a7cdb776b728dd97b308b5418ea33b275cc1d (plain) (tree)
1
2
3
4
5




                                    









                                                  


                      


                     
                            
# Copyright (c) 2020 Johannes Stoelp

check: build
	./checker

build: checker.cc test_helper.h ../lib/libcommon.a
	g++ -o checker                  \
	    -g -O2                      \
	    -I ../lib/include           \
	    -Wall -Wextra               \
	    -fsanitize=address          \
	    -fsanitize=pointer-compare  \
	    -fsanitize=pointer-subtract \
	    -fsanitize=undefined        \
	    $(filter-out %.h, $^)

../lib/libcommon.a:
	make -C ../lib

clean:
	rm -f checker
	make -C ../lib clean