-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmakefile
83 lines (56 loc) · 1.81 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
83
CFLAGS = -g -Wall
kishmish: shell.o utils.o prompt.o signals.o process.o pipe.o redirection.o parse.o jobs.o kjob.o overkill.o fg.o bg.o pwd.o cd.o ls.o echo.o pinfo.o env.o cronjob.o external.o history.o nightswatch.o exit.o recall.o
gcc -o kishmish $(CFLAGS) shell.o utils.o prompt.o signals.o process.o pipe.o redirection.o parse.o jobs.o kjob.o overkill.o fg.o bg.o pwd.o cd.o ls.o echo.o pinfo.o env.o cronjob.o external.o history.o nightswatch.o exit.o recall.o
clean:
rm -f *.o kishmish
# DONOT USE THESE RULES DIRECTLY
utils.o: utils.c utils.h
gcc $(CFLAGS) -c utils.c
prompt.o: prompt.c prompt.h
gcc $(CFLAGS) -c prompt.c
signals.o: signals.c signals.h
gcc $(CFLAGS) -c signals.c
pipe.o: pipe.c pipe.h
gcc $(CFLAGS) -c pipe.c
redirection.o: redirection.c redirection.h
gcc $(CFLAGS) -c redirection.c
process.o: process.c process.h
gcc $(CFLAGS) -c process.c
jobs.o: jobs.c jobs.h
gcc $(CFLAGS) -c jobs.c
kjob.o: kjob.c kjob.h
gcc $(CFLAGS) -c kjob.c
overkill.o: overkill.c overkill.h
gcc $(CFLAGS) -c overkill.c
fg.o: fg.c fg.h
gcc $(CFLAGS) -c fg.c
bg.o: bg.c bg.h
gcc $(CFLAGS) -c bg.c
pwd.o: pwd.c pwd.h
gcc $(CFLAGS) -c pwd.c
cd.o: cd.c cd.h
gcc $(CFLAGS) -c cd.c
ls.o: ls.c ls.h
gcc $(CFLAGS) -c ls.c
echo.o: echo.c echo.h
gcc $(CFLAGS) -c echo.c
pinfo.o: pinfo.c pinfo.h
gcc $(CFLAGS) -c pinfo.c
env.o: env.c env.h
gcc $(CFLAGS) -c env.c
cronjob.o: cronjob.c cronjob.h
gcc $(CFLAGS) -c cronjob.c
external.o: external.c external.h
gcc $(CFLAGS) -c external.c
nightswatch.o: nightswatch.c nightswatch.h
gcc $(CFLAGS) -c nightswatch.c
history.o: history.c history.h
gcc $(CFLAGS) -c history.c
exit.o: exit.c exit.h
gcc $(CFLAGS) -c exit.c
recall.o: recall.c recall.h
gcc $(CFLAGS) -c recall.c
parse.o: parse.c parse.h
gcc $(CFLAGS) -c parse.c
shell.o: shell.c shell.h
gcc $(CFLAGS) -c shell.c