mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-27 00:31:09 +00:00
32 lines
722 B
Plaintext
32 lines
722 B
Plaintext
|
include $(TOPDIR)/rules.mk
|
|||
|
|
|||
|
PKG_NAME:=dna
|
|||
|
PKG_RELEASE:=1
|
|||
|
PKG_VERSION:=1
|
|||
|
|
|||
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|||
|
|
|||
|
include $(INCLUDE_DIR)/package.mk
|
|||
|
|
|||
|
define Package/dna
|
|||
|
SECTION:=utils
|
|||
|
CATEGORY:=Utilities
|
|||
|
TITLE:=dna
|
|||
|
DESCRIPTION:=Serval Distributed Numbering Architecture Reference Implementation
|
|||
|
endef
|
|||
|
|
|||
|
define Build/Compile
|
|||
|
mkdir -p $(PKG_BUILD_DIR)
|
|||
|
$(CP) ./src/* $(PKG_BUILD_DIR)/
|
|||
|
$(TARGET_CC) $(PKG_BUILD_DIR)/*.c -o $(PKG_BUILD_DIR)/dna
|
|||
|
## $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
|
|||
|
endef
|
|||
|
|
|||
|
define Package/dna/install
|
|||
|
$(INSTALL_DIR) $(1)/usr/bin
|
|||
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/dna $(1)/usr/bin
|
|||
|
endef
|
|||
|
|
|||
|
$(eval $(call BuildPackage,dna))
|
|||
|
|