-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
41 lines (26 loc) · 1.03 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
flags = -g -pthread
all: test shell
commands.o: commands.c commands.h
gcc $(flags) -c commands.c
history.o: history.c history.h commands.h
gcc $(flags) -c history.c
builtin.o: builtin.c builtin.h jobs.h
gcc $(flags) -c builtin.c
execute.o: execute.c execute.h commands.h builtin.h
gcc $(flags) -c execute.c
parse.o: parse.c parse.h commands.h
gcc $(flags) -c parse.c
automaton.o: automaton.c automaton.h commands.h
gcc $(flags) -c automaton.c
match.o: match.c match.h history.h
gcc $(flags) -c match.c
jobs.o: jobs.c jobs.h commands.h
gcc $(flags) -c jobs.c
test: automaton.o match.o history.o builtin.o commands.o execute.o parse.o test.c jobs.o
gcc $(flags) test.c automaton.o match.o builtin.o history.o commands.o execute.o jobs.o parse.o -o test
shell: automaton.o match.o history.o builtin.o commands.o execute.o parse.o shell.c jobs.o
gcc $(flags) shell.c automaton.o match.o builtin.o history.o commands.o execute.o jobs.o parse.o -o shell
minunit.o: minunit.h
gcc $(flags) -c minunit.h
clear:
rm *.o shell test a.out