
include ../config.arch


all: 
	@echo "Start building iptables ...";
	@if [ ! -f ./iptables/config.h ]; then \
		touch ./iptables/Makefile ;\
		cp ./makefile.mk ./iptables/makefile; \
		make -C iptables; \
	fi
	@if [ -f ./iptables/makefile ] ; then \
		rm -rf ./iptables/makefile;\
	fi
	make -C iptables
	$(STRIP) ./iptables/iptables-static

install: 
	cp -af ./iptables/iptables-static ${MYPATH}/rootfs/usr/bin

clean:
	make -C iptables clean 

