-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (24 loc) · 998 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
20161577.out: main.o cmdProc.o shell.o memory.o hash.o assembler.o linkLoader.o execute.o linkedList.o
gcc -Wall -o 20161577.out main.o cmdProc.o shell.o memory.o hash.o assembler.o linkLoader.o execute.o linkedList.o -lm
@echo "\n>>> To execute, type ./20161577.out\n"
main.o: 20161577.h 20161577.c
gcc -Wall -c -o main.o 20161577.c -lm
cmdProc.o: 20161577.h cmdProc.c
gcc -Wall -c -o cmdProc.o cmdProc.c -lm
shell.o: 20161577.h shell.c
gcc -Wall -c -o shell.o shell.c -lm
memory.o: 20161577.h memory.c
gcc -Wall -c -o memory.o memory.c -lm
hash.o: 20161577.h hash.c
gcc -Wall -c -o hash.o hash.c -lm
assembler.o: 20161577.h assembler.c
gcc -Wall -c -o assembler.o assembler.c -lm
linkLoader.o: 20161577.h linkLoader.h
gcc -Wall -c -o linkLoader.o linkLoader.c -lm
linkedList.o: 20161577.h linkedList.h shell.h
gcc -Wall -c -o linkedList.o linkedList.c -lm
execute.o: 20161577.h linkedList.h execute.h
gcc -Wall -c -o execute.o execute.c -lm
clean:
-rm *.o
-rm 20161577.out