-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (28 loc) · 1.11 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
# ##############################################
# ##
# ## Makefile
# ## LINUX compilation
# ##
# ##############################################
# *****************************************************
# Variables to control Makefile operation
CXX = g++
CXXFLAGS = -Wall -g
# ****************************************************
# Targets needed to bring the executable up to date
all: Main.o Simulation.o Memory.o ReadyQueue.o MemBlock.o Process.o HardDisks.o IOQueue.o CPU.o
$(CXX) $(CXXFLAGS) -o Simulation Main.o Simulation.o Memory.o ReadyQueue.o MemBlock.o Process.o HardDisks.o IOQueue.o CPU.o
# The main.o target can be written more simply
Main.o: Main.cpp Simulation.hpp Memory.hpp ReadyQueue.hpp MemBlock.hpp Process.hpp HardDisks.hpp IOQueue.hpp CPU.o
$(CXX) $(CXXFLAGS) -c Main.cpp
Simulation.o: Simulation.hpp
ReadyQueue.o: ReadyQueue.hpp Process.hpp
Memory.o: Memory.hpp MemBlock.hpp HardDisks.hpp IOQueue.hpp
MemBlock.o: MemBlock.hpp Process.hpp
Process.o: Process.hpp
HardDisks.o: HardDisks.hpp IOQueue.hpp
IOQueue.o: IOQueue.hpp
CPU.o: CPU.hpp
#Clean obj files
clean:
(rm -f *.o; rm -f Simulation)