Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Makefile.inc 1.72 KB
Copy Edit Web IDE Raw Blame History
alien2017 authored 2020-09-04 09:41 . 增加第三方的heap管理函数
LUATOS_DIR := $(LUATOS_SRC)
CFLAGS_INC += -I $(LUATOS_DIR)/lua/include \
-I $(LUATOS_DIR)/luat/include \
-I $(LUATOS_DIR)/luat/packages/vsprintf \
-I $(LUATOS_DIR)/luat/packages/u8g2 \
-I $(LUATOS_DIR)/luat/packages/minmea \
-I $(LUATOS_DIR)/luat/packages/fatfs \
-I $(LUATOS_DIR)/luat/packages/heap \
-I $(LUATOS_DIR)/bsp/air302/include
LUATOS_SRC_DIRS += $(LUATOS_DIR)/lua/src \
$(LUATOS_DIR)/luat/modules \
$(LUATOS_DIR)/luat/packages/vsprintf \
$(LUATOS_DIR)/luat/packages/lua-cjson \
$(LUATOS_DIR)/luat/packages/u8g2 \
$(LUATOS_DIR)/luat/packages/fatfs \
$(LUATOS_DIR)/luat/packages/minmea \
$(LUATOS_DIR)/luat/packages/heap \
$(LUATOS_DIR)/bsp/air302/src
LUATOS_CSRC = $(foreach dir, $(LUATOS_SRC_DIRS), $(wildcard $(dir)/*.c))
LUATOS_CFILES = $(LUATOS_CSRC)
LUATOS_COBJSTEMP := $(patsubst %.c, %.o, $(LUATOS_CFILES))
LUATOS_COBJSTEMP :=$(subst $(LUATOS_DIR),LuatOS,$(LUATOS_COBJSTEMP))
LUATOS_COBJS := $(addprefix $(BUILDDIR)/, $(LUATOS_COBJSTEMP))
-include $(LUATOS_COBJS:.o=.d)
CFLAGS += -DWITH_POSIX -DAIR302
ifeq ($(USE_CHINESE_WQY12_FONT), y)
CFLAGS += -DUSE_CHINESE_WQY12_FONT
endif
ifeq ($(TOOLCHAIN),GCC)
CFLAGS_INC += -I $(TOP)/PLAT/os/freertos/portable/gcc
CFLAGS_INC += -I $(GCCLIB_PATH)/arm-none-eabi/include
lib-y += libluatos.a
$(BUILDDIR)/lib/libluatos.a: $(LUATOS_COBJS)
@mkdir -p $(dir $@)
$(ECHO) AR $@
$(Q)$(AR) -cr $@ $^
endif
ifeq ($(TOOLCHAIN),ARMCC)
CFLAGS_INC += -I $(TOP)/PLAT/os/freertos/portable/keil
lib-y += libluatos.lib
$(BUILDDIR)/lib/libluatos.lib: $(LUATOS_COBJS)
@mkdir -p $(dir $@)
$(ECHO) AR $@
$(Q)$(AR) $(ARFLAGS) $@ $^
endif

Comment ( 0 )

Sign in for post a comment