b28e86c28bf0300ff92ac097432d2f74b8ee1de4
[openwrt.git] / openwrt / package / ebtables / ebtables.mk
1 #############################################################
2 #
3 # ebtables
4 #
5 #############################################################
6 #
7 EBTABLES_SOURCE_URL=http://umn.dl.sourceforge.net/sourceforge/ebtables/
8 EBTABLES_SOURCE=ebtables-v2.0.6.tar.gz
9 EBTABLES_BUILD_DIR=$(BUILD_DIR)/ebtables-v2.0.6
10 EBTABLES_TARGET_BINARY:=usr/sbin/ebtables
11
12 $(DL_DIR)/$(EBTABLES_SOURCE):
13 $(WGET) -P $(DL_DIR) $(EBTABLES_SOURCE_URL)/$(EBTABLES_SOURCE)
14
15 $(EBTABLES_BUILD_DIR)/.unpacked: $(DL_DIR)/$(EBTABLES_SOURCE)
16 zcat $(DL_DIR)/$(EBTABLES_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
17 touch $(EBTABLES_BUILD_DIR)/.unpacked
18
19 $(EBTABLES_BUILD_DIR)/ebtables: $(EBTABLES_BUILD_DIR)/.unpacked
20 $(MAKE) -C $(EBTABLES_BUILD_DIR) \
21 CC=$(TARGET_CC) LD=$(TARGET_CROSS)ld \
22 CFLAGS="$(TARGET_CFLAGS) -Wall"
23
24 $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY): $(EBTABLES_BUILD_DIR)/ebtables
25 cp -af $(EBTABLES_BUILD_DIR)/ebtables $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY)
26 $(STRIP) $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY)
27
28 ebtables: linux $(TARGET_DIR)/$(EBTABLES_TARGET_BINARY)
29
30 ebtables-source: $(DL_DIR)/$(EBTABLES_SOURCE)
31
32 ebtables-clean:
33 #$(MAKE) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(EBTABLES_BUILD_DIR) uninstall
34 -$(MAKE) -C $(EBTABLES_BUILD_DIR) clean
35
36 ebtables-dirclean:
37 rm -rf $(EBTABLES_BUILD_DIR)
This page took 0.040325 seconds and 3 git commands to generate.