-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
94 lines (63 loc) · 2.1 KB
/
Makefile
File metadata and controls
94 lines (63 loc) · 2.1 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
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
87
88
89
90
91
92
93
94
all: test test_float_slice test_sub test_from_arr cat rev tac tac_value test_long_long_slice test_int_slice test_short tac_typed test_split
CC := gcc
CFLAGS := -Wpedantic -Wall -Werror -Wextra -O3
smalloc.o: smalloc.c smalloc.h
$(CC) $(CFLAGS) -c $<
slice.o: slice.c slice.h
$(CC) $(CFLAGS) -c $<
long_long_slice.o: long_long_slice.c long_long_slice.h slice.h
$(CC) $(CFLAGS) -c $<
int_slice.o: int_slice.c int_slice.h slice.h
$(CC) $(CFLAGS) -c $<
test.o: test.c slice.h
$(CC) $(CFLAGS) -c $<
test: test.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
test_float_slice.o: test_float_slice.c slice.h
$(CC) $(CFLAGS) -c $<
test_float_slice: test_float_slice.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
test_sub.o: test_sub.c slice.h
$(CC) $(CFLAGS) -c $<
test_sub: test_sub.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
test_short.o: test_short.c slice.h short_slice.h
$(CC) $(CFLAGS) -c $<
test_short: test_short.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
test_from_arr.o: test_from_arr.c slice.h
$(CC) $(CFLAGS) -c $<
test_from_arr: test_from_arr.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
cat.o: cat.c slice.h
$(CC) $(CFLAGS) -c $<
cat: cat.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
rev.o: rev.c slice.h
$(CC) $(CFLAGS) -c $<
rev: rev.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
tac.o: tac.c slice.h
$(CC) $(CFLAGS) -c $<
tac: tac.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
tac_value.o: tac_value.c slice.h
$(CC) $(CFLAGS) -c $<
tac_value: tac_value.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
tac_typed.o: tac_typed.c slice.h
$(CC) $(CFLAGS) -c $<
tac_typed: tac_typed.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@
test_long_long_slice.o: test_long_long_slice.c slice.h
$(CC) $(CFLAGS) -c $<
test_long_long_slice: test_long_long_slice.o slice.o smalloc.o long_long_slice.o
$(CC) $(CFLAGS) $^ -o $@
test_int_slice.o: test_int_slice.c slice.h
$(CC) $(CFLAGS) -c $<
test_int_slice: test_int_slice.o slice.o smalloc.o int_slice.o
$(CC) $(CFLAGS) $^ -o $@
test_split.o: test_split.c slice.h
$(CC) $(CFLAGS) -c $<
test_split: test_split.o slice.o smalloc.o
$(CC) $(CFLAGS) $^ -o $@