<div dir="ltr">Thank you. I fix it <div><br></div><div>EXTRA_CFLAGS += -DDEBUG<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2014-06-25 17:50 GMT+08:00 Varka Bhadram <span dir="ltr"><<a href="mailto:varkabhadram@gmail.com" target="_blank">varkabhadram@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"><div class="">
<div>On 06/25/2014 03:17 PM, lx wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">thank you.
<div>But the Makefile is so simple and Not use "cc".</div>
<div>#################################</div>
<div>
<div>obj-m := task_01.o</div>
<div><br>
</div>
</div>
</div>
</blockquote>
</div><pre> CFLAGS_task_01.o := -DDEBUG</pre><div class="">
<blockquote type="cite">
<div dir="ltr">
<div>
<div>KDIR:=/lib/modules/`uname -r`/build</div>
<div>PWD:=$(shell pwd)</div>
<div><br>
</div>
<div>default:</div>
<div> echo $KDIR</div>
<div> $(MAKE) -C $(KDIR) M=$(PWD) modules</div>
</div>
<div>#################################</div>
<div><br>
</div>
<div>So, how to add "<span style="color:rgb(0,0,0);white-space:pre-wrap">CFLAGS"?</span></div>
</div>
<div class="gmail_extra"><br>
</div>
</blockquote>
</div></div>
</blockquote></div><br></div>