2 Star 0 Fork 0

mirrors_facebook/flashcache

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.21 KB
一键复制 编辑 原始数据 按行查看 历史
COMMIT_REV := $(shell git describe --always --abbrev=12)
KERNEL_VERSION ?= $(shell uname -r)
KERNEL_TREE ?= /lib/modules/$(KERNEL_VERSION)/build
export COMMIT_REV
# Check for RHEL/CentOS
RHEL5_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep " 5\\.[0-9]" /etc/redhat-release; else false; fi)
ifneq "$(RHEL5_VER)" ""
RHEL5_TREE := /usr/src/redhat/BUILD/kernel-2.6.18/linux-$(shell uname -r).$(shell uname -i)
KERNEL_TREE := $(RHEL5_TREE)
endif
# Check for RHEL/CentOS 7
RHEL7_VER ?= $(shell if [ -e /etc/redhat-release ]; then grep " 7\\.[0-9]" /etc/redhat-release; else false; fi)
ifneq "$(RHEL7_VER)" ""
RHEL7_TREE := /usr/src/kernels/$(shell uname -r)
KERNEL_TREE := $(RHEL7_TREE)
endif
# Check for OpenVZ (/proc/vz)
OPENVZ_VER ?= $(shell if [ -e /proc/vz ]; then grep 5.[0-9] /etc/redhat-release; else false; fi)
ifneq "$(OPENVZ_VER)" ""
RHEL5_TREE := /usr/src/redhat/BUILD/ovzkernel-2.6.18/linux-$(shell uname -r).$(shell uname -i)
KERNEL_TREE := $(RHEL5_TREE)
endif
all:
$(MAKE) -C src KERNEL_TREE=$(KERNEL_TREE) PWD=$(shell pwd)/src all
install:
$(MAKE) -C src KERNEL_TREE=$(KERNEL_TREE) PWD=$(shell pwd)/src install
clean:
$(MAKE) -C src KERNEL_TREE=$(KERNEL_TREE) PWD=$(shell pwd)/src clean
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_facebook/flashcache.git
[email protected]:mirrors_facebook/flashcache.git
mirrors_facebook
flashcache
flashcache
master

搜索帮助