-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
33 lines (25 loc) · 871 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
.PHONY: clean install gen debug gc
BINDIR = build
default:
@mkdir -p $(BINDIR)
@cd $(BINDIR); cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_DIR=${PWD} ../; $(MAKE) -j --no-print-directory
debug:
@printf "DEBUG\n"
@mkdir -p $(BINDIR)
@cd $(BINDIR); cmake -DCMAKE_BUILD_TYPE=Debug -DBUILD_DIR=${PWD} ../; $(MAKE) -j --no-print-directory
src/bdwgc/.libs/libgc.a:
cd src/bdwgc; ./autogen.sh; ./configure --enable-cplusplus --disable-shared; $(MAKE) -j
gen:
@python3 tools/scripts/generate_binding_init.py
@python3 tools/scripts/generate_cedar_h.py
@python3 tools/scripts/generate_src_cmakelists.py
@python3 tools/scripts/generate_opcode_h.py
install:
cd $(BINDIR); make install
mkdir -p /usr/local/lib/cedar
@rm -rf /usr/local/lib/cedar
cp -r lib /usr/local/lib/cedar/
cp -r include/ /usr/local/include/
clean:
# cd src/bdwgc; make clean
rm -rf $(BINDIR)