-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
31 lines (21 loc) · 1.22 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
all: assembler
assembler: assembler.o line.o symbol.o keyword.o commandLine.o guidanceLine.o memoryCommand.o outPut.o
gcc -ansi -Wall -pedantic -o assembler assembler.o line.o symbol.o keyword.o commandLine.o guidanceLine.o memoryCommand.o outPut.o
assembler.o: assembler.c assembler.h line.h commandLine.h guidanceLine.h keyword.h symbol.h memoryCommand.h outPut.h
gcc -ansi -Wall -pedantic -c assembler.c
line.o: line.c line.h keyword.h symbol.h commandLine.h guidanceLine.h
gcc -ansi -Wall -pedantic -c line.c
symbol.o: symbol.c symbol.h line.h keyword.h commandLine.h
gcc -ansi -Wall -pedantic -c symbol.c
keyword.o: keyword.c keyword.h
gcc -ansi -Wall -pedantic -c keyword.c
commandLine.o: commandLine.c commandLine.h line.h symbol.h keyword.h memoryCommand.h
gcc -ansi -Wall -pedantic -c commandLine.c
guidanceLine.o: guidanceLine.c guidanceLine.h keyword.h line.h symbol.h
gcc -ansi -Wall -pedantic -c guidanceLine.c
memoryCommand.o: memoryCommand.c memoryCommand.h symbol.h keyword.h line.h commandLine.h
gcc -ansi -Wall -pedantic -c memoryCommand.c
outPut.o: outPut.c outPut.h assembler.h guidanceLine.h keyword.h line.h memoryCommand.h symbol.h commandLine.h
gcc -ansi -Wall -pedantic -c outPut.c
clean:
rm *.o assembler