Difference between revisions of "System.mk"

From ASSS Wiki
Jump to: navigation, search
(ASSS Makefile)
 
m (added to category 'ASSS')
 
(7 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
:''The title of this article should be '''system.mk'''. The initial letter is capitalized due to technical restrictions.''
 
== Build Options ==
 
== Build Options ==
 +
If you want an optimized build, use "make opt=yes".<br>
 +
If you want a profiled build, use "make prof=yes".<br>
 +
If you want a _non_debug build, use "make debug=no".<br>
 +
If you want to link bdb statically, use "make link_db_statically=yes".
  
debug = yes<br>
+
These are the default options:
opt = no<br>
+
<pre>
prof = no<br>
+
debug = yes
link_db_statically = no<br>
+
opt = no
 +
prof = no
 +
link_db_statically = no
 +
</pre>
  
 
== Library Options ==
 
== Library Options ==
 
+
If you are missing any of these libraries from your system comment these lines out. Or if you just don't want to compile in support these things.
have_bdb = yes<br>
+
<pre>
have_mysql = yes<br>
+
have_bdb = yes
have_python = yes<br>
+
have_mysql = yes
 +
have_python = yes
 +
</pre>
  
 
== Library Paths ==
 
== Library Paths ==
 
+
This is an example only. You may find berkley db and mysql are located in /usr/local.
DB_HOME = /opt/db-4.0.14<br>
+
<pre>
MYSQL_HOME = /opt/mysql<br>
+
DB_HOME = /opt/db-4.0.14
 +
MYSQL_HOME = /opt/mysql
 
MYSQL_LDFLAGS = -L$(MYSQL_LIB) -Wl,-rpath,$(MYSQL_LIB) -lmysqlclient_r
 
MYSQL_LDFLAGS = -L$(MYSQL_LIB) -Wl,-rpath,$(MYSQL_LIB) -lmysqlclient_r
 +
</pre>
 +
* If you built MySQL without pthreads then change '''-lmysqlclient_r''' to '''-lmysqlclient'''.
  
* If you built MySQL without pthreads then change '''-lmysqlclient_r'''' to '''-lmysqlclient'''.
 
  
PYTHON_HOME = /opt/python-2.2.2<br>
+
Python version 2.2 minimum is required to add Python support to ASSS. ''PYTHON_VERSION'' only requires the major and minor version (x.x).
 +
<pre>
 +
PYTHON_HOME = /opt/python-2.2.2
 
PYTHON_VERSION = 2.2
 
PYTHON_VERSION = 2.2
 +
</pre>
 +
 +
[[Category: ASSS]]

Latest revision as of 20:04, 29 September 2007

The title of this article should be system.mk. The initial letter is capitalized due to technical restrictions.

Build Options

If you want an optimized build, use "make opt=yes".
If you want a profiled build, use "make prof=yes".
If you want a _non_debug build, use "make debug=no".
If you want to link bdb statically, use "make link_db_statically=yes".

These are the default options:

debug = yes
opt = no
prof = no
link_db_statically = no

Library Options

If you are missing any of these libraries from your system comment these lines out. Or if you just don't want to compile in support these things.

have_bdb = yes
have_mysql = yes
have_python = yes

Library Paths

This is an example only. You may find berkley db and mysql are located in /usr/local.

DB_HOME = /opt/db-4.0.14
MYSQL_HOME = /opt/mysql
MYSQL_LDFLAGS = -L$(MYSQL_LIB) -Wl,-rpath,$(MYSQL_LIB) -lmysqlclient_r
  • If you built MySQL without pthreads then change -lmysqlclient_r to -lmysqlclient.


Python version 2.2 minimum is required to add Python support to ASSS. PYTHON_VERSION only requires the major and minor version (x.x).

PYTHON_HOME = /opt/python-2.2.2
PYTHON_VERSION = 2.2