diff options
author | hexcoder- <heiko@hexco.de> | 2019-09-26 00:21:50 +0200 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2019-09-26 00:21:50 +0200 |
commit | e63c9ec05e34c3cf1e32c319ba295e8e5facf41d (patch) | |
tree | 2c5b507bc49c7f4c289b7af38ea5f50cb14a7bfa | |
parent | 4936322dbc9ec4ac432a7d16409b603e78fd748c (diff) | |
download | afl++-e63c9ec05e34c3cf1e32c319ba295e8e5facf41d.tar.gz |
build linux-specific libtokencap only when compiling in Linux
-rw-r--r-- | libtokencap/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libtokencap/Makefile b/libtokencap/Makefile index 0faad511..3fd01b2c 100644 --- a/libtokencap/Makefile +++ b/libtokencap/Makefile @@ -21,7 +21,10 @@ 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 -all: libtokencap.so +ifeq "$(shell uname)" "Linux" + TARGETS = libtokencap.so +endif +all: $(TARGETS) libtokencap.so: libtokencap.so.c ../config.h $(CC) $(CFLAGS) -shared -fPIC $< -o ../$@ $(LDFLAGS) |