-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 1014 Bytes
/
Makefile
File metadata and controls
51 lines (37 loc) · 1014 Bytes
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
43
44
45
46
47
48
49
50
51
GOARCH ?= amd64
GOOS ?= linux
GO ?= env GOOS=$(GOOS) GOARCH=$(GOARCH) go
BUILD ?= build
BUILDARCH ?= $(BUILD)/$(GOOS)-$(GOARCH)
default: all testing test
$(BUILD):
mkdir -p $(BUILD)
$(BUILDARCH):
mkdir -p $(BUILDARCH)
all: $(BUILD) gitdeps
env GOOS=darwin GOARCH=amd64 make binaries-all
env GOOS=linux GOARCH=amd64 make binaries-all
cd $(BUILD) && cmake ../ && make
install:
env GOOS=darwin GOARCH=amd64 make binaries-install
env GOOS=linux GOARCH=amd64 make binaries-install
test: all
cd $(BUILD) && make test
gitdeps:
simple-deps --config examples/simple/dependencies.sd
simple-deps --config examples/dma/dependencies.sd
testing: .PHONY
mkdir -p testing/build
cd testing/build && cmake ../
cd testing/build && make
clean:
rm -rf testing/build
rm -rf $(BUILD)
veryclean: clean
rm -rf gitdeps
binaries-install: binaries-all
cp $(BUILDARCH)/fkfs-read $(INSTALLDIR)
binaries-all: $(BUILDARCH) $(BUILDARCH)/fkfs-read
$(BUILDARCH)/fkfs-read: src/*.go
go build -o $@ $^
.PHONY: $(BUILD)