[ECOS] compile sub-directory

Jay Foster jay.foster@systech.com
Thu Feb 19 19:34:00 GMT 2004


When I add a compile statement to a package component like:

	compile myfile

my code builds correctly.  The source file is located in my
source_dir/<PKG>/current/src directory and the object file is placed in my
build_dir/<PKG>/current/src directory.

If I instead add a subdirectory to my file, like:

	compile mydir/myfile

things go wrong.  Everything works right, except the object build directory
(build_dir/<PKG>/current/src/mydir) doesn't get created, so the compile
fails.  If I manually create this directory, it all compiles fine.

Looking for other examples of this subdirectory usage, I noticed the
ethernet package (io/eth/current/cdl/eth_drivers.cdl) does this same thing,
but it's subdirectories (one of net, lwip, stand_alone) do get created in
the build directory.  How/where does this happen?  Does the CDL 'make'
command suppress this activity in anyway?

Jay


-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list