Convert iptables to new packaging style
[openwrt.git] / openwrt / package / ttcp / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ttcp
6 PKG_RELEASE:=1
7
8 PKG_BUILD_DIR:=$(BUILD_DIR)/ttcp
9 PKG_IPK_DIR:=$(PKG_BUILD_DIR)
10 PKG_IPK:=$(PACKAGE_DIR)/$(PKG_NAME)_$(PKG_RELEASE)_$(ARCH).ipk
11
12 $(PKG_BUILD_DIR)/usr/bin/ttcp:
13 mkdir -p $(PKG_BUILD_DIR)/usr/bin
14 $(TARGET_CC) -o $@ ttcp.c
15 $(STRIP) $@
16
17 $(PKG_IPK): $(PKG_BUILD_DIR)/usr/bin/ttcp
18 $(SCRIPT_DIR)/make-ipkg-dir.sh $(PKG_IPK_DIR) $(PKG_NAME).control $(PKG_RELEASE) $(ARCH)
19 $(IPKG_BUILD) $(PKG_IPK_DIR) $(PACKAGE_DIR)
20
21 $(IPKG_STATE_DIR)/info/$(PKG_NAME).list:
22 $(IPKG) install $(PKG_IPK)
23
24 source:
25 prepare:
26 compile: $(PKG_IPK)
27 install: $(IPKG_STATE_DIR)/info/$(PKG_NAME).list
28
29 clean:
30 rm -rf $(PKG_BUILD_DIR)
31 rm -f $(PKG_IPK)
This page took 0.056188 seconds and 5 git commands to generate.