1 Star 2 Fork 3

阿德/lvgl-ffmpeg

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Makefile.230305 1.90 KB
一键复制 编辑 原始数据 按行查看 历史
阿德 提交于 2023-03-06 15:04 . 第一次推送
#
# Makefile
#
$(warning Using Make to build this project is deprecated, please switch to CMake)
CC ?= gcc
LVGL_DIR_NAME ?= lvgl
LVGL_DIR ?= ${shell pwd}
WARNINGS ?= -Wall -Wextra \
-Wshadow -Wundef -Wmaybe-uninitialized -Wmissing-prototypes -Wno-discarded-qualifiers \
-Wno-unused-function -Wno-error=strict-prototypes -Wpointer-arith -fno-strict-aliasing -Wno-error=cpp -Wuninitialized \
-Wno-unused-parameter -Wno-missing-field-initializers -Wno-format-nonliteral -Wno-cast-qual -Wunreachable-code -Wno-switch-default \
-Wreturn-type -Wmultichar -Wformat-security -Wno-ignored-qualifiers -Wno-error=pedantic -Wno-sign-compare -Wno-error=missing-prototypes -Wdouble-promotion -Wclobbered -Wdeprecated \
-Wempty-body -Wshift-negative-value -Wstack-usage=2048 \
-Wtype-limits -Wsizeof-pointer-memaccess -Wpointer-arith
CFLAGS ?= -O3 -I$(LVGL_DIR) $(WARNINGS)
LDFLAGS ?= -lSDL2 -lm
SRC_DIR := ./
WORKING_DIR := ./build
BUILD_DIR := $(WORKING_DIR)/obj
BIN_DIR := $(WORKING_DIR)/bin
BIN := $(BIN_DIR)/demo
#BIN = demo
#Collect the files to compile
MAINSRC = ./main.c
include $(LVGL_DIR)/lvgl/lvgl.mk
include $(LVGL_DIR)/lv_drivers/lv_drivers.mk
CSRCS +=$(LVGL_DIR)/mouse_cursor_icon.c
OBJEXT ?= .o
AOBJS = $(ASRCS:.S=$(OBJEXT))
COBJS = $(CSRCS:.c=$(OBJEXT))
MAINOBJ = $(MAINSRC:.c=$(OBJEXT))
SRCS = $(ASRCS) $(CSRCS) $(MAINSRC)
OBJS = $(AOBJS) $(COBJS)
## MAINOBJ -> OBJFILES
# Automatically include all source files
#SRCS := $(shell find $(SRC_DIR) -type f -name '*.c' -not -path '*/\.*')
#OBJECTS := $(patsubst $(SRC_DIR)%,$(BUILD_DIR)/%,$(SRCS:.$(SRC_EXT)=.$(OBJ_EXT)))
all: default
%.o: %.c
@$(CC) $(CFLAGS) -c $< -o $@
@echo "CC $<"
default: $(AOBJS) $(COBJS) $(MAINOBJ)
$(CC) -o $(BIN) $(MAINOBJ) $(AOBJS) $(COBJS) $(LDFLAGS)
clean:
#rm -rf $(WORKING_DIR)
rm -f $(BIN) $(AOBJS) $(COBJS) $(MAINOBJ)
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C
1
https://gitee.com/huangweide001/lvgl-ffmpeg.git
[email protected]:huangweide001/lvgl-ffmpeg.git
huangweide001
lvgl-ffmpeg
lvgl-ffmpeg
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385