ci add Makefile test

This commit is contained in:
embeddedt
2022-04-29 19:38:04 -04:00
parent bf0a0d543b
commit ea79cee01a
3 changed files with 37 additions and 0 deletions

9
tests/makefile/Makefile Normal file
View File

@@ -0,0 +1,9 @@
LVGL_DIR := $(CURDIR)/../..
include ../../lvgl.mk
CSRCS += test.c
CFLAGS += -DLV_CONF_SKIP=1 -I$(LVGL_DIR)/..
COBJS := $(patsubst %.c, %.o, $(CSRCS))
test_file: $(COBJS)
$(CC) -o $@ $^

7
tests/makefile/test.c Normal file
View File

@@ -0,0 +1,7 @@
#include <stdio.h>
#include "lvgl/lvgl.h"
int main(void) {
lv_init();
return 0;
}