-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (31 loc) · 955 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
all: if-else if-else-main
if-else: if-else.c
gcc -Og -S if-else.c -o if-else.s
if-else-main: if-else-main.c
gcc -Og -g if-else-main.c -o if-else-main
do-while-main: do-while-main.c
gcc -Og -g do-while-main.c -o do-while-main
do-while-main.s: do-while-main.c
gcc -Og -S do-while-main.c -o do-while-main.s
while.s: while.c
gcc -Og -S while.c
for.s: for.c
gcc -Og -S for.c
switch.s: switch.c
gcc -Og -S switch.c
switch-simp.s: switch-simp.c
gcc -Og -S switch-simp.c
call-params.s: call-params.c
gcc -Og -S call-params.c
call-params: call-params.c
gcc -Og -g call-params.c -o call-params
static-local.o: static-local.c
gcc -Og -c $<
main-lib2.o: main-lib2.c
gcc -Og -c $<
main-lib2.s: main-lib2.c vector
gcc -Og -s main-lib2.c vector.c
libvector2.so: addvec2.c multvec.c
gcc --shared -fPIC -Og addvec2.c multvec.c -o libvector2.so
main-lib-shared2: main-lib2.o libvector2.so
gcc -Og -o main-lib-shared2 main-lib2.o -L. -l vector2