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!