Re: compiling user space and kernel space code in single makefile

2009-07-22 Thread Rishi Agrawal
Hello, On Sat, Jul 18, 2009 at 7:22 PM, Mulyadi Santosa mulyadi.sant...@gmail.comwrote: On Sat, Jul 18, 2009 at 3:26 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: Hello All, I have this particular directory Hierarchy foo | |__ include(directory) | |__kernel(directory)

Re: compiling user space and kernel space code in single makefile

2009-07-22 Thread Mulyadi Santosa
Hi On Wed, Jul 22, 2009 at 6:47 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: I have used separate makefiles and added this piece of code in the Makefile in the topmost directory @for dir in ${subdirs}; do \       (cd $$dir $(MAKE) all) \       || case $(MFLAGS) in *k*) fail=yes;; *)

compiling user space and kernel space code in single makefile

2009-07-18 Thread Rishi Agrawal
Hello All, I have this particular directory Hierarchy foo | |__ include(directory) | |__kernel(directory) | |__user_space(directory) Include directory has the header file which is required by both the kernel space code and the user space code kernel has a character device driver, and a

Re: compiling user space and kernel space code in single makefile

2009-07-18 Thread Mulyadi Santosa
On Sat, Jul 18, 2009 at 3:26 PM, Rishi Agrawalrishi.b.agra...@gmail.com wrote: Hello All, I have this particular directory Hierarchy foo | |__ include(directory) | |__kernel(directory) | |__user_space(directory) Include directory has the header file which is required by both the