-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
31 lines (21 loc) · 1.26 KB
/
makefile
File metadata and controls
31 lines (21 loc) · 1.26 KB
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
assembly: assembly.o preprocess.o interpreter.o analyzeLine.o implementLine.o symbolList.o errorList.o createOb.o
gcc -g -ansi -Wall -pedantic assembly.o preprocess.o analyzeLine.o implementLine.o interpreter.o symbolList.o errorList.o createOb.o -o assembly
assembly.o: assembly.c interpreter.h symbolList.h globals.h
gcc -g -c -ansi -Wall -pedantic assembly.c -o assembly.o
interpreter.o: interpreter.c analyzeLine.o implementLine.o analyzeLine.h implementLine.h globals.h
gcc -g -c -ansi -Wall -pedantic interpreter.c -o interpreter.o
analyzeLine.o: analyzeLine.c globals.h
gcc -g -c -ansi -Wall -pedantic analyzeLine.c -o analyzeLine.o
implementLine.o: implementLine.c lineInfo.h symbolList.h globals.h errorList.h
gcc -g -c -ansi -Wall -pedantic implementLine.c -o implementLine.o
symbolList.o: symbolList.c symbolList.h globals.h
gcc -g -c -ansi -Wall -pedantic symbolList.c -o symbolList.o
preprocess.o: preprocess.c preprocess.h errorList.h
gcc -g -c -ansi -Wall -pedantic preprocess.c -o preprocess.o
createOb.o: createOb.c createOb.h
gcc -g -c -ansi -Wall -pedantic createOb.c -o createOb.o
errorList.o: errorList.c errorList.h globals.h
gcc -g -c -ansi -Wall -pedantic errorList.c -o errorList.o
clean:
rm -f *.o assembly
rm *.am *.ent *.ext *.am *.ob