fix olsrd build
[openwrt.git] / openwrt / package / arptables / Makefile
1 #############################################################
2 #
3 # arptables
4 #
5 #############################################################
6 include $(TOPDIR)/rules.mk
7
8 PKG_NAME:=arptables
9 PKG_VERSION:=0.0.3
10 PKG_RELEASE:=1
11 PKG_MD5SUM:=1672244603c8979577aa4738be35a759
12 PKG_SOURCE_URL:=@SF/ebtables
13 PKG_SOURCE:=$(PKG_NAME)-v$(PKG_VERSION).tar.gz
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-v$(PKG_VERSION)
15 PKG_CAT:=zcat
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,ARPTABLES,arptables,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.built:
22 $(MAKE) -C $(PKG_BUILD_DIR) \
23 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
24 CFLAGS="$(TARGET_CFLAGS) -Wall -I$(PKG_BUILD_DIR)/include/linux/include -I$(PKG_BUILD_DIR)/include -DARPTABLES_VERSION=\\\"$(PKG_VERSION)\\\" "
25 touch $@
26
27 $(IPKG_ARPTABLES):
28 mkdir -p $(IDIR_ARPTABLES)/usr/sbin
29 cp $(PKG_BUILD_DIR)/arptables $(IDIR_ARPTABLES)/usr/sbin/
30 $(IPKG_BUILD) $(IDIR_ARPTABLES) $(PACKAGE_DIR)
This page took 0.039839 seconds and 5 git commands to generate.