diff options
| author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-03 13:11:10 +0100 |
|---|---|---|
| committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2020-02-03 13:11:10 +0100 |
| commit | 2fe7889912c9bb340f302a037585b7b1836ac94f (patch) | |
| tree | 5c3e4e5829f45dce46794ebc2681732738d689fe /examples/socket_fuzzing/Makefile | |
| parent | e2eedefc65bec1a04605f117a11ca8bdf9d80323 (diff) | |
| download | afl++-2fe7889912c9bb340f302a037585b7b1836ac94f.tar.gz | |
move custom and pythoon mutators examples into examples/
Diffstat (limited to 'examples/socket_fuzzing/Makefile')
| -rw-r--r-- | examples/socket_fuzzing/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/examples/socket_fuzzing/Makefile b/examples/socket_fuzzing/Makefile new file mode 100644 index 00000000..0191ba53 --- /dev/null +++ b/examples/socket_fuzzing/Makefile @@ -0,0 +1,39 @@ +# +# american fuzzy lop++ - socket_fuzz +# ---------------------------------- +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at: +# +# http://www.apache.org/licenses/LICENSE-2.0 +# + +.PHONY: all install clean + +PREFIX ?= /usr/local +BIN_PATH = $(PREFIX)/bin +HELPER_PATH = $(PREFIX)/lib/afl + +CFLAGS = -fPIC -Wall -Wextra +LDFLAGS = -shared + +ifneq "$(filter Linux GNU%,$(shell uname))" "" + LDFLAGS += -ldl +endif + +all: socketfuzz32.so socketfuzz64.so + +socketfuzz32.so: socketfuzz.c + -$(CC) -m32 $(CFLAGS) $^ $(LDFLAGS) -o $@ || echo "socketfuzz32 build failure (that's fine)" + +socketfuzz64.so: socketfuzz.c + -$(CC) $(CFLAGS) $^ $(LDFLAGS) -o $@ + +install: socketfuzz32.so socketfuzz64.so + install -d -m 755 $(DESTDIR)$(HELPER_PATH)/ + if [ -f socketfuzz32.so ]; then set -e; install -m 755 socketfuzz32.so $(DESTDIR)$(HELPER_PATH)/; fi + install -m 755 socketfuzz64.so $(DESTDIR)$(HELPER_PATH)/ + +clean: + rm -f socketfuzz32.so socketfuzz64.so |
