fuzz-walker/Makefile
Vincent Batts 66e91e3ddf
default to compile in, but also allow plugins
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-06-06 12:29:33 -04:00

21 lines
416 B
Makefile

GO ?= go
SOURCE_FILES := \
$(wildcard *.go) \
$(wildcard walker/*.go) \
$(wildcard walker/walkers/*/*.go)
PLUGINS := \
$(patsubst walker/walkers/%/plugin.go,plugin-%.so,$(wildcard walker/walkers/*/plugin.go))
default: fuzz-walker
plugins: $(PLUGINS)
fuzz-walker: $(wildcard *.go)
$(GO) build -o $@ .
plugin-%.so:
$(GO) build -o $@ -buildmode=plugin ./walker/walkers/$*/
clean:
rm -f fuzz-walker *.so *~