2 Star 5 Fork 0

Gitee 极速下载 / riscv-rootfs

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/LvNA-system/riscv-rootfs
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Makefile.compile 786 Bytes
Copy Edit Web IDE Raw Blame History
include $(RISCV_ROOTFS_HOME)/Makefile.app
# Compilation flags
CROSS_COMPILE ?= riscv64-unknown-linux-gnu-
AS = $(CROSS_COMPILE)gcc
CC = $(CROSS_COMPILE)gcc
CXX = $(CROSS_COMPILE)g++
LD = $(CROSS_COMPILE)gcc
INCLUDES = $(addprefix -I, $(INC_DIR))
CFLAGS += -O2 -MMD $(INCLUDES)
CXXFLAGS += -O2 -MMD $(INCLUDES)
# Files to be compiled
OBJS = $(addprefix $(DST_DIR)/, $(addsuffix .o, $(basename $(SRCS))))
# Compilation patterns
$(DST_DIR)/%.o: %.cpp
@echo + CXX $<
@mkdir -p $(dir $@)
@$(CXX) $(CXXFLAGS) -c -o $@ $<
$(DST_DIR)/%.o: %.c
@echo + CC $<
@mkdir -p $(dir $@)
@$(CC) $(CFLAGS) -c -o $@ $<
$(APP): $(OBJS)
@echo + LD $@
@$(LD) $(LDFLAGS) -o $(APP) $(OBJS)
# Dependencies
DEPS = $(addprefix $(DST_DIR)/, $(addsuffix .d, $(basename $(SRCS))))
-include $(DEPS)

Comment ( 0 )

Sign in for post a comment

C/C++
1
https://gitee.com/mirrors/riscv-rootfs.git
git@gitee.com:mirrors/riscv-rootfs.git
mirrors
riscv-rootfs
riscv-rootfs
master

Search