-define Build/Clean
- # remove the client dir since the build system doesnt know about it
- rm -rf $(PKG_BUILD_DIR)/../miniupnpc
+define Build/Compile
+ ln -sf $(PKG_BUILD_DIR)/config.h.openwrt $(PKG_BUILD_DIR)/config.h
+ $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.openwrt \
+ $(TARGET_CONFIGURE_OPTS) \
+ STAGING_DIR="$(STAGING_DIR)" \
+ CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/usr/include -I$(firstword $(wildcard $(KERNEL_BUILD_DIR)/iptables-*/include)) -DIPTABLES_143" \
+ LIBS="$(STAGING_DIR)/usr/lib/libiptc.so $(STAGING_DIR)/usr/lib/libip4tc.so $(STAGING_DIR)/usr/lib/libip6tc.so"