-
Notifications
You must be signed in to change notification settings - Fork 20
/
Makefile
59 lines (44 loc) · 999 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
CC := clang-18 --target=riscv64 -march=rv64imac_zba_zbb_zbc_zbs -g -nostdinc -nostdlib -Ickb-c-stdlib -Ickb-c-stdlib/libc
all: ckb-c-stdlib \
always_failure \
exec_callee \
exec_caller \
fib \
file_operations \
out_of_memory \
print_log \
read_file \
spawn_callee_strcat \
spawn_caller_strcat \
timenow
all-via-docker:
docker run -e UID=`id -u` -e GID=`id -g` --rm -v `pwd`:/code cryptape/llvm-n-rust:20240630 bash -c "cd /code && make"
always_failure:
$(CC) -o $@ [email protected]
ckb-c-stdlib:
git clone https://github.com/nervosnetwork/ckb-c-stdlib
cd ckb-c-stdlib
git checkout d7dc1e3
cd ..
exec_callee:
$(CC) -o $@ [email protected]
exec_caller:
$(CC) -o $@ [email protected]
fib:
$(CC) -o $@ [email protected]
file_operations:
$(CC) -Wno-builtin-requires-header -o $@ [email protected]
out_of_memory:
$(CC) -o $@ [email protected]
print_log:
$(CC) -o $@ [email protected]
read_file:
$(CC) -o $@ [email protected]
spawn_callee_strcat:
$(CC) -o $@ [email protected]
spawn_caller_strcat:
$(CC) -o $@ [email protected]
test:
bash MakefileTest.sh
timenow:
$(CC) -o $@ [email protected]