blob: acb73211ec6d4f1859f0f593a6e05871be08287b (
plain)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
TARGET = mcpat
SHELL = /bin/sh
.PHONY: all depend clean
.SUFFIXES: .cc .o
ifndef NTHREADS
NTHREADS = 4
endif
LIBS =
INCS = -lm
ifeq ($(TAG),dbg)
DBG = -Wall
OPT = -ggdb -g -O0 -DNTHREADS=1 -Icacti
else
DBG =
OPT = -O3 -msse2 -mfpmath=sse -DNTHREADS=$(NTHREADS) -Icacti
#OPT = -O0 -DNTHREADS=$(NTHREADS)
endif
#CXXFLAGS = -Wall -Wno-unknown-pragmas -Winline $(DBG) $(OPT)
CXXFLAGS = -Wno-unknown-pragmas $(DBG) $(OPT)
CXX = g++
CC = gcc
VPATH = cacti
SRCS = \
Ucache.cc \
arbiter.cc \
area.cc \
array.cc \
bank.cc \
basic_circuit.cc \
basic_components.cc \
bus_interconnect.cc \
cachearray.cc \
cachecontroller.cc \
cacheunit.cc \
cacti_interface.cc \
component.cc \
core.cc \
crossbar.cc \
decoder.cc \
htree2.cc \
interconnect.cc \
io.cc \
iocontrollers.cc \
logic.cc \
main.cc \
mat.cc \
memoryctrl.cc \
noc.cc \
nuca.cc \
parameter.cc \
router.cc \
subarray.cc \
system.cc \
technology.cc \
uca.cc \
wire.cc \
xmlParser.cc
OBJS = $(patsubst %.cc,$(ODIR)/obj_$(TAG)/%.o,$(SRCS))
all: $(ODIR)/obj_$(TAG)/$(TARGET)
cp -f $< $(ODIR)/$(TARGET)
$(ODIR)/obj_$(TAG)/$(TARGET) : $(OBJS)
$(CXX) $^ -o $@ $(INCS) $(CXXFLAGS) $(LIBS) -pthread
$(ODIR)/obj_$(TAG)/%.o : %.cc
$(CXX) $(CXXFLAGS) -c $< -o $@
clean:
-rm -f *.o $(ODIR)/$(TARGET)
|