-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
86 lines (70 loc) · 2.76 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
runstatic:
gcc -o static.out main.c foo/libfoo.a ; ./static.out
runstatic1:
gcc -o static.out main.c foo1/libfoo1.a ; ./static.out
runstaticfoo1fisrtSameName:
gcc -lobjc -o a.out main.m foo1/libfoo.a foo/libfoo.a -framework Foundation
./a.out
rm a.out
runstaticfoofirstSameName:
gcc -lobjc -o a.out main.m foo/libfoo.a foo1/libfoo.a -framework Foundation
./a.out
rm a.out
runstaticfoo1fisrtDifferentName:
gcc -lobjc -o a.out main.m foo1/libfoo1.a foo/libfoo.a -framework Foundation
./a.out
rm a.out
runstaticfoofirstDifferentName:
gcc -lobjc -o a.out main.m foo/libfoo.a foo1/libfoo1.a -framework Foundation
./a.out
rm a.out
rundynamicfoo1:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo1 ;ld main.o -lc foo1/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
rundynamicfoo:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo ;ld main.o -lc foo/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
rundynamicfoo1firstSameLibraryName:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo:foo1 ;ld main.o -lc foo1/libfoo.so foo/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
rundynamicfoofirstSameLibraryName:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo:foo1 ; ld main.o -lc foo/libfoo.so foo1/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
rundynamicfoo1firstDifferentLibraryName:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo:foo1 ;ld main.o -lc foo1/libfoo1.so foo/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
rundynamicfoofirstDifferentLibraryName:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo:foo1 ; ld main.o -lc foo/libfoo.so foo1/libfoo1.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
runStaticAndDynamicMultipleSymbols:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo ; ld main.o foo1/libfoo.a -lc foo/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
runStaticAndDynamicMultipleSymbols1:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo ; ld main.o foo1/libfoo1.a -lc foo/libfoo.so -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
runStaticAndDynamicMultipleSymbols2:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo ; ld main.o -lc foo/libfoo.so foo1/libfoo1.a -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM
runStaticAndDynamicMultipleSymbols3:
gcc -g -c main.m
export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:foo ; ld main.o -lc foo/libfoo.so foo1/libfoo.a -framework Foundation ; ./a.out
rm a.out main.o
rm -rf a.out.dSYM