aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorAndrey Konovalov <andreyknvl@google.com>2015-10-12 17:15:57 +0200
committerAndrey Konovalov <andreyknvl@google.com>2015-10-13 15:31:56 +0200
commit87a42c4dc364d5cf94187b1ff7488b74709372bf (patch)
tree06e2f2c560953e726685d3f6188a5ff3ea815dea /Makefile
parent69de147243c2575dc297db78f80875bf11dff746 (diff)
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..54a33bd7f
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,28 @@
+# Copyright 2015 syzkaller project authors. All rights reserved.
+# Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
+
+.PHONY: all bin format clean master manager fuzzer executor
+
+all: master manager fuzzer executor
+
+bin:
+ mkdir -p bin
+
+master: bin
+ go build -o ./bin/master github.com/google/syzkaller/master
+
+manager: bin
+ go build -o ./bin/manager github.com/google/syzkaller/manager
+
+fuzzer: bin
+ go build -o ./bin/fuzzer github.com/google/syzkaller/fuzzer
+
+executor: bin
+ gcc executor/executor.cc -o ./bin/executor -lpthread -static -Wall -O1 -g
+
+format:
+ find . -name "*.go" | xargs -n 1 go fmt
+ clang-format --style=file -i executor/executor.cc
+
+clean:
+ rm -rf ./bin/