-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
67 lines (33 loc) · 875 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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
#A Simple Ilustrative Makefile for soshell
#
CC=cc
FLAGS=-c -Wall
LIBS=-lm -lpthread
OBS=main.o execute.o parse.o socp.o calc.o isjpg.o help.o redirects.o aviso.o rocket.o sols.o
all : kingshell
main.o : shell.h main.c
$(CC) $(FLAGS) main.c
execute.o : shell.h execute.c
$(CC) $(FLAGS) execute.c
parse.o : shell.h parse.c
$(CC) $(FLAGS) parse.c
redirects.o : shell.h redirects.c
$(CC) $(FLAGS) redirects.c
socp.o: shell.h socp.c
$(CC) $(FLAGS) socp.c
sols.o : shell.h sols.c
$(CC) $(FLAGS) sols.c
calc.o: shell.h calc.c
$(CC) $(FLAGS) calc.c
rocket.o: shell.h rocket.c
$(CC) $(FLAGS) rocket.c
isjpg.o: shell.h isjpg.c
$(CC) $(FLAGS) isjpg.c
help.o: shell.h help.c
$(CC) $(FLAGS) help.c
aviso.o: shell.h aviso.c
$(CC) $(FLAGS) aviso.c
kingshell : $(OBS)
$(CC) -o kingshell $(OBS) $(LIBS)
clean limpar:
rm -f kingshell *.o *~