allwinner-midware/app/baidu_oases/Makefile

58 lines
1.4 KiB
Makefile
Raw Normal View History

2018-12-29 07:12:07 +00:00
include $(TINA_BUILD_TOP)/package/netease/Makefile.common
include $(TOPDIR)/rules.mk
include $(TINA_BUILD_TOP)/package/netease/submodules/Makefile.common.submodule
PKG_NAME:=baidu_oases
PKG_RELEASE:=1
PKG_VERSION:=0.0.1
PKG_BUILD_DIR := $(COMPILE_DIR)/$(PKG_NAME)
include $(BUILD_DIR)/package.mk
TARGET_CFLAGS+= -DHARDWARE_VERSION=\\\"$(HARDWARE_VERSION)\\\" -DHARDWARE_ALIAS=\\\"$(HARDWARE_ALIAS)\\\" -DGIT_TAG=\"$(GIT_TAG)\"
TARGET_LDFLAGS+= $(BUILD_COMMON_LIB)
define Package/$(PKG_NAME)
SECTION:=utils
CATEGORY:=Netease
TITLE:=Baidu_oases
MAINTAINER:=Wangzijiao <hzwangzijiao@corp.netease.com>
DEPENDS:=$(MAKE_COMMON_DEPEND) +libstdcpp +libcutils
endef
define Package/$(PKG_NAME)/description
$(PKG_NAME) baidu oases
endef
define Build/Prepare
mkdir -p $(PKG_BUILD_DIR)
$(CP) -d ./src/ $(PKG_BUILD_DIR)/
endef
define Build/Configure
endef
define Build/InstallDev
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR)/src \
ARCH="$(TARGET_ARCH)" \
AR="$(TARGET_AR)" \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
CPP="$(TARGET_CC)" \
CFLAGS="$(TARGET_CFLAGS)" \
LDFLAGS="$(TARGET_LDFLAGS)" \
INSTALL_PREFIX="$(PKG_INSTALL_DIR)" \
TARGET_NAME=$(PKG_NAME) \
everything
endef
define Package/$(PKG_NAME)/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/$(PKG_NAME) $(1)/usr/bin/
endef
$(eval $(call BuildPackage,$(PKG_NAME)))