Re: differnce between += and := in Makefile obj-m line

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

 



 +=              When used in place of `=', appends a  string
                   to a macro definition (must be surrounded by
                   white space, unlike `=').

 Got it from the manpage.
-Pavan



On Dec 7, 2007 10:39 PM, Amogh Hooshdar <amoghhooshdar@xxxxxxxxx> wrote:
> I found two types of Makefiles in some tutorials.
>
> One was like this:-
>
> obj-m := hello-1.o
>
> Other was like this:-
>
> obj-m += hello-1.o
>
> Both generated .ko files properly and I could insmod and rmmod the ko
> successfully. Please explain what is the difference between := and +=
> ?
>
> --
> To unsubscribe from this list: send an email with
> "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
> Please read the FAQ at http://kernelnewbies.org/FAQ
>
>

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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