mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 23:39:41 +02:00
Convert ttcp to new packaging style, add PKG_VERSION, use TARGET_CFLAGS
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@982 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
7bcb89d4cc
commit
5c1f37d450
@ -3,29 +3,28 @@
|
|||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=ttcp
|
PKG_NAME:=ttcp
|
||||||
|
PKG_VERSION:=3.8
|
||||||
PKG_RELEASE:=1
|
PKG_RELEASE:=1
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
|
PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
|
||||||
PKG_IPK_DIR:=$(PKG_BUILD_DIR)
|
|
||||||
PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_RELEASE)_$(ARCH).ipk
|
|
||||||
|
|
||||||
$(PKG_BUILD_DIR)/usr/bin/ttcp:
|
include $(TOPDIR)/package/rules.mk
|
||||||
mkdir -p $(PKG_BUILD_DIR)/usr/bin
|
|
||||||
$(TARGET_CC) -o $@ ttcp.c
|
|
||||||
$(STRIP) $@
|
|
||||||
|
|
||||||
$(PKG_IPK): $(PKG_BUILD_DIR)/usr/bin/ttcp
|
$(eval $(call PKG_template,TTCP,ttcp,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
||||||
$(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
|
|
||||||
$(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
|
|
||||||
|
|
||||||
$(IPKG_STATE_DIR)/info/$(PKG_NAME).list:
|
$(PKG_BUILD_DIR)/.prepared:
|
||||||
$(IPKG) install $(PKG_IPK)
|
mkdir -p $@
|
||||||
|
touch $@
|
||||||
|
|
||||||
source:
|
$(PKG_BUILD_DIR)/.configured:
|
||||||
prepare:
|
touch $@
|
||||||
compile: $(PKG_IPK)
|
|
||||||
install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
|
|
||||||
|
|
||||||
clean:
|
$(PKG_BUILD_DIR)/.built:
|
||||||
rm -rf $(PKG_BUILD_DIR)
|
$(TARGET_CC) $(TARGET_CFLAGS) -o $(PKG_BUILD_DIR)/ttcp ttcp.c
|
||||||
rm -f $(PKG_IPK)
|
touch $@
|
||||||
|
|
||||||
|
$(IPKG_TTCP):
|
||||||
|
install -d -m0755 $(IDIR_TTCP)/usr/bin
|
||||||
|
install -m0755 $(PKG_BUILD_DIR)/ttcp $(IDIR_TTCP)/usr/bin/
|
||||||
|
$(RSTRIP) $(IDIR_TTCP)
|
||||||
|
$(IPKG_BUILD) $(IDIR_TTCP) $(PACKAGE_DIR)
|
||||||
|
Loading…
Reference in New Issue
Block a user