#this builds a module a.o from (a.c and b.c)
obj-m += a.o
a-objs := b.o
export-objs := b.o ##a.o needs some symbol exported by b.o##
obj-m += b.o
include $(TOPDIR)/Rules.make
For further reference see http://lwn.net/Articles/21835/
regards
Arun
On 4/1/06,
Bernhard Walle <bernhard.walle@xxxxxx> wrote:
Hello,
I have a module which requires the source files a.c and b.c. Is it
possible to have a resulting module name a.ko? a-m.c and b.c -> a.ko is
no problem, but I would like to use a.c instead.
Thanks.
Regards,
Bernhard
--
Ich glaube nur an Statistiken, die ich selbst gefälscht habe.
-- Winston Churchill
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/
--
"There are 10 people in the world - those who understand binary and those who dont !"