Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 1 | FOLLOW THESE STEPS: |
| 2 | =================== |
| 3 | |
| 4 | Make sure /usr/src/linux contains the kernel headers you're building |
| 5 | against. If /usr/src/linux is an older kernel, set the KERNEL_DIR |
| 6 | environment variable to point to the current kernel sources. |
| 7 | |
| 8 | If you forget the above step, a bogus dependency files with a ".d" |
| 9 | extension 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 | |
| 13 | then you have these bogus dependency files. Do this: |
| 14 | |
| 15 | % make distclean |
| 16 | |
| 17 | To build, just do: |
| 18 | |
| 19 | % make |
| 20 | |
Rusty Russell | 7fae6fa | 2000-05-31 06:32:02 +0000 | [diff] [blame^] | 21 | Finally, you need to to install the shared libraries, and the binary: |
| 22 | |
| 23 | # make install |
| 24 | |
Richard Gooch | 8e3b892 | 2000-04-22 00:57:38 +0000 | [diff] [blame] | 25 | If you want to specify alternate directories for installation (instead |
| 26 | of /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 | |
| 31 | NOTE: make sure you build with at least the correct LIBDIR= |
| 32 | specification, otherwise iptables(8) won't know where to find the |
| 33 | dynamic objects. |