stevenweaver / externals-clasp

Libraries that clasp depends on

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

externals-clasp

Update Feb 5, 2015: NOTE: EXTERNALS_BUILD_TARGET_DIR is no longer required in local.config - I moved the build directory into the externals-clasp directory hierarchy to ensure that "make clean" was safe and could not destroy user files if this environment variable was set incorrectly.

Clasp can be found at: https://github.com/drmeister/clasp

These are the external libraries that Clasp depends on. If there are legal issues with incorporating these libraries in this repository please tell me and I will fix it. All of these libraries are publically available on the internet.

I am working to eliminate the need for externals-clasp when installing clasp and rely on standard libraries that are shipped with respective operating system distributions or downloadable from the internet. Currently externals-clasp incorporates a few libraries that have been patched to add features that Clasp requires.

Building externals-clasp

You need to have gcc 4.8 or higher to build externals-clasp.

To build everything from within the top level directory (externals-clasp/) do the following.

  1. Copy local.config.darwin or local.config.linux to local.config

  2. Edit local.config and configure it for your system
    The following configuration variables are important:

Variable Description
TARGET_OS Currently either linux or darwin
PJOBS The number of processors you have available to build with
GCC_TOOLCHAIN Important on Linux systems.
gcc and g++ must be found in $(GCC_TOOLCHAIN)/bin/
On a linux system with an up-to-date (>= 4.8) gcc/g++ you can use /usr
GCC_EXECUTABLE Set this if the gcc you use is NOT found at $(GCC_TOOLCHAIN)/bin/gcc
GXX_EXECUTABLE Set this if the g++ you use is NOT found at $(GCC_TOOLCHAIN)/bin/g++
  1. Type: make - this will download llvm/clang, build everything and install it in $(EXTERNALS_BUILD_TARGET_DIR)

  2. Go to the Clasp library and configure and build it.

On OS X

You need to install automake and libtool
brew install automake
brew install libtool
brew install pkg-config
brew install autoconf

The libraries are built and put into the $PREFIX (see local.config) directory

Other useful make targets:
make - this is the same as: make clean; make setup; make subAll
make setup - configures all libraries
make subAll - makes all libraries
make clean - Clean out all built files under this directory, but not the $PREFIX target directory.
make llvm-debug - Build the debug version of the LLVM library.

About

Libraries that clasp depends on


Languages

Language:C++ 54.3%Language:HTML 37.2%Language:C 4.2%Language:Assembly 1.2%Language:Python 1.1%Language:Shell 0.5%Language:Makefile 0.4%Language:XSLT 0.3%Language:TeX 0.2%Language:JavaScript 0.1%Language:Perl 0.1%Language:CSS 0.1%Language:C# 0.0%Language:Groff 0.0%Language:Ada 0.0%Language:XS 0.0%Language:Pascal 0.0%Language:Batchfile 0.0%Language:PHP 0.0%Language:Yacc 0.0%Language:Max 0.0%Language:DIGITAL Command Language 0.0%Language:Cuda 0.0%Language:Perl 6 0.0%Language:Emacs Lisp 0.0%Language:CMake 0.0%Language:CLIPS 0.0%Language:Inno Setup 0.0%Language:Lex 0.0%Language:Objective-C 0.0%Language:Fortran 0.0%Language:Module Management System 0.0%Language:SAS 0.0%Language:Scheme 0.0%Language:QML 0.0%Language:Tcl 0.0%Language:Rebol 0.0%Language:Objective-C++ 0.0%Language:IDL 0.0%