CC=clang CFLAGS=-fsanitize=undefined .PHONY: clean all all: example1 example2 example3 example4 example5 example6 example7 # division by zero example1: example1.c ${CC} ${CFLAGS} -o $@ $^ # oversized shift example2: example2.c ${CC} ${CFLAGS} -o $@ $^ # signed integer overflow example3: example3.c ${CC} ${CFLAGS} -o $@ $^ # out-of-bounds pointer example4: example4.c ${CC} ${CFLAGS} -o $@ $^ # null pointer dereference example5: example5.c ${CC} ${CFLAGS} -o $@ $^ # type punned pointer dereference example6: example6.c ${CC} ${CFLAGS} -o $@ $^ # uninitialized read example7: example7.c ${CC} ${CFLAGS} -o $@ $^ clean: rm -f example1 example2 example3 example4 example5 example6 example7