Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Third Party Unity
提交
bcb4b74d
T
Third Party Unity
项目概览
OpenHarmony
/
Third Party Unity
接近 2 年 前同步成功
通知
38
Star
144
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
T
Third Party Unity
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
bcb4b74d
编写于
11月 03, 2014
作者:
M
Mark VanderVoord
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
- updated example makefiles to handle cygwin better
上级
7aca6288
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
44 addition
and
32 deletion
+44
-32
examples/example_1/makefile
examples/example_1/makefile
+15
-11
examples/example_2/makefile
examples/example_2/makefile
+14
-10
examples/example_3/makefile
examples/example_3/makefile
+15
-11
未找到文件。
examples/example_1/makefile
浏览文件 @
bcb4b74d
...
@@ -4,16 +4,26 @@
...
@@ -4,16 +4,26 @@
# [Released under MIT License. Please refer to license.txt for details]
# [Released under MIT License. Please refer to license.txt for details]
# ==========================================
# ==========================================
#We try to detect the OS we are running on, and adjust commands as needed
ifeq
($(OSTYPE),cygwin)
CLEANUP
=
rm
-f
MKDIR
=
mkdir
-p
TARGET_EXTENSION
=
.out
else
ifeq
($(OS),Windows_NT)
CLEANUP
=
del /F /Q
MKDIR
=
mkdir
TARGET_EXTENSION
=
.exe
else
CLEANUP
=
rm
-f
MKDIR
=
mkdir
-p
TARGET_EXTENSION
=
.out
endif
UNITY_ROOT
=
../..
UNITY_ROOT
=
../..
C_COMPILER
=
gcc
C_COMPILER
=
gcc
CFLAGS
=
-std
=
c99
CFLAGS
=
-std
=
c99
TARGET_BASE1
=
test1
TARGET_BASE1
=
test1
TARGET_BASE2
=
test2
TARGET_BASE2
=
test2
ifeq
($(OS),Windows_NT)
TARGET_EXTENSION
=
.exe
else
TARGET_EXTENSION
=
.out
endif
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
TARGET2
=
$(TARGET_BASE2)$(TARGET_EXTENSION)
TARGET2
=
$(TARGET_BASE2)$(TARGET_EXTENSION)
SRC_FILES1
=
$(UNITY_ROOT)
/src/unity.c src/ProductionCode.c
test
/TestProductionCode.c
test
/test_runners/TestProductionCode_Runner.c
SRC_FILES1
=
$(UNITY_ROOT)
/src/unity.c src/ProductionCode.c
test
/TestProductionCode.c
test
/test_runners/TestProductionCode_Runner.c
...
@@ -21,12 +31,6 @@ SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCo
...
@@ -21,12 +31,6 @@ SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCo
INC_DIRS
=
-Isrc
-I
$(UNITY_ROOT)
/src
INC_DIRS
=
-Isrc
-I
$(UNITY_ROOT)
/src
SYMBOLS
=
-DTEST
SYMBOLS
=
-DTEST
ifeq
($(OS),Windows_NT)
CLEANUP
=
del /F /Q
$(TARGET1)
&&
del /F /Q
$(TARGET2)
else
CLEANUP
=
rm
-f
build/
*
.o
;
rm
-f
$(TARGET1)
;
rm
-f
$(TARGET2)
endif
all
:
clean default
all
:
clean default
default
:
default
:
...
...
examples/example_2/makefile
浏览文件 @
bcb4b74d
...
@@ -4,14 +4,24 @@
...
@@ -4,14 +4,24 @@
# [Released under MIT License. Please refer to license.txt for details]
# [Released under MIT License. Please refer to license.txt for details]
# ==========================================
# ==========================================
UNITY_ROOT
=
../..
#We try to detect the OS we are running on, and adjust commands as needed
C_COMPILER
=
gcc
ifeq
($(OSTYPE),cygwin)
TARGET_BASE1
=
all_tests
CLEANUP
=
rm
-f
ifeq
($(OS),Windows_NT)
MKDIR
=
mkdir
-p
TARGET_EXTENSION
=
.out
else
ifeq
($(OS),Windows_NT)
CLEANUP
=
del /F /Q
MKDIR
=
mkdir
TARGET_EXTENSION
=
.exe
TARGET_EXTENSION
=
.exe
else
else
CLEANUP
=
rm
-f
MKDIR
=
mkdir
-p
TARGET_EXTENSION
=
.out
TARGET_EXTENSION
=
.out
endif
endif
UNITY_ROOT
=
../..
C_COMPILER
=
gcc
TARGET_BASE1
=
all_tests
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
SRC_FILES1
=
\
SRC_FILES1
=
\
$(UNITY_ROOT)
/src/unity.c
\
$(UNITY_ROOT)
/src/unity.c
\
...
@@ -26,12 +36,6 @@ SRC_FILES1=\
...
@@ -26,12 +36,6 @@ SRC_FILES1=\
INC_DIRS
=
-Isrc
-I
$(UNITY_ROOT)
/src
-I
$(UNITY_ROOT)
/extras/fixture/src
INC_DIRS
=
-Isrc
-I
$(UNITY_ROOT)
/src
-I
$(UNITY_ROOT)
/extras/fixture/src
SYMBOLS
=
SYMBOLS
=
ifeq
($(OS),Windows_NT)
CLEANUP
=
del /F /Q
$(TARGET1)
else
CLEANUP
=
rm
-f
build/
*
.o
;
rm
-f
$(TARGET1)
endif
all
:
clean default
all
:
clean default
default
:
default
:
...
...
examples/example_3/makefile
浏览文件 @
bcb4b74d
...
@@ -4,16 +4,26 @@
...
@@ -4,16 +4,26 @@
# [Released under MIT License. Please refer to license.txt for details]
# [Released under MIT License. Please refer to license.txt for details]
# ==========================================
# ==========================================
#We try to detect the OS we are running on, and adjust commands as needed
ifeq
($(OSTYPE),cygwin)
CLEANUP
=
rm
-f
MKDIR
=
mkdir
-p
TARGET_EXTENSION
=
.out
else
ifeq
($(OS),Windows_NT)
CLEANUP
=
del /F /Q
MKDIR
=
mkdir
TARGET_EXTENSION
=
.exe
else
CLEANUP
=
rm
-f
MKDIR
=
mkdir
-p
TARGET_EXTENSION
=
.out
endif
UNITY_ROOT
=
../..
UNITY_ROOT
=
../..
C_COMPILER
=
gcc
C_COMPILER
=
gcc
CFLAGS
=
-std
=
c99
CFLAGS
=
-std
=
c99
TARGET_BASE1
=
test1
TARGET_BASE1
=
test1
TARGET_BASE2
=
test2
TARGET_BASE2
=
test2
ifeq
($(OS),Windows_NT)
TARGET_EXTENSION
=
.exe
else
TARGET_EXTENSION
=
.out
endif
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
TARGET1
=
$(TARGET_BASE1)$(TARGET_EXTENSION)
TARGET2
=
$(TARGET_BASE2)$(TARGET_EXTENSION)
TARGET2
=
$(TARGET_BASE2)$(TARGET_EXTENSION)
SRC_FILES1
=
$(UNITY_ROOT)
/src/unity.c src/ProductionCode.c
test
/TestProductionCode.c
test
/no_ruby/TestProductionCode_Runner.c
SRC_FILES1
=
$(UNITY_ROOT)
/src/unity.c src/ProductionCode.c
test
/TestProductionCode.c
test
/no_ruby/TestProductionCode_Runner.c
...
@@ -21,12 +31,6 @@ SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCo
...
@@ -21,12 +31,6 @@ SRC_FILES2=$(UNITY_ROOT)/src/unity.c src/ProductionCode2.c test/TestProductionCo
INC_DIRS
=
-Isrc
-I
$(UNITY_ROOT)
/src
INC_DIRS
=
-Isrc
-I
$(UNITY_ROOT)
/src
SYMBOLS
=
-DTEST
SYMBOLS
=
-DTEST
ifeq
($(OS),Windows_NT)
CLEANUP
=
del /F /Q
$(TARGET1)
&&
del /F /Q
$(TARGET2)
else
CLEANUP
=
rm
-f
build/
*
.o
;
rm
-f
$(TARGET1)
;
rm
-f
$(TARGET2)
endif
all
:
clean default
all
:
clean default
default
:
default
:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录