Setup for pm3 building

This commit is contained in:
Edith Boles
2026-03-01 18:10:48 -08:00
parent d70c09e03c
commit e0d0728b12
6 changed files with 1196 additions and 26 deletions

View File

@@ -1,7 +1,17 @@
.PHONY: all clean build zip
CC := gcc
CFLAGS := -MD -Wall -g -lm -lX11 -I ./inc/
API := x11
CFLAGS := -MD -Wall -g -lm -pthread -I ./inc/
ifeq ($(API), arm)
CC := arm-cortexa9_neon-linux-gnueabihf-gcc
CFLAGS := $(CFLAGS) -D LV_TARGET_FB
else
CC := gcc
CFLAGS := $(CFLAGS) -lX11
endif
TARGETS := pm3-lvgl
EXES := $(patsubst %,bin/%,$(TARGETS))
SRCS := $(shell find src inc -type f -iname '*.c')