mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-23 23:12:31 +00:00
a82c8f2f41
Replaced "dna" everywhere with "servald". #26
34 lines
716 B
Plaintext
34 lines
716 B
Plaintext
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=servald
|
|
PKG_RELEASE:=1
|
|
PKG_VERSION:=1
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
|
|
|
define Package/servald
|
|
SECTION:=utils
|
|
CATEGORY:=Utilities
|
|
TITLE:=servald
|
|
endef
|
|
|
|
define Package/servald/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)/servald
|
|
# $(MAKE) CC=$(TARGET_CC) -C $(PKG_BUILD_DIR)
|
|
endef
|
|
|
|
define Package/servald/install
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
$(INSTALL_BIN) $(PKG_BUILD_DIR)/servald $(1)/usr/bin
|
|
endef
|
|
|
|
$(eval $(call BuildPackage,servald))
|