-IPTABLES_MAKEOPTS = \
- $(TARGET_CONFIGURE_OPTS) \
- COPT_FLAGS="$(TARGET_CFLAGS)" \
- LDFLAGS="-rdynamic -static-libgcc" \
- KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
- KBUILD_OUTPUT="$(LINUX_DIR)" \
- DESTDIR="$(PKG_INSTALL_DIR)" \
- $(MAKE_TARGETS)
-
-define Build/Compile
- $(INSTALL_DIR) $(PKG_INSTALL_DIR)
- (cd $(PKG_BUILD_DIR); ./autogen.sh)
- $(MAKE) -C $(PKG_BUILD_DIR) $(IPTABLES_MAKEOPTS)
- $(MAKE) -C $(PKG_BUILD_DIR) $(IPTABLES_MAKEOPTS) install
- $(MAKE) -C $(PKG_BUILD_DIR)/libipq $(IPTABLES_MAKEOPTS)
- $(MAKE) -C $(PKG_BUILD_DIR)/libipq $(IPTABLES_MAKEOPTS) install
-endef
+MAKE_FLAGS := \
+ $(TARGET_CONFIGURE_OPTS) \
+ COPT_FLAGS="$(TARGET_CFLAGS)" \
+ LDFLAGS="-rdynamic" \
+ KERNEL_DIR="$(LINUX_DIR)" PREFIX=/usr \
+ KBUILD_OUTPUT="$(LINUX_DIR)" \