-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
83 lines (62 loc) · 1.94 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
CC=clang
CFLAGS=-g -fPIC -Isrc -ansi -pedantic -Wall -Wextra -Weverything
LDFLAGS=
SRC=../src
EXECUTABLE=libmlist.so
OBJECTS= \
access.o \
elem.o \
general.o \
index.o \
insert.o \
remove.o \
filter.o \
find.o \
join.o \
map.o \
reverse.o \
sort.o \
zip.o \
equal.o \
match.o \
is_sorted.o \
is_empty.o
all: libmlist.so
libmlist.so: $(OBJECTS)
$(CC) -fPIC -o libmlist.so -shared $(OBJECTS) $(LDFLAGS)
clean:
rm *.o libmlist.so
access.o: $(SRC)/access.c
$(CC) $(CFLAGS) -c $(SRC)/access.c -o access.o
elem.o: $(SRC)/elem.c
$(CC) $(CFLAGS) -c $(SRC)/elem.c -o elem.o
general.o: $(SRC)/general.c
$(CC) $(CFLAGS) -c $(SRC)/general.c -o general.o
index.o: $(SRC)/index.c
$(CC) $(CFLAGS) -c $(SRC)/index.c -o index.o
insert.o: $(SRC)/insert.c
$(CC) $(CFLAGS) -c $(SRC)/insert.c -o insert.o
remove.o: $(SRC)/remove.c
$(CC) $(CFLAGS) -c $(SRC)/remove.c -o remove.o
filter.o: $(SRC)/algorithm/filter.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/filter.c -o filter.o
find.o: $(SRC)/algorithm/find.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/find.c -o find.o
join.o: $(SRC)/algorithm/join.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/join.c -o join.o
map.o: $(SRC)/algorithm/map.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/map.c -o map.o
reverse.o: $(SRC)/algorithm/reverse.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/reverse.c -o reverse.o
sort.o: $(SRC)/algorithm/sort.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/sort.c -o sort.o
zip.o: $(SRC)/algorithm/zip.c
$(CC) $(CFLAGS) -c $(SRC)/algorithm/zip.c -o zip.o
equal.o: $(SRC)/predicate/equal.c
$(CC) $(CFLAGS) -c $(SRC)/predicate/equal.c -o equal.o
match.o: $(SRC)/predicate/match.c
$(CC) $(CFLAGS) -c $(SRC)/predicate/match.c -o match.o
is_sorted.o: $(SRC)/predicate/is_sorted.c
$(CC) $(CFLAGS) -c $(SRC)/predicate/is_sorted.c -o is_sorted.o
is_empty.o: $(SRC)/predicate/is_empty.c
$(CC) $(CFLAGS) -c $(SRC)/predicate/is_empty.c -o is_empty.o