1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/security/afl++/files/Makefile.extra

27 lines
842 B
Makefile

.PHONY: gcc_plugin install-strip libdislocator libtokencap llvm_mode test_gcc_plugin test_llvm_mode
install-strip: install
@cd ${DESTDIR}${BIN_PATH} && ${STRIP_CMD} ${PROGS}
@-${STRIP_CMD} ${DESTDIR}${BIN_PATH}/afl-clang-fast
@-${STRIP_CMD} ${DESTDIR}${BIN_PATH}/afl-gcc-fast
# XXX: strip(1) trips up when stripping all things in HELPER_PATH in one go?
@cd ${DESTDIR}${HELPER_PATH} && for f in afl-as afl-ld *.so; do ${STRIP_CMD} $${f}; done
libdislocator:
$(MAKE) -C libdislocator CFLAGS="-I../include ${CFLAGS}"
libtokencap:
$(MAKE) -C libtokencap
llvm_mode:
$(MAKE) -C llvm_mode AFL_REAL_LD="$(_AFL_REAL_LD)"
test_llvm_mode:
$(MAKE) -C llvm_mode AFL_REAL_LD="$(_AFL_REAL_LD)" test_build
gcc_plugin:
$(MAKE) -C gcc_plugin CC="${GCC}" CXX="${GXX}"
test_gcc_plugin:
$(MAKE) -C gcc_plugin CC="${GCC}" CXX="${GXX}" test_build