summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2010-10-07 15:52:35 +0000
committerrandomdan <randomdan@localhost>2010-10-07 15:52:35 +0000
commit0333f02b6e822e4b7d62a949ff80cf501b3e546b (patch)
tree2ac8c2f08d494160ac97bf22aed7623704540568
parentHandle null fields (diff)
downloadproject2-0333f02b6e822e4b7d62a949ff80cf501b3e546b.tar.bz2
project2-0333f02b6e822e4b7d62a949ff80cf501b3e546b.tar.xz
project2-0333f02b6e822e4b7d62a949ff80cf501b3e546b.zip
Used shared common library, add install rule
-rw-r--r--project2/Jamfile.jam46
1 files 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 : : : :
<cflags>"`pkg-config --cflags libxml++-2.6`"
@@ -16,34 +17,33 @@ lib cgicc : : <name>cgicc ;
lib esmtp : : <name>esmtp ;
lib curl : : <name>curl ;
-exe p2web :
- libxmlpp
- libxslt
+lib p2common :
[ glob *.cpp ]
- [ glob cgi/*.cpp ]
- ../libmisc
- ../libodbcpp :
- <include>../libmisc/
- <include>../libodbcpp/
+ :
+ <library>../libmisc//misc
+ <library>../libodbcpp//odbcpp
+ <library>libxmlpp
+ <library>libxslt
<library>boost_regex
+ <library>boost_filesystem
<library>odbc
<library>esmtp
- <library>cgicc
<library>curl
+ ;
+
+exe p2web :
+ [ glob cgi/*.cpp ] :
+ <library>p2common
<library>fcgi++
- <library>fcgi ;
+ <library>fcgi
+ <library>cgicc
+ ;
exe p2console :
- libxmlpp
- libxslt
- [ glob *.cpp ]
- [ glob console/*.cpp ]
- ../libmisc
- ../libodbcpp :
- <include>../libmisc/
- <include>../libodbcpp/
- <library>boost_regex
- <library>boost_filesystem
- <library>odbc
- <library>curl
- <library>esmtp ;
+ [ glob console/*.cpp ] :
+ <library>p2common
+ ;
+
+explicit install ;
+package.install install : : p2console p2web ;
+