fuzz-walker/Makefile
Vincent Batts ae652ba149
container build needs to be fully static
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
2018-06-06 13:04:40 -04:00

24 lines
503 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
container: fuzz-walker build.sh
sudo bash build.sh
plugins: $(PLUGINS)
fuzz-walker: $(wildcard *.go)
$(GO) build --ldflags '-extldflags "-static"' -o $@ .
plugin-%.so:
$(GO) build -o $@ -buildmode=plugin ./walker/walkers/$*/
clean:
rm -f fuzz-walker *.so *~