Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrQzs committed Jun 4, 2021
1 parent b9809fb commit 2fbff87
Show file tree
Hide file tree
Showing 272 changed files with 237,418 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#
# Makefile
#
# CC = gcc
CC = armgcc
LVGL_DIR ?= $(shell cd)
LVGL_DIR_NAME ?= lvgl
LV_DRIVERS_DIR_NAME ?= lv_drivers
OBJ_DIR ?= $(LVGL_DIR)/obj

CFLAGS ?= -w -g0 -O3 -pipe -fPIC -I$(LVGL_DIR)/
LDFLAGS ?= -lpthread
CVERSION ?= -std=c99
TARGET = $(LVGL_DIR)/target/liblvgl.so

include $(LVGL_DIR)/lv_drivers/lv_drivers.mk
include $(LVGL_DIR)/lvgl/lvgl.mk

SRCS = $(CSRCS)
OBJS = $(addprefix $(OBJ_DIR)/,$(patsubst %.c,%.o,$(notdir $(SRCS))))
DELOBJS = $(addprefix .\obj\,$(patsubst %.c,%.o,$(notdir $(SRCS))))

all: default

$(OBJ_DIR)/%.o: %.c
@$(CC) $(CVERSION) $(CFLAGS) -c $< -o $@
@echo "CC $<"

default: $(OBJS)
$(CC) -g -shared -o $(TARGET) $^ $(LDFLAGS) $(CVERSION)

.PHONY: clean
clean:
del .\target\liblvgl.so
del $(DELOBJS)
6 changes: 6 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
set currentpath=%cd%
set armgcc=C:/arm-2014.05/bin/

%armgcc%cs-make -j4
@cmd.exe
Loading

0 comments on commit 2fbff87

Please sign in to comment.