加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Makefile 1.66 KB
一键复制 编辑 原始数据 按行查看 历史
世玉轩 提交于 2021-05-14 09:27 . Support 100ask imx6ull board
#
# Makefile
#
# https://www.100ask.net/
#
CC := arm-buildroot-linux-gnueabihf-gcc
#CC ?= gcc
LVGL_DIR ?= ${shell pwd}
LVGL_DIR_NAME ?= lvgl
#WARNINGS = -Wall -Wextra \
-Wshadow -Wundef -Wmaybe-uninitialized -Wmissing-prototypes -Wpointer-arith -Wuninitialized \
-Wunreachable-code -Wreturn-type -Wmultichar -Wdouble-promotion -Wclobbered -Wdeprecated \
-Wempty-body -Wshift-negative-value \
-Wtype-limits -Wsizeof-pointer-memaccess
#WARNINGS = -Werror -Wextra \
-Wshadow -Wundef -Wmaybe-uninitialized -Wmissing-prototypes -Wpointer-arith -Wuninitialized \
-Wunreachable-code -Wreturn-type -Wmultichar -Wdouble-promotion -Wclobbered -Wdeprecated \
-Wempty-body -Wshift-negative-value -Wstack-usage=2048 \
-Wtype-limits -Wsizeof-pointer-memaccess
#-Wno-unused-value -Wno-unused-parameter
OPTIMIZATION ?= -O3 -g0
CFLAGS ?= -I$(LVGL_DIR)/ $(DEFINES) $(WARNINGS) $(OPTIMIZATION) -I$(LVGL_DIR) -I.
LDFLAGS ?= -lm
#LDFLAGS ?= -lm -linput -lpng
BIN ?= output/lvgl_100ask_demo
#Collect the files to compile
MAINSRC = ./main.c
#CSRCS += lv_drivers/display/fbdev.c
include ./lvgl/lvgl.mk
include ./lv_drivers/lv_drivers.mk
include ./lv_100ask/lv_100ask.mk
include ./lv_lib_png/lv_lib_png.mk
OBJEXT ?= .o
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))
MAINOBJ = $(MAINSRC:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
OBJS = $(AOBJS) $(COBJS)
## MAINOBJ -> OBJFILES
all: default
%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@
@echo "CC $<"
default: $(AOBJS) $(COBJS) $(MAINOBJ)
$(CC) -o $(BIN) $(MAINOBJ) $(AOBJS) $(COBJS) $(LDFLAGS)
clean:
rm -f $(BIN) $(AOBJS) $(COBJS) $(MAINOBJ)
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化