-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
43 lines (29 loc) · 883 Bytes
/
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
all : shell
shell: shell.o cd.o echo.o ls.o pwd.o rm.o touch.o cat.o env.o mv.o other.o
gcc -o shell shell.o cd.o echo.o ls.o pwd.o rm.o touch.o cat.o env.o mv.o other.o
shell.o: shell.c header.h
gcc -o shell.o -c shell.c -W -Wall
cd.o: cd.c header.h
gcc -o cd.o -c cd.c -W -Wall
echo.o: echo.c header.h
gcc -o echo.o -c echo.c -W -Wall
ls.o: ls.c header.h
gcc -o ls.o -c ls.c -W -Wall
pwd.o: pwd.c header.h
gcc -o pwd.o -c pwd.c -W -Wall
rm.o: rm.c header.h
gcc -o rm.o -c rm.c -W -Wall
touch.o: touch.c header.h
gcc -o touch.o -c touch.c -W -Wall
cat.o: cat.c header.h
gcc -o cat.o -c cat.c -W -Wall
env.o: env.c header.h
gcc -o env.o -c env.c -W -Wall
mv.o: mv.c header.h
gcc -o mv.o -c mv.c -W -Wall
other.o: other.c header.h
gcc -o other.o -c other.c -W -Wall
clean:
rm -rf *.o
mrproper: clean
rm -rh shell