-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
60 lines (41 loc) · 3.01 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
all: nmlsim
nmlsim: Objs/Main.o Objs/Neighbor.o Objs/ThiagoMagnet.o Objs/LLGMagnet.o Objs/LLGTensors.o Objs/dipolar3D3_modificado.o Objs/ClockZone.o Objs/ClockPhase.o Objs/ClockController.o Objs/Circuit.o Objs/Simulation.o Objs/FileReader.o
@g++ Objs/Main.o Objs/Neighbor.o Objs/ThiagoMagnet.o Objs/LLGMagnet.o Objs/LLGTensors.o Objs/dipolar3D3_modificado.o Objs/ClockZone.o Objs/ClockPhase.o Objs/ClockController.o Objs/Circuit.o Objs/Simulation.o Objs/FileReader.o -o nmlsim -lgfortran
Objs/Neighbor.o: Magnet/Neighbor.cpp Magnet/Neighbor.h Others/Includes.h
@g++ -std=gnu++11 -c Magnet/Neighbor.cpp -o Objs/Neighbor.o
Objs/ClockPhase.o: Clock/ClockPhase.cpp Clock/ClockPhase.h Others/Includes.h
@g++ -std=gnu++11 -c Clock/ClockPhase.cpp -o Objs/ClockPhase.o
Objs/ThiagoMagnet.o: Magnet/ThiagoMagnet.cpp Magnet/ThiagoMagnet.h Magnet/Magnet.h Magnet/Neighbor.h Clock/ClockZone.h Magnet/LLGTensors.h Others/Includes.h Simulator/FileReader.h
@g++ -std=gnu++11 -c Magnet/ThiagoMagnet.cpp -o Objs/ThiagoMagnet.o
Objs/LLGMagnet.o: Magnet/LLGMagnet.cpp Magnet/LLGMagnet.h Magnet/Magnet.h Magnet/Neighbor.h Clock/ClockZone.h Others/Includes.h Simulator/FileReader.h
@g++ -std=gnu++11 -c Magnet/LLGMagnet.cpp -o Objs/LLGMagnet.o
Objs/LLGTensors.o: Magnet/LLGTensors.cpp Magnet/LLGTensors.h Magnet/Magnet.h Magnet/Neighbor.h Clock/ClockPhase.h Others/Includes.h
@g++ -std=gnu++11 -c Magnet/LLGTensors.cpp -o Objs/LLGTensors.o
Objs/dipolar3D3_modificado.o: Magnet/dipolar3D3_modificado.f90
@gfortran -c Magnet/dipolar3D3_modificado.f90 -o Objs/dipolar3D3_modificado.o -J ModFiles
Objs/ClockZone.o: Clock/ClockZone.cpp Clock/ClockZone.h Magnet/Magnet.h Clock/ClockPhase.h Others/Includes.h
@g++ -std=gnu++11 -c Clock/ClockZone.cpp -o Objs/ClockZone.o
Objs/ClockController.o: Clock/ClockController.cpp Clock/ClockController.h Clock/ClockZone.h Clock/ClockPhase.h Magnet/Magnet.h Others/Includes.h
@g++ -std=gnu++11 -c Clock/ClockController.cpp -o Objs/ClockController.o
Objs/FileReader.o: Simulator/FileReader.cpp Simulator/FileReader.h Others/Includes.h
@g++ -std=gnu++11 -c Simulator/FileReader.cpp -o Objs/FileReader.o
Objs/Circuit.o: Simulator/Circuit.cpp Simulator/Circuit.h Clock/ClockController.h Magnet/Magnet.h Clock/ClockZone.h Clock/ClockPhase.h Others/Includes.h
@g++ -std=gnu++11 -c Simulator/Circuit.cpp -o Objs/Circuit.o
Objs/Simulation.o: Simulator/Simulation.cpp Simulator/Simulation.h Simulator/Circuit.h Clock/ClockController.h Clock/ClockZone.h Clock/ClockPhase.h Magnet/Magnet.h Simulator/FileReader.h Others/Includes.h
@g++ -std=gnu++11 -c Simulator/Simulation.cpp -o Objs/Simulation.o
Objs/Main.o: Main.cpp Simulator/Simulation.h Others/Includes.h
@g++ -std=gnu++11 -c Main.cpp -o Objs/Main.o
clean:
@rm -f Objs/*.o
@rm -f nmlsim
@rm -f ModFiles/*.mod
eraseCSV:
@rm -f Files/*.csv
input:="Files/example.xml"
output:="SingleFileMode"
run:
@./nmlsim $(input) $(output)
interface32:
@./Interface/application.linux32/NMLSim
interface64:
@./Interface/application.linux64/NMLSim