| 34 | |
| 35 | == Building custom modules == |
| 36 | |
| 37 | The source for click is in {{{/usr/src/click-1.8.0}}}. |
| 38 | |
| 39 | You must always give configure the path to the kernel source (see below). |
| 40 | |
| 41 | Custom modules are typically built in the local elements folder. Copy your source files into {{{/usr/src/click-1.8.0/elements/local}}} and give configure the {{{--enable-local}}} flag. |
| 42 | |
| 43 | {{{ |
| 44 | $ sudo -s |
| 45 | # cd /usr/src/click-1.8.0 |
| 46 | # ./configure --with-linux=/usr/src/linux-2.6.24.7 --enable-local |
| 47 | }}} |
| 48 | |
| 49 | At this point building and installing is as simple as: |
| 50 | |
| 51 | {{{ |
| 52 | # make && make install |
| 53 | }}} |