summaryrefslogtreecommitdiffstats
path: root/INSTALL
blob: 7807dc922ab56124b945b34eda27223b92984c8c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FOLLOW THESE STEPS:
===================

Make sure /usr/src/linux contains the kernel headers you're building
against.  If /usr/src/linux is an older kernel, set the KERNEL_DIR
environment variable to point to the current kernel sources.

If you forget the above step, a bogus dependency files with a ".d"
extension may be created.  If you see messages like:
	make: *** No rule to make target `include/linux/netfilter_ipv4/ipt_limit.h',
	needed by `iptables.d'.  Stop.

then you have these bogus dependency files. Do this:

	% make distclean

To build, just do:

	% make

If you want to specify alternate directories for installation (instead
of /usr/local/  bin lib man), do this:

	% make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man
	% make BINDIR=/usr/bin LIBDIR=/usr/lib MANDIR=/usr/man install

NOTE: make sure you build with at least the correct LIBDIR=
specification, otherwise iptables(8) won't know where to find the
dynamic objects.