about summary refs log tree commit diff
path: root/examples/argv_fuzzing/GNUmakefile
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-04-08 10:44:42 +0200
committervan Hauser <vh@thc.org>2020-04-09 10:23:37 +0200
commit6688184bfde767ddd3ea430dcce88762368ff55c (patch)
treeb5b13ada74fdeea2d58ef3bdba7920f67d662dcf /examples/argv_fuzzing/GNUmakefile
parent84a4fd40a083852ef893b8d8abdfbb1944daef19 (diff)
downloadafl++-6688184bfde767ddd3ea430dcce88762368ff55c.tar.gz
argv_fuzzing Makefile: portable version
Diffstat (limited to 'examples/argv_fuzzing/GNUmakefile')
-rw-r--r--examples/argv_fuzzing/GNUmakefile51
1 files changed, 0 insertions, 51 deletions
diff --git a/examples/argv_fuzzing/GNUmakefile b/examples/argv_fuzzing/GNUmakefile
deleted file mode 100644
index 34192e39..00000000
--- a/examples/argv_fuzzing/GNUmakefile
+++ /dev/null
@@ -1,51 +0,0 @@
-#
-# american fuzzy lop++ - argvfuzz
-# --------------------------------
-#
-# Copyright 2019-2020 Kjell Braden <afflux@pentabarf.de>
-#
-# 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
-
-# on gcc for arm there is no -m32, but -mbe32
-M32FLAG = -m32
-M64FLAG = -m64
-ifeq "$(findstring clang, $(shell $(CC) --version 2>/dev/null))" ""
- ifneq (,$(findstring arm, "$(shell $(CC) -v 2>&1 >/dev/null)"))
-  M32FLAG = -mbe32
- endif
-endif
-
-
-all: argvfuzz32.so argvfuzz64.so
-
-argvfuzz32.so: argvfuzz.c
-	-$(CC) $(M32FLAG) $(CFLAGS) $^ $(LDFLAGS) -o $@ || echo "argvfuzz32 build failure (that's fine)"
-
-argvfuzz64.so: argvfuzz.c
-	-$(CC) $(M64FLAG) $(CFLAGS) $^ $(LDFLAGS) -o $@ || echo "argvfuzz64 build failure (that's fine)"
-
-install: argvfuzz32.so argvfuzz64.so
-	install -d -m 755 $(DESTDIR)$(HELPER_PATH)/
-	if [ -f argvfuzz32.so ]; then set -e; install -m 755 argvfuzz32.so $(DESTDIR)$(HELPER_PATH)/; fi
-	if [ -f argvfuzz64.so ]; then set -e; install -m 755 argvfuzz64.so $(DESTDIR)$(HELPER_PATH)/; fi
-
-clean:
-	rm -f argvfuzz32.so argvfuzz64.so