-
Notifications
You must be signed in to change notification settings - Fork 24
/
Makefile
53 lines (46 loc) · 1.12 KB
/
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
43
44
45
46
47
48
49
50
51
52
53
CXXFLAGS = -std=c++17 -Wall -fPIC -Werror
export CXX
export CFLAGS
export CXXFLAGS
.PHONY: test
test:
$(MAKE) -C tests
cd tests; ./run
$(MAKE) -C tutorial/hellocounter
cd tutorial/hellocounter; ./run
installtest:
coreir -i examples/counters.json -p "rungenerators; flatten; verifyconnectivity --onlyinputs"
#.PHONY: uninstall
#uninstall:
# -rm $(prefix)/bin/coreir
# -rm $(prefix)/lib/libcoreir.*
# -rm $(prefix)/lib/libcoreir-*
# -rm $(prefix)/include/coreir.h
# -rm $(prefix)/include/coreirsim.h
# -rm -r $(prefix)/include/coreir
# -rm -r $(prefix)/include/coreir-c
.PHONY: testclean
testclean:
$(MAKE) -C tests clean
.PHONY: release
release:
-rm -rf release/include release/lib release/bin
#$(MAKE) -C src so
#$(MAKE) -C src dylib
cp -r include release/.
cp -r lib release/.
cp -r bin release/.
tar -zcvf coreir.tar.gz release
.PHONY: travis
travis:
export COREIR=
export DYLD_LIBRARY_PATH=
$(MAKE) clean
-sudo $(MAKE) uninstall
$(MAKE) build
sudo $(MAKE) install
$(MAKE) installtest
sudo $(MAKE) uninstall
export COREIR=/Users/rdaly/coreir
export DYLD_LIBRARY_PATH=$$DYLD_LIBRARY_PATH:$$COREIR/lib
$(MAKE) test