blob: 7910642ed53174d4721226b8a785e06d8d20c31d [file] [log] [blame]
# @see http://mtkswits01/~wimac
# @see libbase/Makefile
# @see libbase/Makefile.config
PREFIX = ../install
NAME = modemafectrl
COMPILER = GNU
CROSS = arm-linux-
CROSS_SUP= arm-linux- arm-none-eabi- aarch64-linux-
OFLAGS ?= -g -Os -fPIC -Wno-missing-braces
CFLAGS = $(OFLAGS) $(DEF_CFLAGS)
ifeq ($(strip $(CROSS)), arm-linux-)
CFLAGS += -mthumb-interwork
endif
INCLUDE_ADD = -I$(ROOT)/include/logger
CXXFLAGS = $(CFLAGS) $(CXXFLAGS_ADD)
CONFIG =
DEP_LIBS =
BACH_BUILD_DEP = liblogger # 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 = $(BB_LDFLAGS_ADD) -L. -L $(ROOT)/lib -L $(ROOT)/usr/lib -lpthread -lmodemafectrl -lasound -lmtk_audio_mixer_ctrl
LIB = lib$(NAME).a lib$(NAME).so
ALL =
CLEAN =
INSTALL = __install
STRICT = 1
ROOT = $(PREFIX)/$(CROSS:%-=%)
include $(PREFIX)/Makefile.template
include $(PREFIX)/Makefile.config
ifeq ($(BT_AUDIO_PCM_INTERFACE), yes)
CFLAGS += -DBT_AUDIO_PCM_SUPPORT
endif
__install:
mkdir -p ../include
cp -af include/* ../include/
mkdir -p $(ROOT)/${base_libdir}/
cp lib$(NAME).so $(ROOT)/${base_libdir}/
pack_rootfs:
# Shared library
mkdir -p $(PACK_TO)/${base_libdir}/
cp -af $(ROOT)/${base_libdir}/lib$(NAME).so $(PACK_TO)/${base_libdir}/
$(CROSS)strip $(PACK_TO)/${base_libdir}/lib$(NAME).so
ls -R $(PACK_TO)/${base_libdir}/lib$(NAME).so >> $(LIST)
du -c -h $(PACK_TO)/${base_libdir}/lib$(NAME).so >> $(SIZE)