Skip to contentSkip to conversation

Module compilation?

DISCUSSION UnderLord 2 participants 2 messages Jan 6, 2004 – Jan 7, 2004 netfilter

lore
Share & tools
lore

UnderLord

author
#0 lore raw

Hello all,

I just made a tiny module (which is a small hack of the MIRROR module)
and I don't
know how to compile it properly. The Netfilter hacking documentation does not refer to this and
the Makefile refers to a main Makefile but I can't figure out which one. That's why I'm asking your help here.

Is there any templates of Makefile for testing modules on their own?

Cheers.

#1 lore raw
Quoted 8 lines · UnderLord

Hello all,

I just made a tiny module (which is a small hack of the MIRROR module)
and I don't
know how to compile it properly. The Netfilter hacking documentation does not refer to this and
the Makefile refers to a main Makefile but I can't figure out which one. That's why I'm asking your help here.

See the gcc line when you compile kernel modules for your kernel. Then copy the options and call gcc manually for compiling your module.

Regards
Henrik