3 Star 2 Fork 2

Gitee 极速下载/my-basic

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库: https://github.com/paladin-t/my_basic
克隆/下载
makefile 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
Wang Renxin 提交于 2022-06-11 19:54 . *Updated the making stuff.
OS := $(shell uname -s)
IS_APPLE := $(shell echo $(OS)|grep -i darwin)
ifdef IS_APPLE
my_basic: my_basic_x86_app.o my_basic_arm_app.o
lipo -create -output output/my_basic my_basic_x86_app.o my_basic_arm_app.o
my_basic_x86_app.o: my_basic_x86.o main_x86.o
cc -o my_basic_x86_app.o my_basic_x86.o main_x86.o -target x86_64-apple-macos10.12
my_basic_arm_app.o: my_basic_arm.o main_arm.o
cc -o my_basic_arm_app.o my_basic_arm.o main_arm.o -target arm64-apple-macos11
my_basic_x86.o: core/my_basic.c core/my_basic.h
cc -Os -c core/my_basic.c -Wno-multichar -Wno-overflow -Wno-unused-result -o my_basic_x86.o -target x86_64-apple-macos10.12
main_x86.o: shell/main.c core/my_basic.h
cc -Os -c shell/main.c -Wno-unused-result -o main_x86.o -target x86_64-apple-macos10.12
my_basic_arm.o: core/my_basic.c core/my_basic.h
cc -Os -c core/my_basic.c -Wno-multichar -Wno-overflow -Wno-unused-result -o my_basic_arm.o -target arm64-apple-macos11
main_arm.o: shell/main.c core/my_basic.h
cc -Os -c shell/main.c -Wno-unused-result -o main_arm.o -target arm64-apple-macos11
else
my_basic: my_basic.o main.o
cc -o output/my_basic my_basic.o main.o -lm -lrt
my_basic.o: core/my_basic.c core/my_basic.h
cc -Os -c core/my_basic.c -Wno-multichar -Wno-overflow -Wno-unused-result
main.o: shell/main.c core/my_basic.h
cc -Os -c shell/main.c -Wno-unused-result
endif
clean:
rm -f *.o output/my_basic output/my_basic.exe
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C/C++
1
https://gitee.com/mirrors/my-basic.git
git@gitee.com:mirrors/my-basic.git
mirrors
my-basic
my-basic
master

搜索帮助