blob: 3540a8df8c04c3186b81a4e3932c1c2c7f0f61b4 [file] [log] [blame]
#SPDX-License-Identifier: MediaTekProprietary
# @see http://mtkswits01/~wimac
# @see libbase/Makefile
# @see libbase/Makefile.config
PREFIX = ../install
NAME = pal
COMPILER = GNU
CROSS = arm-linux-
CROSS_SUP= arm-linux- arm-none-eabi- aarch64-linux-
OFLAGS ?= -g -Os -fPIC
CFLAGS = $(OFLAGS) $(DEF_CFLAGS)
ifeq ($(strip $(CROSS)), arm-linux-)
CFLAGS += -mthumb-interwork
endif
INCLUDE_ADD = -I$(ROOT)/include/logger \
-I$(ROOT)/include/cutils
CXXFLAGS = $(CFLAGS) $(CXXFLAGS_ADD)
CONFIG =
DEP_LIBS =cutils
BACH_BUILD_DEP = # Bach asynchronous build dependency directives
##
# @brief
# base_init: single alone application
# bsp_init - single alone application with IRQ support (CISR object)
# syss_init - with threadX operating system
# @note active iff NEWLIB=1
##
INIT = syss_init
LDFLAGS = $(DEF_LDFLAGS)
LIB = lib$(NAME).a lib$(NAME).so
ALL =
CLEAN =
INSTALL = __install
STRICT = 1
ROOT = $(PREFIX)/$(CROSS:%-=%)
include $(PREFIX)/Makefile.template
include $(PREFIX)/Makefile.config
__install:
mkdir -p $(ROOT)/$(base_libdir)
mkdir -p $(ROOT)/$(includedir)/$(NAME)
-cp -af lib$(NAME).* $(ROOT)/$(base_libdir)/
-cp -rf $(INCLUDES) $(ROOT)/$(includedir)/$(NAME)
pack_rootfs:
mkdir -p $(PACK_TO)/${base_libdir}/
-cp -af $(ROOT)/${base_libdir}/lib$(NAME).* $(PACK_TO)/${base_libdir}/