-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (29 loc) · 994 Bytes
/
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
# Author: Howen Anthony Fernando, Nathan Schwedock
# RedIDs: 822914112, 822910056
# Class: CS480, Spring 2022
# Assignment #3: Demand Paging with TLB
# Filename: Makefile
# CXX Make variable for compiler
CXX=g++
# Make variable for compiler options
# -std=c++11 C/C++ variant to use, e.g. C++ 2011
# -g include information for symbolic debugger e.g. gdb
CXXFLAGS=-std=c++11
pagingwithtlb : main.o pageTable.o Map.o level.o tlb.o tracereader.o output_mode_helpers.o
$(CXX) $(CXXFLAGS) -g -o pagingwithtlb $^
main.o : main.cpp
$(CXX) $(CXXFLAGS) -g -c $<
pageTable.o : pageTable.cpp pageTable.h
$(CXX) $(CXXFLAGS) -g -c $<
Map.o : Map.cpp Map.h
$(CXX) $(CXXFLAGS) -g -c $<
level.o : level.cpp level.h
$(CXX) $(CXXFLAGS) -g -c $<
tlb.o : tlb.cpp tlb.h
$(CXX) $(CXXFLAGS) -g -c $<
tracereader.o : tracereader.c tracereader.h
$(CXX) $(CXXFLAGS) -g -c $<
output_mode_helpers.o : output_mode_helpers.c output_mode_helpers.h
$(CXX) $(CXXFLAGS) -g -c $<
clean :
rm -f *.o