All of lore.kernel.org
 help / color / mirror / Atom feed
* Makefile for a single source file
@ 2014-09-13 14:34 Kevin Wilson
  2014-09-13 14:36 ` Kristofer Hallin
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Kevin Wilson @ 2014-09-13 14:34 UTC (permalink / raw)
  To: kernelnewbies

Hi,
I have a single source file which I wrote, implementing a kernel
module: helloworld.c

In order to built it, I prepared the following Makefile:

obj-m += helloworld.o

all:
     make -C /lib/modules/$(shell uname -r)/build M=$(PWD) modules

clean:
     make -C /lib/modules/$(shell uname -r)/build M=$(PWD) clean



Is it ok ? or should the obj-m parameter be *different* than the the
source file (without the *.o suffix)
(something like obj-m += hello.o ?)

Regards,
Kevin

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-13 15:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-09-13 14:34 Makefile for a single source file Kevin Wilson
2014-09-13 14:36 ` Kristofer Hallin
2014-09-13 14:38   ` Kevin Wilson
2014-09-13 15:13 ` Greg KH
2014-09-13 15:13 ` Bruno Guedes Souto

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.