use-project /torrent : ../.. ; rule libtorrent_linking ( properties * ) { local result ; if gcc in $(properties) && shared in $(properties) { result += on ; } # if gcc in $(properties) || darwin in $(properties) # { # result += hidden ; # } return $(result) ; } lib torrentc : # sources library.cpp : # requirements @libtorrent_linking /torrent//torrent/static . : # default build static : # usage-requirements . ; exe simple_client : simple_client.c torrentc ;