switching to plugins

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2018-06-06 10:42:39 -04:00
parent 339b6145f9
commit 0f0ce2af37
Signed by: vbatts
GPG key ID: 10937E57733F1362
5 changed files with 70 additions and 42 deletions

View file

@ -1,10 +1,19 @@
GO := go
GO ?= go
SOURCE_FILES := \
$(wildcard *.go) \
$(wildcard walker/*.go) \
$(wildcard walker/walkers/*/*.go)
PLUGINS := \
plugin-readFuzz.so
default: fuzz-walker
default: fuzz-walker $(PLUGINS)
fuzz-walker: $(wildcard *.go)
$(GO) build -o $@ .
plugin-%.so:
$(GO) build -o $@ -buildmode=plugin ./walker/walkers/$*/
clean:
rm -f fuzz-walker
rm -f fuzz-walker *.so