From mboxrd@z Thu Jan 1 00:00:00 1970 From: varkabhadram@gmail.com (Varka Bhadram) Date: Wed, 25 Jun 2014 15:20:07 +0530 Subject: about pr_debug In-Reply-To: References: <53AA70BE.7050506@gmail.com> <87oaxhv1rj.fsf@nemi.mork.no> Message-ID: <53AA9B4F.6080103@gmail.com> To: kernelnewbies@lists.kernelnewbies.org List-Id: kernelnewbies.lists.kernelnewbies.org On 06/25/2014 03:17 PM, lx wrote: > thank you. > But the Makefile is so simple and Not use "cc". > ################################# > obj-m := task_01.o > CFLAGS_task_01.o := -DDEBUG > KDIR:=/lib/modules/`uname -r`/build > PWD:=$(shell pwd) > > default: > echo $KDIR > $(MAKE) -C $(KDIR) M=$(PWD) modules > ################################# > > So, how to add "CFLAGS"? > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140625/bf9912aa/attachment.html