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/