1 Star 0 Fork 3

OSCPU/DRAMsim3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Makefile 1.04 KB
一键复制 编辑 原始数据 按行查看 历史
Shang Li 提交于 2019-03-13 10:35 . Return buffered request 1 cycle later
# ONLY use this makefile if you do NOT have a cmake 3.0+ version
CC=gcc
CXX=g++
FMT_LIB_DIR=ext/fmt/include
INI_LIB_DIR=ext/headers
JSON_LIB_DIR=ext/headers
ARGS_LIB_DIR=ext/headers
INC=-Isrc/ -I$(FMT_LIB_DIR) -I$(INI_LIB_DIR) -I$(ARGS_LIB_DIR) -I$(JSON_LIB_DIR)
CXXFLAGS=-Wall -O3 -fPIC -std=c++11 $(INC) -DFMT_HEADER_ONLY=1
LIB_NAME=libdramsim3.so
EXE_NAME=dramsim3main.out
SRCS = src/bankstate.cc src/channel_state.cc src/command_queue.cc src/common.cc \
src/configuration.cc src/controller.cc src/dram_system.cc src/hmc.cc \
src/memory_system.cc src/refresh.cc src/simple_stats.cc src/timing.cc
EXE_SRCS = src/cpu.cc src/main.cc
OBJECTS = $(addsuffix .o, $(basename $(SRCS)))
EXE_OBJS = $(addsuffix .o, $(basename $(EXE_SRCS)))
EXE_OBJS := $(EXE_OBJS) $(OBJECTS)
all: $(LIB_NAME) $(EXE_NAME)
$(EXE_NAME): $(EXE_OBJS)
$(CXX) $(CXXFLAGS) -o $@ $^
$(LIB_NAME): $(OBJECTS)
$(CXX) -g -shared -Wl,-soname,$@ -o $@ $^
%.o : %.cc
$(CXX) $(CXXFLAGS) -o $@ -c $<
%.o : %.c
$(CC) -fPIC -O2 -o $@ -c $<
clean:
-rm -f $(EXE_OBJS) $(LIB_NAME) $(EXE_NAME)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/oscpu/DRAMsim3.git
[email protected]:oscpu/DRAMsim3.git
oscpu
DRAMsim3
DRAMsim3
co-simulation

搜索帮助