-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
64 lines (42 loc) · 1.99 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
CFLAGS = -Wall -pedantic -std=c11 -I. -g
all : put-empty put-non-empty get-empty get-non-empty app-empty app-non-empty rem-empty rem-non-empty
list.o : list.c list.h
gcc $(CFLAGS) -c list.c
make-car.o : make-car.c list.h
gcc $(CFLAGS) -c make-car.c
car-functions.o : car-functions.c list.h
gcc $(CFLAGS) -c car-functions.c
put-empty.o : put-empty.c list.h
gcc $(CFLAGS) -c put-empty.c
put-non-empty.o : put-non-empty.c list.h
gcc $(CFLAGS) -c put-non-empty.c
get-empty.o : get-empty.c list.h
gcc $(CFLAGS) -c get-empty.c
get-non-empty.o : get-non-empty.c list.h
gcc $(CFLAGS) -c get-non-empty.c
app-empty.o : app-empty.c list.h
gcc $(CFLAGS) -c app-empty.c
app-non-empty.o: app-non-empty.c list.h
gcc $(CFLAGS) -c app-non-empty.c
rem-empty.o : rem-empty.c list.h
gcc $(CFLAGS) -c rem-empty.c
rem-non-empty.o : rem-non-empty.c list.h
gcc $(CFLAGS) -c rem-non-empty.c
put-empty : put-empty.o list.o make-car.o list.h
gcc $(CFLAGS) put-empty.o list.o make-car.o -o put-empty
put-non-empty : put-non-empty.o list.o make-car.o list.h
gcc $(CFLAGS) put-non-empty.o list.o make-car.o -o put-non-empty
get-empty : get-empty.o list.o list.h
gcc $(CFLAGS) get-empty.o list.o -o get-empty
get-non-empty : get-non-empty.o list.o make-car.o list.h
gcc $(CFLAGS) get-non-empty.o list.o make-car.o -o get-non-empty
app-empty : app-empty.o list.o car-functions.o list.h
gcc $(CFLAGS) app-empty.o list.o car-functions.o -o app-empty
app-non-empty : app-non-empty.o list.o make-car.o car-functions.o list.h
gcc $(CFLAGS) app-non-empty.o list.o make-car.o car-functions.o -o app-non-empty
rem-empty : rem-empty.o list.o list.h
gcc $(CFLAGS) rem-empty.o list.o -o rem-empty
rem-non-empty : rem-non-empty.o list.o make-car.o list.h
gcc $(CFLAGS) rem-non-empty.o list.o make-car.o -o rem-non-empty
clean :
rm -f *.o put-empty put-non-empty get-empty get-non-empty app-empty app-non-empty rem-empty rem-non-empty