Re: [KJ] Question re make

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

 



 
obj-m += ixj.o
all:
        make -C /<blah>/<blah>/kernel-2.6.11/linux M=$(PWD)
modules
 
Try adding this to your standalone make file.  I hope this answers
your question.
 
LouNprime@xxxxxxx
 
 
/Lou:-)
 

-----Original Message-----
From: Nishanth Aravamudan <nacc@xxxxxxxxxx>
To: Felix Oxley <lkml@xxxxxxxxx>
Cc: kernelnewbies@xxxxxxxxxxxx; kernel-janitors@xxxxxxxxxxxxxx
Sent: Sat, 8 Oct 2005 22:08:13 -0700
Subject: Re: [KJ] Question re make

On 08.10.2005 [20:08:03 +0100], Felix Oxley wrote:
> 
> > You are "make"ing an object file, not a .c file. Makefiles' syntax is
> > for the target, not the source.
> >
> > make drivers/telephony/ixj.o
> >
> I had tried this all ready and forgot to mention it, but it didn't work at the 

> time.

Were you trying to build ixj as a module? You might have needed

make drivers/telephony/ixj.ko

Not sure, though.

> > Please read the Makefile before posting.
> >
> Which file should I read?

The top-level Makefile gives a good overview of available
targets/syntax. The drivers/telephony/Makefile probably has some
indication of available targets specific to that directory.

> > make M=drivers/telephony
> >
> 
> This does the trick!

Great!

> > > and
> > >         # cc driver/telephony/ixj.cjust gives hundreds of errors.
> >
> > This is just plain silly and why we have a Makefile system in the first
> > place.
> >
> I know, but  I was just trying to exaplan all the methods I had tried.
> I think I must have cocked something up before but it is better now.

Glad you got it figured out.

Thanks,
Nish
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@xxxxxxxxxxxxxx
https://lists.osdl.org/mailman/listinfo/kernel-janitors

[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