summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-18 15:23:54 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-12-18 15:23:54 +0000
commit45b76b751b8fc54de54e9cb0c4da2c8d4733c718 (patch)
tree494dd38a4332fea2cefdc9b8feaa33a637b87260
parentb6397015e492610baaa855f2993b904961ebdf1c (diff)
- pass the correct kernel headers in and improve the -clean target.
-rw-r--r--package/iptables/iptables.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/package/iptables/iptables.mk b/package/iptables/iptables.mk
index a68c2019f..22c5ea5c8 100644
--- a/package/iptables/iptables.mk
+++ b/package/iptables/iptables.mk
@@ -27,13 +27,13 @@ $(IPTABLES_BUILD_DIR)/.configured: $(IPTABLES_BUILD_DIR)/.unpacked
$(IPTABLES_BUILD_DIR)/iptables: $(IPTABLES_BUILD_DIR)/.configured
$(TARGET_CONFIGURE_OPTS) \
$(MAKE1) -C $(IPTABLES_BUILD_DIR) \
- KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
+ KERNEL_DIR=$(LINUX_HEADERS_DIR) PREFIX=/usr \
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)"
$(TARGET_DIR)/usr/sbin/iptables: $(IPTABLES_BUILD_DIR)/iptables
$(TARGET_CONFIGURE_OPTS) \
$(MAKE1) -C $(IPTABLES_BUILD_DIR) \
- KERNEL_DIR=$(LINUX_DIR) PREFIX=/usr \
+ KERNEL_DIR=$(LINUX_HEADERS_DIR) PREFIX=/usr \
CC=$(TARGET_CC) COPT_FLAGS="$(TARGET_CFLAGS)" \
DESTDIR=$(TARGET_DIR) install
$(STRIP) $(TARGET_DIR)/usr/sbin/iptables*
@@ -45,8 +45,8 @@ iptables: $(TARGET_DIR)/usr/sbin/iptables
iptables-source: $(DL_DIR)/$(IPTABLES_SOURCE)
iptables-clean:
- $(MAKE1) DESTDIR=$(TARGET_DIR) CC=$(TARGET_CC) -C $(IPTABLES_BUILD_DIR) uninstall
-$(MAKE1) -C $(IPTABLES_BUILD_DIR) clean
+ rm -rf $(TARGET_DIR)/usr/sbin/iptables* $(TARGET_DIR)/usr/lib/iptables
iptables-dirclean:
rm -rf $(IPTABLES_BUILD_DIR)