Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
9fbdf500
提交
9fbdf500
authored
8月 04, 2015
作者:
Iñaki Baz Castillo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Make Makefile more verbose.
上级
e19fc4f6
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
19 行增加
和
11 行删除
+19
-11
Makefile
Makefile
+19
-11
没有找到文件。
Makefile
浏览文件 @
9fbdf500
...
...
@@ -2,14 +2,14 @@ APP_NAME := mediasoup
#
# Compiler
# Compiler
.
#
# CXX := g++-4.8
# CXX := g++-4.9 -fdiagnostics-color=auto
# CXX := clang++
#
# Development flags
# Development flags
.
# Comment/uncomment them during development.
#
DO_DEBUG_SYMBOLS
:=
-g
...
...
@@ -20,7 +20,7 @@ DO_DEBUG_SYMBOLS := -g
DEV_FLAGS
:=
$(DO_DEBUG_SYMBOLS)
$(DO_SANITIZE)
$(DO_OPTIMIZE)
$(DO_PEDANTIC)
#
# Custom macros
# Custom macros
.
# Added to the CXXFLAGS exported variable (before running make).
#
# -DMS_DEVEL enables MS_TRACE().
...
...
@@ -84,13 +84,13 @@ LDFLAGS += $(shell pkg-config --libs "$(PKG_LIBS)")
#
# Targets
# Targets
.
#
# This indicates that "all", APP_NAME, "check_pkg_libs" and "clean" are
# "phony targets". Therefore calling "make XXXX" should execute the content of its
# build rules, even if a newer file named "XXXX" exists.
.PHONY
:
all $(APP_NAME) check_pkg_libs
clean deps
.PHONY
:
all $(APP_NAME) check_pkg_libs
echo_all_objs clean deps doc
# This is first build rule in the Makefile, and so executing "make" and executing
# "make all" are the same. The target simply depends on $(APP_NAME).
...
...
@@ -102,27 +102,35 @@ all: $(APP_NAME)
# the same name as the app. Note that LINK.cc makes use of CXX, CXXFLAGS,
# LFLAGS, etc. LINK.cc is usually defined as: $(CXX) $(CXXFLAGS) $(CPPFLAGS)
# $(LDFLAGS) $(TARGET_ARCH).
$(APP_NAME)
:
check_pkg_libs $(ALL_OBJS)
$(APP_NAME)
:
check_pkg_libs
echo_all_objs
$(ALL_OBJS)
@
mkdir
-p
$(APP_BIN_DIR)
@
echo
"INFO: linking .o objects and libraries into
$(APP_BIN_DIR)
/
$(APP_NAME)
..."
$
(
LINK.cc
)
$(ALL_OBJS)
$(DEP_LIBS)
-o
$(APP_BIN_DIR)
/
$(APP_NAME)
# Check required libraries with pkg-support.
check_pkg_libs
:
pkg-config
--exists
--print-errors
"
$(PKG_LIBS)
"
@
echo
"INFO: checking required PKG libraries ..."
@
pkg-config
--exists
--print-errors
"
$(PKG_LIBS)
"
echo_all_objs
:
@
echo
"INFO: compiling source files into .o object files ..."
# This target removes the built app and the generated object files. The @ symbol
# indicates that the line should be run silently, and the - symbol indicates that
# errors should be ignored (i.e., the file doesn't exist).
clean
:
$(RM)
-rf
$(APP_BIN_DIR)
$(RM)
$(ALL_OBJS)
@
echo
"INFO: deleting
$(APP_BIN_DIR)
folder ..."
@
$(RM)
-rf
$(APP_BIN_DIR)
@
echo
"INFO: deleting .o object files ..."
@
$(RM)
$(ALL_OBJS)
deps
:
@
echo
"INFO: retrieving Git submodules..."
@
echo
"INFO: retrieving Git submodules
..."
git submodule init
git submodule update
@
echo
"INFO: building jsoncpp stuff..."
@
echo
"INFO: building jsoncpp stuff
..."
cd
./deps/jsoncpp
&&
python amalgamate.py
>
/dev/null
doc
:
@
echo
"INFO: generating documentation ..."
cldoc generate
$(CXXFLAGS)
$(CPPFLAGS)
$(LDFLAGS)
--
--output
cldoc
$(APP_SOURCES)
$(APP_HEADERS)
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论