OLD | NEW |
(Empty) | |
| 1 # |
| 2 # american fuzzy lop - libdislocator |
| 3 # ---------------------------------- |
| 4 # |
| 5 # Written by Michal Zalewski <lcamtuf@google.com> |
| 6 # |
| 7 # Copyright 2016 Google Inc. All rights reserved. |
| 8 # |
| 9 # Licensed under the Apache License, Version 2.0 (the "License"); |
| 10 # you may not use this file except in compliance with the License. |
| 11 # You may obtain a copy of the License at: |
| 12 # |
| 13 # http://www.apache.org/licenses/LICENSE-2.0 |
| 14 # |
| 15 |
| 16 PREFIX ?= /usr/local |
| 17 HELPER_PATH = $(PREFIX)/lib/afl |
| 18 |
| 19 VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2) |
| 20 |
| 21 CFLAGS ?= -O3 -funroll-loops |
| 22 CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign |
| 23 |
| 24 all: libdislocator.so |
| 25 |
| 26 libdislocator.so: libdislocator.so.c ../config.h |
| 27 $(CC) $(CFLAGS) -shared -fPIC $< -o $@ $(LDFLAGS) |
| 28 |
| 29 .NOTPARALLEL: clean |
| 30 |
| 31 clean: |
| 32 rm -f *.o *.so *~ a.out core core.[1-9][0-9]* |
| 33 rm -f libdislocator.so |
| 34 |
| 35 install: all |
| 36 install -m 755 libdislocator.so $${DESTDIR}$(HELPER_PATH) |
| 37 install -m 644 README.dislocator $${DESTDIR}$(HELPER_PATH) |
| 38 |
OLD | NEW |