2018-06-05 20:53:08 +00:00
|
|
|
|
2018-06-06 14:42:39 +00:00
|
|
|
GO ?= go
|
|
|
|
SOURCE_FILES := \
|
|
|
|
$(wildcard *.go) \
|
|
|
|
$(wildcard walker/*.go) \
|
|
|
|
$(wildcard walker/walkers/*/*.go)
|
|
|
|
PLUGINS := \
|
2018-06-06 16:29:33 +00:00
|
|
|
$(patsubst walker/walkers/%/plugin.go,plugin-%.so,$(wildcard walker/walkers/*/plugin.go))
|
2018-06-05 20:53:08 +00:00
|
|
|
|
2018-06-06 16:29:33 +00:00
|
|
|
default: fuzz-walker
|
|
|
|
|
2018-06-06 17:01:14 +00:00
|
|
|
container: fuzz-walker build.sh
|
|
|
|
sudo bash build.sh
|
|
|
|
|
2018-06-06 16:29:33 +00:00
|
|
|
plugins: $(PLUGINS)
|
2018-06-05 20:53:08 +00:00
|
|
|
|
|
|
|
fuzz-walker: $(wildcard *.go)
|
|
|
|
$(GO) build -o $@ .
|
|
|
|
|
2018-06-06 14:42:39 +00:00
|
|
|
plugin-%.so:
|
|
|
|
$(GO) build -o $@ -buildmode=plugin ./walker/walkers/$*/
|
|
|
|
|
2018-06-05 20:53:08 +00:00
|
|
|
clean:
|
2018-06-06 15:21:08 +00:00
|
|
|
rm -f fuzz-walker *.so *~
|