Blame contributed/makefile

Packit Service bd74e6
Packit Service bd74e6
ONIG_LIB=../src/.libs/libonig.a
Packit Service bd74e6
LIBS=$(ONIG_LIB) /usr/local/lib/libLLVMFuzzerMain.a
Packit Service bd74e6
Packit Service bd74e6
TARGETS=libfuzzer-onig libfuzzer-onig-full
Packit Service bd74e6
Packit Service bd74e6
default: $(TARGETS)
Packit Service bd74e6
Packit Service bd74e6
libfuzzer-onig: libfuzzer-onig.cpp $(ONIG_LIB)
Packit Service bd74e6
	clang++ $< $(LIBS) -o $@ -fsanitize-coverage=trace-pc-guard -fsanitize=fuzzer,address
Packit Service bd74e6
Packit Service bd74e6
libfuzzer-onig-full: libfuzzer-onig.cpp $(ONIG_LIB)
Packit Service bd74e6
	clang++ -DFULL_TEST $< $(LIBS) -o $@ -fsanitize-coverage=trace-pc-guard -fsanitize=fuzzer,address
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
$(ONIG_LIB):
Packit Service bd74e6
	cd ..; ./configure CC=clang LD=clang CFLAGS="-g -fsanitize=fuzzer,address" LDFLAGS="-fsanitize-coverage=trace-pc-guard -fsanitize=fuzzer,address"; make
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
clean: 
Packit Service bd74e6
	rm -f $(TARGETS)