-
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
41 lines (31 loc) · 823 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
34
35
36
37
38
39
40
41
PREFIX?=/usr/local
INSTALL_DIR=$(PREFIX)/include/xbyak_riscv
all:
# $(MAKE) -C sample
clean:
$(MAKE) -C sample clean
$(MAKE) -C test clean
install:
mkdir -p $(INSTALL_DIR)
cp -pR xbyak_riscv/*.h $(INSTALL_DIR)
uninstall:
rm -i $(INSTALL_DIR)/*.h
rmdir $(INSTALL_DIR)
update:
$(MAKE) -C gen
test:
$(MAKE) clean
$(MAKE) -C gen
$(MAKE) -C test test
$(MAKE) -C test test_svc
bin2hex:
python3 gen/bin2hex.py xbyak_riscv/xbyak_riscv.hpp
python3 gen/bin2hex.py xbyak_riscv/xbyak_riscv_csr.hpp
python3 gen/bin2hex.py xbyak_riscv/xbyak_riscv_mnemonic.hpp
test_svc:
$(MAKE) -C test test_svc
disas:
riscv64-linux-gnu-as -c -o a.o a.s -march=rv64iafmqgv && riscv64-unknown-elf-objdump -d a.o
disas_c:
riscv64-linux-gnu-as -c -o a.o a.s -march=rv64gc && riscv64-unknown-elf-objdump -d a.o
.PHONY: test update