-
Notifications
You must be signed in to change notification settings - Fork 1
/
makefile
46 lines (32 loc) · 1.92 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
42
43
44
45
46
parmes = gcc -g -std=c99 -Wall
final = -lm
all: JVM LeitorExibidor limpa
debug: Common.o Util.o ClassLoader.o JVM.o
$(parmes) common.o util.o attributeinfo.o constantpool.o fieldinfo.o methodinfo.o class.o classloader.o jvm.o main.o -o JVM.exe $(final)
JVM: Common.o Util.o ClassLoader.o JVM.o
$(parmes) common.o util.o attributeinfo.o constantpool.o fieldinfo.o methodinfo.o class.o classloader.o jvm.o main.o -o JVM.exe $(final)
LeitorExibidor: Common.o Util.o ClassLoader.o LeitorExibidor.o
$(parmes) common.o util.o attributeinfo.o constantpool.o fieldinfo.o methodinfo.o class.o classloader.o main.o -o LeitorExibidor.exe $(final)
JVM.o: src/JVM/main.c src/JVM/maquina/maquina.c
$(parmes) -c src/JVM/maquina/maquina.c -o jvm.o $(final)
$(parmes) -c src/JVM/main.c -o main.o $(final)
LeitorExibidor.o: src/LeitorExibidor/main.c
$(parmes) -c src/LeitorExibidor/main.c -o main.o $(final)
ClassLoader.o: src/ClassLoader/classloader.c Class.o AttributeInfo.o ConstantPool.o FieldInfo.o MethodInfo.o
$(parmes) -c src/ClassLoader/classloader.c -o classloader.o $(final)
Class.o: src/ClassLoader/Class/class.c
$(parmes) -c src/ClassLoader/Class/class.c -o class.o $(final)
AttributeInfo.o: src/ClassLoader/Class/AttributeInfo/attributeinfo.c
$(parmes) -c src/ClassLoader/Class/AttributeInfo/attributeinfo.c -o attributeinfo.o $(final)
ConstantPool.o: src/ClassLoader/Class/ConstantPool/constantpool.c
$(parmes) -c src/ClassLoader/Class/ConstantPool/constantpool.c -o constantpool.o $(final)
FieldInfo.o: src/ClassLoader/Class/FieldInfo/fieldinfo.c
$(parmes) -c src/ClassLoader/Class/FieldInfo/fieldinfo.c -o fieldinfo.o $(final)
MethodInfo.o: src/ClassLoader/Class/MethodInfo/methodinfo.c
$(parmes) -c src/ClassLoader/Class/MethodInfo/methodinfo.c -o methodinfo.o $(final)
Common.o: src/Common/common.c
$(parmes) -c src/Common/common.c -o common.o $(final)
Util.o: src/Util/util.c
$(parmes) -c src/Util/util.c -o util.o $(final)
limpa:
rm *.o