-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·55 lines (46 loc) · 1.32 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
54
include config
.PHONY: compiler tools clean doc install
all: compiler tools #doc
compiler:
dune build src/main.exe
dune build src/main.bc
tools:
dune build tools/pi2hcl/main.exe
dune build tools/pi2hcl/main.bc
doc:
(cd src; make doc)
pandoc -o CHANGELOG.html CHANGELOG.md
pandoc -o README.html README.md
clean:
(cd tools/pi2hcl; make clean)
(cd src; make clean)
(cd lib; make clean)
(cd examples; make clean)
clobber:
(cd tools/pi2hcl; make clobber)
(cd src; make clobber)
(cd lib; make clobber)
(cd examples; make clobber)
\rm -f *~
install:
cp ./config ./lib/etc
mkdir -p $(INSTALL_LIBDIR)
cp -r lib/hocl $(INSTALL_LIBDIR)
mkdir -p $(INSTALL_LIBDIR)/etc
cat ./platform ./lib/etc/Makefile.templ > $(INSTALL_LIBDIR)/etc/Makefile.app
cp $(INSTALL_LIBDIR)/etc/Makefile.app ./lib/etc
cp -r lib/systemc $(INSTALL_LIBDIR)
cp -r lib/preesm $(INSTALL_LIBDIR)
mkdir -p $(INSTALL_BINDIR)
#ifeq ($(BUILD_NATIVE),yes)
cp _build/default/src/main.exe $(INSTALL_BINDIR)/hoclc
cp _build/default/tools/pi2hcl/main.exe $(INSTALL_BINDIR)/pi2hcl
# else
# cp _build/default/src/main.bc $(INSTALL_BINDIR)/hoclc
# cp _build/default/tools/pi2hcl/main.bc $(INSTALL_BINDIR)/pi2hcl
# endif
# ifeq ($(BUILD_DOC),yes)
# mkdir -p $(INSTALL_DOCDIR)
# cp doc/grammar.html $(INSTALL_DOCDIR)
# cp doc/tutorial.pdf $(INSTALL_DOCDIR)
# endif