SmartAudio/package/allwinner/evevehicledetect/Makefile

50 lines
1.1 KiB
Makefile
Raw Normal View History

2018-07-13 01:31:50 +00:00
include $(TOPDIR)/rules.mk
2018-12-13 10:48:25 +00:00
include $(BUILD_DIR)/kernel.mk
2018-07-13 01:31:50 +00:00
2018-12-13 10:48:25 +00:00
PKG_NAME:=evevehicledetect
PKG_VERSION:=1
2018-07-13 01:31:50 +00:00
PKG_RELEASE:=1
PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME)
include $(BUILD_DIR)/package.mk
define Package/$(PKG_NAME)
SECTION:=utils
2018-12-13 10:48:25 +00:00
CATEGORY:=Allwinner
TITLE:=evevehicledetect
DEPENDS:=+libstdcpp
2018-07-13 01:31:50 +00:00
endef
define Package/$(PKG_NAME)/description
2018-12-13 10:48:25 +00:00
Eve test
2018-07-13 01:31:50 +00:00
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -r ./src/* $(PKG_BUILD_DIR)/
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/ \
ARCH="$(TARGET_ARCH)" \
AR="$(TARGET_AR)" \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
2018-12-13 10:48:25 +00:00
TARGET_BOARD="$(TARGET_BOARD_PLATFORM)"
2018-07-13 01:31:50 +00:00
endef
define Package/$(PKG_NAME)/install
2018-12-13 10:48:25 +00:00
$(INSTALL_DIR) $(1)/usr/bin/
$(INSTALL_DIR) $(1)/usr/lib/
$(INSTALL_DIR) $(1)/etc/eve/
$(INSTALL_DATA) $(PKG_BUILD_DIR)/classifier/* $(1)/etc/eve/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/lib/*.so $(1)/usr/lib/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
2018-07-13 01:31:50 +00:00
endef
$(eval $(call BuildPackage,$(PKG_NAME)))