Hi ..

I am not sure how to create a set of Rake rules to do the following.  Can 
anyone prove assistance?

Structure:

  Rakefile
  foo 
  src_a/
    a_1.c
    a_2.c
  src_b/
    b_1.c
    b_2.c
  obj/
    a_1.o
    a_2.o
    b_1.o
    b_2.o
    libfoo.a  ("ar cr libfoo.a obj/*.c; ranlib libfoo.a")

I would like to have a single target

  $ rake build

That would create the .o and the lib, then link them into the executable.  I 
can do this if everything is in the root directory but I am finding defining 
the objects trickier.

I'd rather avoid explicitly putting the directory name in the source list, 
like

 SRC_A = ["src_a/a_1.c" ...]

Regards,


-- 
-mark.  (probertm at acm dot org)