1 Star 0 Fork 49

XieNan/media-server

forked from ireader/media-server 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile 1.17 KB
一键复制 编辑 原始数据 按行查看 历史
weishao 提交于 2023-08-01 18:53 . Update Makefile
ARCHBITS ?= # 32/64 bits
ifeq ($(shell uname -m), x86_64)
ARCHBITS = 64
else ifeq ($(shell getconf LONG_BIT), 64)
ARCHBITS = 64
else ifeq ($(shell arch), x86_64)
ARCHBITS = 64
endif
ifdef PLATFORM
CROSS:=$(PLATFORM)-
else
OSID := $(shell awk -F'=' '/^ID=/ {print $$2}' /etc/os-release | tr -d '"')
OSVERSIONID := $(shell awk -F'=' '/^VERSION_ID=/ {print $$2"-"}' /etc/os-release | tr -d '"')
CROSS:=
PLATFORM:=${OSID}$(OSVERSIONID)linux$(ARCHBITS)
endif
ifeq ($(RELEASE),1)
BUILD:=release
else
BUILD:=debug
endif
all:
$(MAKE) -C libdash
$(MAKE) -C libflv
$(MAKE) -C libhls
$(MAKE) -C libmkv
$(MAKE) -C libmov
$(MAKE) -C libmpeg
$(MAKE) -C librtmp
$(MAKE) -C librtp
$(MAKE) -C librtsp
$(MAKE) -C libsip
clean:
$(MAKE) -C libdash clean
$(MAKE) -C libflv clean
$(MAKE) -C libhls clean
$(MAKE) -C libmkv clean
$(MAKE) -C libmov clean
$(MAKE) -C libmpeg clean
$(MAKE) -C librtmp clean
$(MAKE) -C librtp clean
$(MAKE) -C librtsp clean
$(MAKE) -C libsip clean
$(MAKE) -C test clean
.PHONY : test
test:
$(MAKE) -C ../avcodec
$(MAKE) -C ../sdk
$(MAKE) -C test
@rm libaio.so
ln -sf ../sdk/libaio/$(BUILD).$(PLATFORM)/libaio.so . && ./test/$(BUILD).$(PLATFORM)/test
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/MoFeiMing/media-server.git
git@gitee.com:MoFeiMing/media-server.git
MoFeiMing
media-server
media-server
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385