aboutsummaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorMichał Łyszczek <michal.lyszczek@gmail.com>2017-04-18 22:29:55 +0200
committerMichał Łyszczek <michal.lyszczek@gmail.com>2017-04-18 22:29:55 +0200
commiteb6b25867353986030ff3b87daef87849a3a873f (patch)
treefbe518de81ac12d680b5c829704f202d074ff320 /INSTALL
parente9b490f3c8e651f31c7c5886b1f3352625179ee4 (diff)
downloadlibrb-eb6b25867353986030ff3b87daef87849a3a873f.tar.gz
librb-eb6b25867353986030ff3b87daef87849a3a873f.tar.bz2
librb-eb6b25867353986030ff3b87daef87849a3a873f.zip
Many changes that includes:
* Code refactor * Added possibility to completly ignore pthreads making libc the only dependency * Better compability with c89 * Changed license from BSD3 to BSD2 * Wrote better documentation
Diffstat (limited to 'INSTALL')
-rw-r--r--INSTALL28
1 files changed, 18 insertions, 10 deletions
diff --git a/INSTALL b/INSTALL
index aba2bfa..408447a 100644
--- a/INSTALL
+++ b/INSTALL
@@ -1,25 +1,33 @@
Requirements:
* libc (glibc, uclibc)
- * pthread
+ * pthread (only if THREADS are enabled)
Install locally:
-make && make install
+ make && make install
+
+To install with pthread support do
+
+ make THREADS=1 && make install
+
+To install to different directory do
+
+ DESTDIR=/custom/dir make install
Cross Compile:
To compile for different architecture 3 env variables should be set
-CC - cross compiler
-INC - staging include directory
-LINC - staging library directory
+ * CC - cross compiler
+ * INC - staging include directory
+ * LINC - staging library directory
Example make might look like this
-$ CC=arm-none-eabi \
- INC=-I/usr/arm-none-eabi/usr/include \
- LINC=-L/usr/arm-none-eabi/usr/lib \
- make
+ $ CC=arm-none-eabi \
+ INC=-I/usr/arm-none-eabi/usr/include \
+ LINC=-L/usr/arm-none-eabi/usr/lib \
+ make
-$ INSTALL_DIR=/usr/arm-none-eabi/usr make install
+ $ DESTDIR=/usr/arm-none-eabi/usr make install