From 04d1a362b13894bf572a63bc0ae437a9e411f2a5 Mon Sep 17 00:00:00 2001 From: randomdan Date: Thu, 7 Oct 2010 15:52:35 +0000 Subject: Used shared common library, add install rule --- project2/Jamfile.jam | 46 +++++++++++++++++++++++----------------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/project2/Jamfile.jam b/project2/Jamfile.jam index ac82e15..17764b3 100644 --- a/project2/Jamfile.jam +++ b/project2/Jamfile.jam @@ -1,4 +1,5 @@ using gcc ; +import package ; alias libxmlpp : : : : "`pkg-config --cflags libxml++-2.6`" @@ -16,34 +17,33 @@ lib cgicc : : cgicc ; lib esmtp : : esmtp ; lib curl : : curl ; -exe p2web : - libxmlpp - libxslt +lib p2common : [ glob *.cpp ] - [ glob cgi/*.cpp ] - ../libmisc - ../libodbcpp : - ../libmisc/ - ../libodbcpp/ + : + ../libmisc//misc + ../libodbcpp//odbcpp + libxmlpp + libxslt boost_regex + boost_filesystem odbc esmtp - cgicc curl + ; + +exe p2web : + [ glob cgi/*.cpp ] : + p2common fcgi++ - fcgi ; + fcgi + cgicc + ; exe p2console : - libxmlpp - libxslt - [ glob *.cpp ] - [ glob console/*.cpp ] - ../libmisc - ../libodbcpp : - ../libmisc/ - ../libodbcpp/ - boost_regex - boost_filesystem - odbc - curl - esmtp ; + [ glob console/*.cpp ] : + p2common + ; + +explicit install ; +package.install install : : p2console p2web ; + -- cgit v1.2.3