-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (22 loc) · 775 Bytes
/
Copy pathMakefile
File metadata and controls
28 lines (22 loc) · 775 Bytes
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
# ============================================================
# Makefile - Simulador do Algoritmo de Tomasulo
# ============================================================
# Uso:
# make -> Compila o simulador
# make run -> Compila e executa
# make clean -> Remove binários
# ============================================================
CXX = g++
CXXFLAGS = -std=c++17 -Wall -Wextra -O2
TARGET = tomasulo
SRCDIR = src
SOURCES = $(SRCDIR)/main.cpp $(SRCDIR)/Simulator.cpp
HEADERS = $(SRCDIR)/Config.h $(SRCDIR)/Instruction.h $(SRCDIR)/Hardware.h $(SRCDIR)/Simulator.h
.PHONY: all run clean
all: $(TARGET)
$(TARGET): $(SOURCES) $(HEADERS)
$(CXX) $(CXXFLAGS) -o $(TARGET) $(SOURCES)
run: $(TARGET)
./$(TARGET)
clean:
rm -f $(TARGET)