Setup for pm3 building
This commit is contained in:
14
Makefile
14
Makefile
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user