blob: a7744bb845a7a7ae8516f653472c761562693286 [file] [log] [blame]
Richard Gooch8e3b8922000-04-22 00:57:38 +00001FOLLOW THESE STEPS:
2===================
3
4Make sure /usr/src/linux contains the kernel headers you're building
5against. If /usr/src/linux is an older kernel, set the KERNEL_DIR
6environment variable to point to the current kernel sources.
7
8If you forget the above step, a bogus dependency files with a ".d"
9extension may be created. If you see messages like:
10 make: *** No rule to make target `include/linux/netfilter_ipv4/ipt_limit.h',
11 needed by `iptables.d'. Stop.
12
13then you have these bogus dependency files. Do this:
14
15 % make distclean
16
17To build, just do:
18
19 % make
20
Rusty Russell7fae6fa2000-05-31 06:32:02 +000021Finally, you need to to install the shared libraries, and the binary:
22
23 # make install
24
Richard Gooch8e3b8922000-04-22 00:57:38 +000025If you want to specify alternate directories for installation (instead
26of /usr/local/ bin lib man), do this:
27
28 % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
29 % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install
30
31NOTE: make sure you build with at least the correct LIBDIR=
32specification, otherwise iptables(8) won't know where to find the
33dynamic objects.