Re: Makefile for a single source file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
No.
This is a newbie question, and I believe this is the right mailing
list to get help.

Regards,
Kevin

On Sat, Sep 13, 2014 at 5:36 PM, Kristofer Hallin
<kristofer.hallin@xxxxxxxxx> wrote:
> Is this part of the Eudyptula Challenge?
>
> On 13 Sep 2014 16:35, "Kevin Wilson" <wkevils@xxxxxxxxx> wrote:
>>
>> 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
>>
>> _______________________________________________
>> Kernelnewbies mailing list
>> Kernelnewbies@xxxxxxxxxxxxxxxxx
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux