Re: kernel Makefile- help needed

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

 



Don't you want:

CFLAGS+=-D$(TOPDIR)/Mydir/include

-Jared

On 4/11/06, Arun Srinivasan <arunlkml@xxxxxxxxx> wrote:
> I need some help with Makefiles. I have my directory(kernel module) under
> the kernel source and have an include directory in it.
>
> |-kernel/
>       |-Mydir/
>               |-include/*.h
>
> So to include the headers in the include path, I add them to  the variable
> CPPFLAGS (similar to the HPATH variable in the top Makefile) as:
> MY_HPATH = $(TOPDIR)/Mydir/include
> CPPFLAGS += -I$(MY_HPATH)
>
> I also do the "make depend" and it creates the .depend successfully. But
> when I do "make modules", it is not able to find any of the  files in my
> include path.  So, please tell me what am I missing here?
>
> rgds
> Arun
>
> --
> "There are 10 people in the world - those who understand binary and those
> who dont !"

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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