views:

84

answers:

0

I have the following directory structure:

APPDIR/
APPDIR/APPHDRS (has *.h)
APPDIR/APPLIBSRCS (has *.cpp need to make a library, say libtest.a)
APPDIR/APPMAIN (has main.cpp that will compile if g++ gets args -I $HOME/APPINSTALLDIR and -L $HOME/APPINSTALLDIR/LIB)

I got headers to be installed by adding in APPDIR/Jamroot:

local headers = [ path.glob-tree $HOME/APPDIR : *.h ] ;

install headers                   
    : $(headers)
    : <location>$HOME/APPINSTALLDIR <install-source-root>$HOME/APPDIR
;

Could someone please assist me in the Jamfiles for the libtest.a and main.cpp?