blob: 6ab60e48fe1a09a4136f8514283d96719635c4c2 (
plain) (
blame)
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
|
cc = clang
cflags = -Wunused-function -Wunused-variable -Wconversion -Wformat
-I include -I lib/liballoc/include -I lib/libdvec/include
rule liba
$cc -o $out.tmp.o $in $cflags -r
objcopy --keep-global-symbols=libstrvec.api $out.tmp.o $out.fixed.o
ar rcs $out $out.fixed.o
rm $out.tmp.o $out.fixed.o
rule libso
$cc -o $out $in $cflags -shared -Wl,-version-script libstrvec.lds
rule cc
$cc -o $out $in $cflags
rule mkdir
mkdir $out
target build
mkdir
target lib/liballoc/build/liballoc.a
just lib/liballoc
target lib/libdvec/build/libdvec.a
just lib/libdvec
target build/libstrvec.a
liba src/strvec.c
lib/liballoc/build/liballoc.a | build
target build/libstrvec.so
libso src/strvec.c | build
target build/test
cc src/test.c build/libstrvec.a
lib/liballoc/build/liballoc.a
lib/libdvec/build/libdvec.a | build
command clean
rm -rf build
command cleanall
just clean
just -C lib/libdvec cleanall
just -C lib/liballoc cleanall
command all
just build/libstrvec.a build/libstrvec.so build/test
|