88 lines
1.9 KiB
Makefile
88 lines
1.9 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=libaec-xt
|
|
PKG_VERSION:=0.0.1
|
|
PKG_RELEASE:=1
|
|
|
|
include $(BUILD_DIR)/package.mk
|
|
|
|
define Package/libaec-xt/Default
|
|
SECTION:=utils
|
|
CATEGORY:=Allwinner
|
|
TITLE:=Nuvoton Acoustic Echo Cancellation Algorithm
|
|
DEPENDS:=
|
|
endef
|
|
|
|
define Package/libaec-xt
|
|
$(call Package/libaec-xt/Default)
|
|
MENU:=1
|
|
DEFAULT:=1
|
|
endef
|
|
|
|
define Package/aec-xt-demo
|
|
$(call Package/libaec-xt/Default)
|
|
TITLE:=Nuvoton Acoustic Echo Cancellation Demo
|
|
DEPENDS := +libaec-xt
|
|
endef
|
|
|
|
define Package/libaec-xt/description
|
|
Nuvoton Acoustic Echo Cancellation Algorithm
|
|
endef
|
|
|
|
define Package/aec-xt-demo/description
|
|
Nuvoton Acoustic Echo Cancellation Demo
|
|
endef
|
|
|
|
define Build/Prepare
|
|
mkdir -p $(PKG_BUILD_DIR)
|
|
$(CP) -r ./src $(PKG_BUILD_DIR)/
|
|
$(CP) -r ./demo $(PKG_BUILD_DIR)/
|
|
endef
|
|
|
|
define Build/Configure
|
|
endef
|
|
|
|
define Build/Compile
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/src/ \
|
|
ARCH="$(TARGET_ARCH)" \
|
|
AR="$(TARGET_AR)" \
|
|
CC="$(TARGET_CC)" \
|
|
CXX="$(TARGET_CXX)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
CONFIG_PREFIX="$(PKG_INSTALL_DIR)" \
|
|
all
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR)/demo/ \
|
|
ARCH="$(TARGET_ARCH)" \
|
|
AR="$(TARGET_AR)" \
|
|
CC="$(TARGET_CC)" \
|
|
CXX="$(TARGET_CXX)" \
|
|
CFLAGS="$(TARGET_CFLAGS)" \
|
|
LDFLAGS="$(TARGET_LDFLAGS)" \
|
|
CONFIG_PREFIX="$(PKG_INSTALL_DIR)" \
|
|
all
|
|
endef
|
|
|
|
define Build/InstallDev
|
|
$(INSTALL_DIR) $(1)/lib
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/lib
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
|
|
endef
|
|
|
|
define Package/libaec-xt/install
|
|
$(INSTALL_DIR) $(1)/lib
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/*.a $(1)/lib
|
|
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
|
|
endef
|
|
|
|
define Package/aec-xt-demo/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/* $(1)/usr/bin/
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,libaec-xt))
|
|
$(eval $(call BuildPackage,aec-xt-demo))
|