-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (34 loc) · 1.02 KB
/
Makefile
File metadata and controls
54 lines (34 loc) · 1.02 KB
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
# Add new .o files to OBJS list here
OBJS=driver.o sum_a.o sum_c.o sum_array.o find_max.o fib_rec.o fib_iter_C.o fib_rec_C.o sum_array_C.o find_max_C.o fib_iter.o find_str.o find_str_C.o
all: driver
driver.o: driver.c
gcc -c -o driver.o driver.c
driver: $(OBJS)
gcc -o driver $(OBJS)
sum_a.o: sum_a.s
as -o sum_a.o sum_a.s
sum_c.o: sum_c.c
gcc -c -o sum_c.o sum_c.c
# Add more .s and .c files here
sum_arrays.o: sum_arrays.s
as -o sum_array.o sum_arrays.s
find_max.o: find_max.s
as -o find_max.o find_max.s
fib_rec.o: fib_rec.s
as -o fib_rec.o fib_rec.s
fib_iter_C.o: fib_iter_C.c
gcc -c -o fib_iter_C.o fib_iter_C.c
fib_iter.o: fib_iter.s
gcc -c -o fib_iter.o fib_iter.s
fib_rec_C.o: fib_rec_C.c
gcc -c -o fib_rec_C.o fib_rec_C.c
sum_array_C.o: sum_array_C.c
gcc -c -o sum_array_C.o sum_array_C.c
find_max_C.o: find_max_C.c
gcc -c -o find_max_C.o find_max_C.c
find_str_C.o: find_str_C.c
gcc -c -o find_str_C.o find_str_C.c
find_str.o: find_str.s
as -o find_str.o find_str.s
clean:
rm -rf $(OBJS) driver