bb:Boost.Build V2 (Milestone 11) Boost.Jam 03.1.13
os: windows xp sp2
+---bin ( stored the exe files)
+---lib ( stored the lib files)
+---include( the common header files)
       +---lib(*.c,build lualib.lib,stored int the lib directory,and it depends lua.lib)
       +---lua (lua.c,build lua.exe ,stored in the exe directory,it depends lua.lib,lualib.lib)
       +---*.c (build the library lua.lib, stored in the lib directory)
JamRoot file :
use-project  /lib/lua : src ;
use-project  /lib/lualib : src/lib ;

build-project src/lua ;

src's Jamfile
lib lua
  : [ glob *.c ]
  : <link>static  <include>../include <define>_CRT_SECURE_NO_DEPRECATE

lib's Jamfile

lib lualib
  : [ glob *.c ] /lib/lua//lua/<link>static
  : <link>static  <include>../../include <define>_CRT_SECURE_NO_DEPRECATE

lua's Jamfile

exe lua
  : lua.c /lib/lua//lua/<link>static /lib/lualib//lualib/<link>static
  : <include>../../include <define>_CRT_SECURE_NO_DEPRECATE

(1) the default name of lib target will add the prefix 'lib',how can i customise the name?

(2)i want to <include>../include <define>_CRT_SECURE_NO_DEPRECATE to be usage_requirements,

but when i write it as the following ,i cann't work.

lib lua
  : [ glob *.c ]
  : <link>static 
  : <include>../include <define>_CRT_SECURE_NO_DEPRECATE

(3)how can i only include the 'include' directory  one time in the JamRoot? and no need to include 'include' directory in other Jamfiles.

(4)i write the INSTALL rule, but it cann't work. how can i install the lib to the LIB directory,install the exe to the BIN directory?

(5)Can you help me correct it, let it SIMPLE,READABLE.

thank you very much!