forked from rdaly525/coreir
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (42 loc) · 676 Bytes
/
Makefile
File metadata and controls
51 lines (42 loc) · 676 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
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S), Linux)
TARGET = so
endif
ifeq ($(UNAME_S), Darwin)
TARGET = dylib
endif
all: install coreir
.PHONY: test
test: install
$(MAKE) -C tests
cd tests; ./run
.PHONY: pytest
pytest: py
cd tests
pytest;
.PHONY: py
py: install
pip install -e bindings/python
pip3 install -e bindings/python
.PHONY: install
install:
$(MAKE) -C src $(TARGET)
.PHONY: coreir
coreir: install
$(MAKE) -C src/binary -B
.PHONY: clean
clean:
rm -rf lib/*
rm -rf bin/*
-rm _*json
-rm _*fir
-rm _*v
$(MAKE) -C src clean
$(MAKE) -C tests clean
.PHONY: travis
travis:
$(MAKE) clean
$(MAKE) install
$(MAKE) test
$(MAKE) py
$(MAKE) pytest