diff options
| author | hexcoder- <heiko@hexco.de> | 2019-12-10 07:23:58 +0100 |
|---|---|---|
| committer | hexcoder- <heiko@hexco.de> | 2019-12-10 07:23:58 +0100 |
| commit | 22452da2a7bdb0bb1e3def69f218050b4ca601ec (patch) | |
| tree | 7d50231398fbc5dbdd38995972631881437b4e61 | |
| parent | cd165b18f0fd5d68530ba115b48879ad198f7934 (diff) | |
| download | afl++-22452da2a7bdb0bb1e3def69f218050b4ca601ec.tar.gz | |
fix libtokencap Makefile for NetBSD, add VPATH to avoid rebuilding
the lib on every make.
| -rw-r--r-- | libtokencap/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/libtokencap/Makefile b/libtokencap/Makefile index 486c6c9e..97bbd2f5 100644 --- a/libtokencap/Makefile +++ b/libtokencap/Makefile @@ -20,28 +20,33 @@ VERSION = $(shell grep '^\#define VERSION ' ../config.h | cut -d '"' -f2) CFLAGS ?= -O3 -funroll-loops -I ../include/ CFLAGS += -Wall -D_FORTIFY_SOURCE=2 -g -Wno-pointer-sign -LDFLAGS += -ldl ifeq "$(shell uname)" "Linux" TARGETS = libtokencap.so + LDFLAGS += -ldl endif ifeq "$(shell uname)" "Darwin" TARGETS = libtokencap.so + LDFLAGS += -ldl endif ifeq "$(shell uname)" "FreeBSD" TARGETS = libtokencap.so + LDFLAGS += -ldl endif ifeq "$(shell uname)" "OpenBSD" TARGETS = libtokencap.so + LDFLAGS += -ldl endif ifeq "$(shell uname)" "NetBSD" TARGETS = libtokencap.so endif ifeq "$(shell uname)" "DragonFly" TARGETS = libtokencap.so + LDFLAGS += -ldl endif all: $(TARGETS) +VPATH = .. libtokencap.so: libtokencap.so.c ../config.h $(CC) $(CFLAGS) -shared -fPIC $< -o ../$@ $(LDFLAGS) |
