-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
26 lines (18 loc) · 711 Bytes
/
Copy pathMakefile
File metadata and controls
26 lines (18 loc) · 711 Bytes
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
CC=gcc
# CC=gcc -Wall
mysh: get_path.o which.o where.o watchuser_list.o linked_list.o shell-with-builtin.o
$(CC) -g -pthread shell-with-builtin.c get_path.o which.o where.o watchuser_list.o linked_list.o -o mysh
shell-with-builtin.o: shell-with-builtin.c sh.h
$(CC) -g -c shell-with-builtin.c
get_path.o: get_path.c get_path.h
$(CC) -g -c get_path.c
which.o: which.c get_path.h
$(CC) -g -c which.c
where.o: where.c get_path.h
$(CC) -g -c where.c
watchuser_list.o: watchuser_list.c watchuser_list.h
$(CC) -g -c watchuser_list.c
linked_list.0: linked_list.c linked_list.h
$(CC) -g -c linked_list.c
clean:
rm -rf shell-with-builtin.o get_path.o which.o where.o watchuser_list.o linked_list.o mysh