-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
42 lines (33 loc) · 874 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
SHELL=/usr/bin/env bash
FFI_PATH:=extern/filecoin-ffi/
FFI_DEPS:=.install-filcrypto
FFI_DEPS:=$(addprefix $(FFI_PATH),$(FFI_DEPS))
build/.filecoin-install: $(FFI_PATH)
$(MAKE) -C $(FFI_PATH) $(FFI_DEPS:$(FFI_PATH)%=%)
@touch $@
BUILD_DEPS+=build/.filecoin-install
BINS:=
CLEAN:=
CLEAN+=build/.filecoin-install
all: sao-ds sao-monitor sao-procnode
.PHONY: all
GOCC?=go
sao-ds: $(BUILD_DEPS)
rm -rf sao-ds
$(GOCC) build -ldflags="-extldflags=-Wl,--allow-multiple-definition" -o sao-ds ./cmd/ds
.PHONY: sao-ds
BINS+=sao-ds
sao-monitor: $(BUILD_DEPS)
rm -rf sao-monitor
$(GOCC) build -o sao-monitor ./cmd/monitor
.PHONY: sao-monitor
BINS+=sao-monitor
sao-procnode: $(BUILD_DEPS)
rm -rf sao-procnode
$(GOCC) build -o sao-procnode ./cmd/procnode
.PHONY: sao-procnode
BINS+=sao-procnode
clean:
rm -rf $(CLEAN) $(BINS)
-$(MAKE) -C $(FFI_PATH) clean
.PHONY: clean