blob: 7807dc922ab56124b945b34eda27223b92984c8c [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
21If you want to specify alternate directories for installation (instead
22of /usr/local/ bin lib man), do this:
23
24 % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
25 % make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install
26
27NOTE: make sure you build with at least the correct LIBDIR=
28specification, otherwise iptables(8) won't know where to find the
29dynamic objects.