OSDN Git Service

Fix no pic
[uclinux-h8/uClinux-dist.git] / user / iptables / makefile
1 # Configure options.
2
3 CONFOPTS := --prefix= --disable-shared --enable-static
4 ifndef CONFIG_USER_IPTABLES_IPTABLES
5 CONFOPTS += --disable-ipv4
6 endif
7 ifndef CONFIG_USER_IPTABLES_IP6TABLES
8 CONFOPTS += --disable-ipv6
9 endif
10 ifdef CONFIG_IP_NF_QUEUE
11 CONFOPTS += --enable-libipq
12 endif
13
14 all: build/build
15         $(MAKE) -C build am__configure_deps= am__aclocal_m4_deps=
16         $(MAKE) -C build install DESTDIR=`pwd`/install am__configure_deps= am__aclocal_m4_deps=
17
18 build/build: makefile
19         @chmod u+x configure
20         @rm -rf build install
21         @mkdir build install
22         (cd build; sh ../configure $(CONFIGURE_OPTS) $(CONFOPTS))
23         @touch build/build
24
25 clean:
26         rm -rf build install
27
28 romfs:
29         $(ROMFSINST) -e CONFIG_USER_IPTABLES_IPTABLES build/iptables-static /bin/iptables
30         $(ROMFSINST) -e CONFIG_USER_IPTABLES_IPTABLES -l /bin/iptables /bin/iptables-save
31         $(ROMFSINST) -e CONFIG_USER_IPTABLES_IPTABLES -l /bin/iptables /bin/iptables-restore
32         $(ROMFSINST) -e CONFIG_USER_IPTABLES_IP6TABLES build/ip6tables-static /bin/ip6tables
33         $(ROMFSINST) -e CONFIG_USER_IPTABLES_IP6TABLES -l /bin/ip6tables /bin/ip6tables-save
34         $(ROMFSINST) -e CONFIG_USER_IPTABLES_IP6TABLES -l /bin/ip6tables /bin/ip6tables-restore