init commit

This commit is contained in:
2025-02-04 09:25:31 +08:00
commit 8707000b66
2 changed files with 33 additions and 0 deletions

19
Makefile Normal file
View File

@@ -0,0 +1,19 @@
# 编译器设置
export CC=gcc
export CXX=g++
export AS=gcc
# 编译器标志
CFLAGS=-Wall -g
CXXFLAGS=-Wall -g
ASFLAGS=-c
.PHONY: otapackage clean
# 编译结果
otapackage:
make -e -f bionic.mk
# 清理编译生成的文件
clean:
rm -rf out/

14
bionic.mk Normal file
View File

@@ -0,0 +1,14 @@
# 目标文件
TARGET=myprogram
.PHONY: clean
# 默认目标
all: $(TARGET)
# 链接目标文件生成最终程序
$(TARGET):
@echo $(CC)
# 清理编译生成的文件
clean:
rm -f $(TARGET) $(OBJECTS_C) $(OBJECTS_CPP) $(OBJECTS_ASM)